From 22e3a7a3518c40d107f0b96d2d7aa949a53ccf79 Mon Sep 17 00:00:00 2001 From: rachytski Date: Sat, 9 Jun 2012 00:17:40 +0400 Subject: [PATCH] customized colors and fonts of the "download" button --- map/country_status_display.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/map/country_status_display.cpp b/map/country_status_display.cpp index 83f5514c35..e7c4161ab5 100644 --- a/map/country_status_display.cpp +++ b/map/country_status_display.cpp @@ -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;