aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTheme.hh
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/IconbarTheme.hh
parentac1bd7e0981222bf340ce7defb2bb8307d42a0a2 (diff)
downloadfluxbox-dbfddf8e0bcf8e7abbba671eff64c9679332a774.zip
fluxbox-dbfddf8e0bcf8e7abbba671eff64c9679332a774.tar.bz2
added new ThemeProxy for automatically handling focused vs. unfocused ThemeItems
Diffstat (limited to 'src/IconbarTheme.hh')
-rw-r--r--src/IconbarTheme.hh16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/IconbarTheme.hh b/src/IconbarTheme.hh
index 4dc5f32..e4b3c8b 100644
--- a/src/IconbarTheme.hh
+++ b/src/IconbarTheme.hh
@@ -36,15 +36,9 @@ public:
36 void reconfigTheme(); 36 void reconfigTheme();
37 bool fallback(FbTk::ThemeItem_base &item); 37 bool fallback(FbTk::ThemeItem_base &item);
38 38
39 FbTk::TextTheme &focusedText() { return m_focused_text; } 39 FbTk::TextTheme &text() { return m_text; }
40 FbTk::TextTheme &unfocusedText() { return m_unfocused_text; }
41
42 const FbTk::BorderTheme &focusedBorder() const { return m_focused_border; }
43 const FbTk::BorderTheme &unfocusedBorder() const { return m_unfocused_border; }
44 const FbTk::BorderTheme &border() const { return m_border; } 40 const FbTk::BorderTheme &border() const { return m_border; }
45 41 const FbTk::Texture &texture() const { return *m_texture; }
46 const FbTk::Texture &focusedTexture() const { return *m_focused_texture; }
47 const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; }
48 const FbTk::Texture &emptyTexture() const { return *m_empty_texture; } 42 const FbTk::Texture &emptyTexture() const { return *m_empty_texture; }
49 43
50 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } 44 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
@@ -54,9 +48,9 @@ public:
54 virtual const IconbarTheme &operator *() const { return *this; } 48 virtual const IconbarTheme &operator *() const { return *this; }
55 49
56private: 50private:
57 FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture; 51 FbTk::ThemeItem<FbTk::Texture> m_texture, m_empty_texture;
58 FbTk::BorderTheme m_focused_border, m_unfocused_border, m_border; 52 FbTk::BorderTheme m_border;
59 FbTk::TextTheme m_focused_text, m_unfocused_text; 53 FbTk::TextTheme m_text;
60 std::string m_name, m_altname; 54 std::string m_name, m_altname;
61}; 55};
62 56