diff options
author | markt <markt> | 2007-04-04 18:06:54 (GMT) |
---|---|---|
committer | markt <markt> | 2007-04-04 18:06:54 (GMT) |
commit | 9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d (patch) | |
tree | 2d190d364de6b4a1546fb13b508d6d829a5b29fa /src/IconbarTheme.cc | |
parent | f7ddf99bfd0578bb1d45c71f10904b7781700332 (diff) | |
download | fluxbox-9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d.zip fluxbox-9d7c562478b553c8f0f71acdfa93bda2f0a5ce5d.tar.bz2 |
moved some code from here to there
Diffstat (limited to 'src/IconbarTheme.cc')
-rw-r--r-- | src/IconbarTheme.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/IconbarTheme.cc b/src/IconbarTheme.cc index f4e4c55..1f25ac3 100644 --- a/src/IconbarTheme.cc +++ b/src/IconbarTheme.cc | |||
@@ -37,8 +37,7 @@ IconbarTheme::IconbarTheme(int screen_num, | |||
37 | m_border(*this, name, altname), | 37 | m_border(*this, name, altname), |
38 | m_focused_text(*this, name + ".focused", altname + ".Focused"), | 38 | m_focused_text(*this, name + ".focused", altname + ".Focused"), |
39 | m_unfocused_text(*this, name + ".unfocused", altname + ".Unfocused"), | 39 | m_unfocused_text(*this, name + ".unfocused", altname + ".Unfocused"), |
40 | m_name(name), | 40 | m_name(name), m_altname(altname) { |
41 | m_alpha(*this, name+".alpha", altname+".Alpha") { | ||
42 | 41 | ||
43 | FbTk::ThemeManager::instance().loadTheme(*this); | 42 | FbTk::ThemeManager::instance().loadTheme(*this); |
44 | 43 | ||
@@ -58,6 +57,7 @@ bool IconbarTheme::fallback(FbTk::ThemeItem_base &item) { | |||
58 | using namespace FbTk; | 57 | using namespace FbTk; |
59 | ThemeManager &tm = ThemeManager::instance(); | 58 | ThemeManager &tm = ThemeManager::instance(); |
60 | 59 | ||
60 | // TODO: fix fallbacks for "focused" vs. "focus" | ||
61 | if (&m_focused_texture == &item) { | 61 | if (&m_focused_texture == &item) { |
62 | return (tm.loadItem(item, "window.label.focus", "Window.Label.Focus") || | 62 | return (tm.loadItem(item, "window.label.focus", "Window.Label.Focus") || |
63 | tm.loadItem(item, "toolbar.windowLabel", "toolbar.windowLabel")); | 63 | tm.loadItem(item, "toolbar.windowLabel", "toolbar.windowLabel")); |
@@ -91,11 +91,6 @@ bool IconbarTheme::fallback(FbTk::ThemeItem_base &item) { | |||
91 | 91 | ||
92 | } else if (item.name() == m_name + ".unfocused.textColor") { | 92 | } else if (item.name() == m_name + ".unfocused.textColor") { |
93 | return tm.loadItem(item, "window.label.unfocus.textColor", "Window.Label.Unfocus.TextColor"); | 93 | return tm.loadItem(item, "window.label.unfocus.textColor", "Window.Label.Unfocus.TextColor"); |
94 | } else if (item.name() == m_name + ".alpha") { | ||
95 | if (!tm.loadItem(item, "toolbar.alpha", "Toolbar.Alpha")) { | ||
96 | *m_alpha = 255; | ||
97 | } | ||
98 | return true; | ||
99 | } | 94 | } |
100 | 95 | ||
101 | return false; | 96 | return false; |