aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconbarTheme.hh')
-rw-r--r--src/IconbarTheme.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/IconbarTheme.hh b/src/IconbarTheme.hh
index 6d41f28..3a56eb8 100644
--- a/src/IconbarTheme.hh
+++ b/src/IconbarTheme.hh
@@ -28,7 +28,7 @@
28#include "FbTk/Texture.hh" 28#include "FbTk/Texture.hh"
29#include "FbTk/TextTheme.hh" 29#include "FbTk/TextTheme.hh"
30 30
31class IconbarTheme:public FbTk::Theme { 31class IconbarTheme: public FbTk::Theme, public FbTk::ThemeProxy<IconbarTheme> {
32public: 32public:
33 IconbarTheme(int screen_num, const std::string &name, const std::string &altname); 33 IconbarTheme(int screen_num, const std::string &name, const std::string &altname);
34 virtual ~IconbarTheme(); 34 virtual ~IconbarTheme();
@@ -47,6 +47,12 @@ public:
47 const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; } 47 const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; }
48 const FbTk::Texture &emptyTexture() const { return *m_empty_texture; } 48 const FbTk::Texture &emptyTexture() const { return *m_empty_texture; }
49 49
50 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
51 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
52
53 virtual IconbarTheme *operator ->() { return this; }
54 virtual const IconbarTheme *operator ->() const { return this; }
55
50private: 56private:
51 FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture; 57 FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture;
52 FbTk::BorderTheme m_focused_border, m_unfocused_border, m_border; 58 FbTk::BorderTheme m_focused_border, m_unfocused_border, m_border;