aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-29 10:34:41 (GMT)
committerfluxgen <fluxgen>2003-08-29 10:34:41 (GMT)
commit86f59cdcb09c83feb6da52b354309f342a41249e (patch)
tree7e589a5b691e5db013aef3eacd6fedac84349369
parente90cbd35e0fa3deb864e7fcd8777de0ab56c6013 (diff)
downloadfluxbox-86f59cdcb09c83feb6da52b354309f342a41249e.zip
fluxbox-86f59cdcb09c83feb6da52b354309f342a41249e.tar.bz2
fixed fallback items
-rw-r--r--src/SlitTheme.hh29
1 files changed, 9 insertions, 20 deletions
diff --git a/src/SlitTheme.hh b/src/SlitTheme.hh
index 3c7c8d9..2d65f27 100644
--- a/src/SlitTheme.hh
+++ b/src/SlitTheme.hh
@@ -19,38 +19,27 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: SlitTheme.hh,v 1.3 2003/08/24 23:21:58 fluxgen Exp $ 22// $Id: SlitTheme.hh,v 1.4 2003/08/29 10:34:41 fluxgen Exp $
23 23
24#ifndef SLITTHEME_HH 24#ifndef SLITTHEME_HH
25#define SLITTHEME_HH 25#define SLITTHEME_HH
26 26
27#include "Theme.hh" 27#include "FbTk/Theme.hh"
28#include "Slit.hh" 28#include "FbTk/Texture.hh"
29#include "FbTk/Color.hh"
29 30
30class SlitTheme:public FbTk::Theme { 31class SlitTheme:public FbTk::Theme {
31public: 32public:
32 explicit SlitTheme(Slit &slit):FbTk::Theme(slit.screen().screenNumber()), 33 explicit SlitTheme(int screen_num);
33 m_slit(slit), 34
34 m_texture(*this, "slit", "Slit"), 35 void reconfigTheme();
35 m_border_width(*this, "slit.borderWidth", "Slit.borderWidth"), 36 bool fallback(FbTk::ThemeItem_base &item);
36 m_bevel_width(*this, "slit.bevelWidth", "slit.bevelWidth"), 37
37 m_border_color(*this, "slit.borderColor", "Slit.BorderColor") {
38 m_texture.setDefaultValue();
39 m_border_width.setDefaultValue();
40 m_bevel_width.setDefaultValue();
41 m_border_color.setDefaultValue();
42 // default texture type
43 m_texture->setType(FbTk::Texture::SOLID);
44 }
45 void reconfigTheme() {
46 m_slit.reconfigure();
47 }
48 const FbTk::Texture &texture() const { return *m_texture; } 38 const FbTk::Texture &texture() const { return *m_texture; }
49 const FbTk::Color &borderColor() const { return *m_border_color; } 39 const FbTk::Color &borderColor() const { return *m_border_color; }
50 int borderWidth() const { return *m_border_width; } 40 int borderWidth() const { return *m_border_width; }
51 int bevelWidth() const { return *m_bevel_width; } 41 int bevelWidth() const { return *m_bevel_width; }
52private: 42private:
53 Slit &m_slit;
54 FbTk::ThemeItem<FbTk::Texture> m_texture; 43 FbTk::ThemeItem<FbTk::Texture> m_texture;
55 FbTk::ThemeItem<int> m_border_width, m_bevel_width; 44 FbTk::ThemeItem<int> m_border_width, m_bevel_width;
56 FbTk::ThemeItem<FbTk::Color> m_border_color; 45 FbTk::ThemeItem<FbTk::Color> m_border_color;