diff options
author | rathnor <rathnor> | 2004-08-27 14:14:42 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-08-27 14:14:42 (GMT) |
commit | f2599d87f61ac4d2028698195024e082ed6f513a (patch) | |
tree | 5615c94f2b11262d26be54d573efaecde35246ee /src/ButtonTheme.hh | |
parent | 6ce5a31ea8bb6dbf6f64260c62d9af153e9d7f30 (diff) | |
download | fluxbox_pavel-f2599d87f61ac4d2028698195024e082ed6f513a.zip fluxbox_pavel-f2599d87f61ac4d2028698195024e082ed6f513a.tar.bz2 |
add a special fallback for toolbar button style
Diffstat (limited to 'src/ButtonTheme.hh')
-rw-r--r-- | src/ButtonTheme.hh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ButtonTheme.hh b/src/ButtonTheme.hh index 0df252c..cba4282 100644 --- a/src/ButtonTheme.hh +++ b/src/ButtonTheme.hh | |||
@@ -8,7 +8,9 @@ | |||
8 | class ButtonTheme: public ToolTheme { | 8 | class ButtonTheme: public ToolTheme { |
9 | public: | 9 | public: |
10 | ButtonTheme(int screen_num, | 10 | ButtonTheme(int screen_num, |
11 | const std::string &name, const std::string &alt_name); | 11 | const std::string &name, const std::string &alt_name, |
12 | const std::string &extra_fallback, | ||
13 | const std::string &extra_fallback_alt); | ||
12 | virtual ~ButtonTheme() { } | 14 | virtual ~ButtonTheme() { } |
13 | 15 | ||
14 | bool fallback(FbTk::ThemeItem_base &item); | 16 | bool fallback(FbTk::ThemeItem_base &item); |
@@ -17,11 +19,16 @@ public: | |||
17 | inline const FbTk::Texture &pressed() const { return *m_pressed_texture; } | 19 | inline const FbTk::Texture &pressed() const { return *m_pressed_texture; } |
18 | inline GC gc() const { return m_gc.gc(); } | 20 | inline GC gc() const { return m_gc.gc(); } |
19 | inline int scale() const { return *m_scale; } // scale factor for inside objects | 21 | inline int scale() const { return *m_scale; } // scale factor for inside objects |
22 | inline const std::string &name() { return m_name; } | ||
23 | |||
20 | private: | 24 | private: |
21 | FbTk::ThemeItem<FbTk::Color> m_pic_color; | 25 | FbTk::ThemeItem<FbTk::Color> m_pic_color; |
22 | FbTk::ThemeItem<FbTk::Texture> m_pressed_texture; | 26 | FbTk::ThemeItem<FbTk::Texture> m_pressed_texture; |
23 | FbTk::GContext m_gc; | 27 | FbTk::GContext m_gc; |
24 | FbTk::ThemeItem<int> m_scale; | 28 | FbTk::ThemeItem<int> m_scale; |
29 | const std::string m_name; | ||
30 | const std::string m_fallbackname; | ||
31 | const std::string m_altfallbackname; | ||
25 | }; | 32 | }; |
26 | 33 | ||
27 | #endif // BUTTONTHEME_HH | 34 | #endif // BUTTONTHEME_HH |