aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconbarTheme.cc')
-rw-r--r--src/IconbarTheme.cc28
1 files changed, 20 insertions, 8 deletions
diff --git a/src/IconbarTheme.cc b/src/IconbarTheme.cc
index 1f25ac3..2ee8360 100644
--- a/src/IconbarTheme.cc
+++ b/src/IconbarTheme.cc
@@ -63,22 +63,30 @@ bool IconbarTheme::fallback(FbTk::ThemeItem_base &item) {
63 tm.loadItem(item, "toolbar.windowLabel", "toolbar.windowLabel")); 63 tm.loadItem(item, "toolbar.windowLabel", "toolbar.windowLabel"));
64 64
65 } else if (&m_unfocused_texture == &item) { 65 } else if (&m_unfocused_texture == &item) {
66 return (tm.loadItem(item, "window.label.unfocus", "Window.Label.Unfocus") || 66 return (tm.loadItem(item, "window.label.unfocus",
67 tm.loadItem(item, "toolbar.windowLabel", "toolbar.windowLabel")); 67 "Window.Label.Unfocus") ||
68 tm.loadItem(item, "toolbar.windowLabel",
69 "toolbar.windowLabel"));
68 } else if (&m_empty_texture == &item) { 70 } else if (&m_empty_texture == &item) {
69 return (tm.loadItem(item, m_focused_texture.name(), m_focused_texture.altName()) || 71 return (tm.loadItem(item, m_focused_texture.name(),
70 tm.loadItem(item, "toolbar.windowLabel", "toolbar.windowLabel") || 72 m_focused_texture.altName()) ||
71 tm.loadItem(item, "toolbar", "toolbar") 73 tm.loadItem(item, "toolbar.windowLabel", "toolbar.windowLabel")
72 ); 74 || tm.loadItem(item, "toolbar", "toolbar"));
73 } else if (item.name() == m_name + ".focused.borderWidth" || 75 } else if (item.name() == m_name + ".focused.borderWidth" ||
74 item.name() == m_name + ".unfocused.borderWidth") 76 item.name() == m_name + ".unfocused.borderWidth")
75 // don't fallback for base border, for theme backwards compatibility 77 // don't fallback for base border, for theme backwards compatibility
76 return tm.loadItem(item, "borderWidth", "BorderWidth"); 78 return (tm.loadItem(item, m_name + ".borderWidth",
79 m_altname + ".BorderWidth") ||
80 tm.loadItem(item, "window.borderWidth", "Window.BorderWidth") ||
81 tm.loadItem(item, "borderWidth", "BorderWidth"));
77 82
78 else if (item.name() == m_name + ".focused.borderColor" || 83 else if (item.name() == m_name + ".focused.borderColor" ||
79 item.name() == m_name + ".unfocused.borderColor") 84 item.name() == m_name + ".unfocused.borderColor")
80 85
81 return tm.loadItem(item, "borderColor", "BorderColor"); 86 return (tm.loadItem(item, m_name + ".borderColor",
87 m_altname + ".BorderColor") ||
88 tm.loadItem(item, "window.borderColor", "Window.BorderColor") ||
89 tm.loadItem(item, "borderColor", "BorderColor"));
82 90
83 else if (item.name() == m_name + ".focused.font" || 91 else if (item.name() == m_name + ".focused.font" ||
84 item.name() == m_name + ".unfocused.font") 92 item.name() == m_name + ".unfocused.font")
@@ -91,6 +99,10 @@ bool IconbarTheme::fallback(FbTk::ThemeItem_base &item) {
91 99
92 } else if (item.name() == m_name + ".unfocused.textColor") { 100 } else if (item.name() == m_name + ".unfocused.textColor") {
93 return tm.loadItem(item, "window.label.unfocus.textColor", "Window.Label.Unfocus.TextColor"); 101 return tm.loadItem(item, "window.label.unfocus.textColor", "Window.Label.Unfocus.TextColor");
102 } else if (item.name() == m_name + ".focused.justify" ||
103 item.name() == m_name + ".unfocused.justify") {
104 return (tm.loadItem(item, m_name + ".justify", m_altname + ".Justify")
105 || tm.loadItem(item, "window.justify", "Window.Justify"));
94 } 106 }
95 107
96 return false; 108 return false;