summaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-04-03 17:14:00 (GMT)
committermarkt <markt>2007-04-03 17:14:00 (GMT)
commit06fb6cbd55dfabf1069d0603938e0d2d8d22581d (patch)
treed02b12518915bd23934deff497ba123a0830aa0f /src/FbWinFrameTheme.cc
parent48f761f9816f0f11e05dcc4e8f5ac506328e1683 (diff)
downloadfluxbox_lack-06fb6cbd55dfabf1069d0603938e0d2d8d22581d.zip
fluxbox_lack-06fb6cbd55dfabf1069d0603938e0d2d8d22581d.tar.bz2
fixed a bug, removed some unused code
Diffstat (limited to 'src/FbWinFrameTheme.cc')
-rw-r--r--src/FbWinFrameTheme.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc
index 72f42fe..e4bc196 100644
--- a/src/FbWinFrameTheme.cc
+++ b/src/FbWinFrameTheme.cc
@@ -30,7 +30,6 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
30 FbTk::Theme(screen_num), 30 FbTk::Theme(screen_num),
31 m_label_focus(*this, "window.label.focus", "Window.Label.Focus"), 31 m_label_focus(*this, "window.label.focus", "Window.Label.Focus"),
32 m_label_unfocus(*this, "window.label.unfocus", "Window.Label.Unfocus"), 32 m_label_unfocus(*this, "window.label.unfocus", "Window.Label.Unfocus"),
33 m_label_active(*this, "window.label.active", "Window.Label.Active"),
34 33
35 m_title_focus(*this, "window.title.focus", "Window.Title.Focus"), 34 m_title_focus(*this, "window.title.focus", "Window.Title.Focus"),
36 m_title_unfocus(*this, "window.title.unfocus", "Window.Title.Unfocus"), 35 m_title_unfocus(*this, "window.title.unfocus", "Window.Title.Unfocus"),
@@ -47,7 +46,6 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
47 46
48 m_label_focus_color(*this, "window.label.focus.textColor", "Window.Label.Focus.TextColor"), 47 m_label_focus_color(*this, "window.label.focus.textColor", "Window.Label.Focus.TextColor"),
49 m_label_unfocus_color(*this, "window.label.unfocus.textColor", "Window.Label.Unfocus.TextColor"), 48 m_label_unfocus_color(*this, "window.label.unfocus.textColor", "Window.Label.Unfocus.TextColor"),
50 m_label_active_color(*this, "window.label.active.textColor", "Window.Label.Active.TextColor"),
51 49
52 m_button_focus_color(*this, "window.button.focus.picColor", "Window.Button.Focus.PicColor"), 50 m_button_focus_color(*this, "window.button.focus.picColor", "Window.Button.Focus.PicColor"),
53 m_button_unfocus_color(*this, "window.button.unfocus.picColor", "Window.Button.Unfocus.PicColor"), 51 m_button_unfocus_color(*this, "window.button.unfocus.picColor", "Window.Button.Unfocus.PicColor"),
@@ -61,7 +59,6 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
61 m_border(*this, "window", "Window"), // for window.border* 59 m_border(*this, "window", "Window"), // for window.border*
62 m_label_text_focus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)), 60 m_label_text_focus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)),
63 m_label_text_unfocus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)), 61 m_label_text_unfocus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)),
64 m_label_text_active_gc(RootWindow(FbTk::App::instance()->display(), screen_num)),
65 m_button_pic_focus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)), 62 m_button_pic_focus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)),
66 m_button_pic_unfocus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)), 63 m_button_pic_unfocus_gc(RootWindow(FbTk::App::instance()->display(), screen_num)),
67 m_focused_alpha(255), 64 m_focused_alpha(255),
@@ -95,14 +92,6 @@ bool FbWinFrameTheme::fallback(FbTk::ThemeItem_base &item) {
95 return FbTk::ThemeManager::instance().loadItem(item, "bevelWidth", "bevelWidth"); 92 return FbTk::ThemeManager::instance().loadItem(item, "bevelWidth", "bevelWidth");
96 else if (item.name() == "window.handleWidth") 93 else if (item.name() == "window.handleWidth")
97 return FbTk::ThemeManager::instance().loadItem(item, "handleWidth", "HandleWidth"); 94 return FbTk::ThemeManager::instance().loadItem(item, "handleWidth", "HandleWidth");
98 else if (item.name() == "window.label.active") {
99 // copy texture
100 *m_label_active = *m_label_unfocus;
101 return true;
102 } else if (item.name() == "window.label.active.textColor") {
103 return FbTk::ThemeManager::instance().loadItem(item, "window.label.unfocus.textColor",
104 "Window.Label.Unfocus.TextColor");
105 }
106 95
107 return false; 96 return false;
108} 97}
@@ -120,7 +109,6 @@ void FbWinFrameTheme::reconfigTheme() {
120 109
121 m_label_text_focus_gc.setForeground(*m_label_focus_color); 110 m_label_text_focus_gc.setForeground(*m_label_focus_color);
122 m_label_text_unfocus_gc.setForeground(*m_label_unfocus_color); 111 m_label_text_unfocus_gc.setForeground(*m_label_unfocus_color);
123 m_label_text_active_gc.setForeground(*m_label_active_color);
124 m_button_pic_focus_gc.setForeground(*m_button_focus_color); 112 m_button_pic_focus_gc.setForeground(*m_button_focus_color);
125 m_button_pic_unfocus_gc.setForeground(*m_button_unfocus_color); 113 m_button_pic_unfocus_gc.setForeground(*m_button_unfocus_color);
126} 114}