customized colors and fonts of the "download" button

This commit is contained in:
rachytski 2012-06-09 00:17:40 +04:00 committed by Alex Zolotarev
parent d146cfebf6
commit 22e3a7a351

View file

@ -139,8 +139,12 @@ CountryStatusDisplay::CountryStatusDisplay(Params const & p)
m_downloadButton->setOnClickListener(bind(&CountryStatusDisplay::downloadCountry, this));
m_downloadButton->setIsVisible(false);
m_downloadButton->setPosition(yg::EPosCenter);
m_downloadButton->setFont(gui::Element::EActive, yg::FontDesc(16));
m_downloadButton->setFont(gui::Element::EPressed, yg::FontDesc(16));
m_downloadButton->setFont(EActive, yg::FontDesc(16, yg::Color(255, 255, 255, 255)));
m_downloadButton->setFont(EPressed, yg::FontDesc(16, yg::Color(255, 255, 255, 255)));
m_downloadButton->setColor(EActive, yg::Color(yg::Color(0, 0, 0, 0.6 * 255)));
m_downloadButton->setColor(EPressed, yg::Color(yg::Color(0, 0, 0, 0.4 * 255)));
gui::TextView::Params tp;
tp.m_depth = yg::maxDepth;