Commit c2bbef5b authored by Supernature2k's avatar Supernature2k

theme test

parent 23298ff2
......@@ -131,7 +131,7 @@ void DetailedGameListView::onThemeChanged(const std::shared_ptr<ThemeData>& them
using namespace ThemeFlags;
mImage.applyTheme(theme, getName(), "md_image", POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION);
mVideo.applyTheme(theme, getName(), "md_image", POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION);
mVideo.applyTheme(theme, getName(), "md_video", POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION);
initMDLabels();
std::vector<TextComponent*> labels = getMDLabels();
......
......@@ -40,6 +40,15 @@ std::map< std::string, ElementMapType > ThemeData::sElementMap = boost::assign::
("tile", BOOLEAN)
("color", COLOR)
("zIndex", FLOAT)))
("video", makeMap(boost::assign::map_list_of
("pos", NORMALIZED_PAIR)
("size", NORMALIZED_PAIR)
("maxSize", NORMALIZED_PAIR)
("origin", NORMALIZED_PAIR)
("rotation", FLOAT)
("rotationOrigin", NORMALIZED_PAIR)
("path", PATH)
("zIndex", FLOAT)))
("text", makeMap(boost::assign::map_list_of
("pos", NORMALIZED_PAIR)
("size", NORMALIZED_PAIR)
......
......@@ -400,7 +400,7 @@ void VideoComponent::applyTheme(const std::shared_ptr<ThemeData>& theme, const s
{
using namespace ThemeFlags;
const ThemeData::ThemeElement* elem = theme->getElement(view, element, "image");
const ThemeData::ThemeElement* elem = theme->getElement(view, element, "video");
if (!elem)
{
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment