diff options
Diffstat (limited to 'src/ButtonTheme.cc')
-rw-r--r-- | src/ButtonTheme.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ButtonTheme.cc b/src/ButtonTheme.cc index 47177cd..663da77 100644 --- a/src/ButtonTheme.cc +++ b/src/ButtonTheme.cc | |||
@@ -14,6 +14,7 @@ ButtonTheme::ButtonTheme(int screen_num, | |||
14 | 14 | ||
15 | bool ButtonTheme::fallback(FbTk::ThemeItem_base &item) { | 15 | bool ButtonTheme::fallback(FbTk::ThemeItem_base &item) { |
16 | 16 | ||
17 | /* Don't fallback these for theme backwards compatibility | ||
17 | if (item.name().find(".borderWidth") != std::string::npos) { | 18 | if (item.name().find(".borderWidth") != std::string::npos) { |
18 | return FbTk::ThemeManager::instance().loadItem(item, "borderWidth", "BorderWidth"); | 19 | return FbTk::ThemeManager::instance().loadItem(item, "borderWidth", "BorderWidth"); |
19 | } | 20 | } |
@@ -21,7 +22,7 @@ bool ButtonTheme::fallback(FbTk::ThemeItem_base &item) { | |||
21 | if (item.name().find(".borderColor") != std::string::npos) { | 22 | if (item.name().find(".borderColor") != std::string::npos) { |
22 | return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor"); | 23 | return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor"); |
23 | } | 24 | } |
24 | 25 | */ | |
25 | if (item.name().find(".pressed") != std::string::npos) { | 26 | if (item.name().find(".pressed") != std::string::npos) { |
26 | // copy texture | 27 | // copy texture |
27 | *m_pressed_texture = texture(); | 28 | *m_pressed_texture = texture(); |