aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-07 10:26:32 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-07 10:26:32 (GMT)
commitdbfddf8e0bcf8e7abbba671eff64c9679332a774 (patch)
tree37cefce75eef2f7e0c749c3489008608e71dcd6c /src/FbWinFrameTheme.cc
parentac1bd7e0981222bf340ce7defb2bb8307d42a0a2 (diff)
downloadfluxbox-dbfddf8e0bcf8e7abbba671eff64c9679332a774.zip
fluxbox-dbfddf8e0bcf8e7abbba671eff64c9679332a774.tar.bz2
added new ThemeProxy for automatically handling focused vs. unfocused ThemeItems
Diffstat (limited to 'src/FbWinFrameTheme.cc')
-rw-r--r--src/FbWinFrameTheme.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc
index c72e4cf..634a0fd 100644
--- a/src/FbWinFrameTheme.cc
+++ b/src/FbWinFrameTheme.cc
@@ -55,7 +55,10 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
55 m_button_pic_unfocus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)), 55 m_button_pic_unfocus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)),
56 m_focused_alpha(255), 56 m_focused_alpha(255),
57 m_unfocused_alpha(255), 57 m_unfocused_alpha(255),
58 m_iconbar_theme(screen_num, "window.label", "Window.Label") { 58 m_focused_iconbar_theme(screen_num, "window.label.focus",
59 "Window.Label.Unfocus"),
60 m_unfocused_iconbar_theme(screen_num, "window.label.unfocus",
61 "Window.Label.Unfocus") {
59 62
60 *m_title_height = 0; 63 *m_title_height = 0;
61 // set defaults 64 // set defaults
@@ -111,6 +114,7 @@ void FbWinFrameTheme::reconfigTheme() {
111 m_button_pic_focus_gc.setForeground(*m_button_focus_color); 114 m_button_pic_focus_gc.setForeground(*m_button_focus_color);
112 m_button_pic_unfocus_gc.setForeground(*m_button_unfocus_color); 115 m_button_pic_unfocus_gc.setForeground(*m_button_unfocus_color);
113 116
114 m_iconbar_theme.reconfigTheme(); 117 m_focused_iconbar_theme.reconfigTheme();
118 m_unfocused_iconbar_theme.reconfigTheme();
115} 119}
116 120