diff options
Diffstat (limited to 'src/FbWinFrameTheme.hh')
-rw-r--r-- | src/FbWinFrameTheme.hh | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh index 319e01b..526bd3b 100644 --- a/src/FbWinFrameTheme.hh +++ b/src/FbWinFrameTheme.hh | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "FbTk/GContext.hh" | 33 | #include "FbTk/GContext.hh" |
34 | 34 | ||
35 | #include "BorderTheme.hh" | 35 | #include "BorderTheme.hh" |
36 | #include "IconbarTheme.hh" | ||
36 | #include "Shape.hh" | 37 | #include "Shape.hh" |
37 | 38 | ||
38 | class FbWinFrameTheme: public FbTk::Theme { | 39 | class FbWinFrameTheme: public FbTk::Theme { |
@@ -43,9 +44,6 @@ public: | |||
43 | @name textures | 44 | @name textures |
44 | */ | 45 | */ |
45 | //@{ | 46 | //@{ |
46 | const FbTk::Texture &labelFocusTexture() const { return *m_label_focus; } | ||
47 | const FbTk::Texture &labelUnfocusTexture() const { return *m_label_unfocus; } | ||
48 | const FbTk::ThemeItem<FbTk::Texture> &label() const { return m_label_unfocus; } | ||
49 | const FbTk::Texture &titleFocusTexture() const { return *m_title_focus; } | 47 | const FbTk::Texture &titleFocusTexture() const { return *m_title_focus; } |
50 | const FbTk::Texture &titleUnfocusTexture() const { return *m_title_unfocus; } | 48 | const FbTk::Texture &titleUnfocusTexture() const { return *m_title_unfocus; } |
51 | 49 | ||
@@ -64,9 +62,6 @@ public: | |||
64 | @name colors | 62 | @name colors |
65 | */ | 63 | */ |
66 | //@{ | 64 | //@{ |
67 | const FbTk::Color &labelFocusColor() const { return *m_label_focus_color; } | ||
68 | const FbTk::Color &labelUnfocusColor() const { return *m_label_unfocus_color; } | ||
69 | |||
70 | const FbTk::Color &buttonFocuscolor() const { return *m_button_focus_color; } | 65 | const FbTk::Color &buttonFocuscolor() const { return *m_button_focus_color; } |
71 | const FbTk::Color &buttonUnfocuscolor() const { return *m_button_unfocus_color; } | 66 | const FbTk::Color &buttonUnfocuscolor() const { return *m_button_unfocus_color; } |
72 | //@} | 67 | //@} |
@@ -74,8 +69,6 @@ public: | |||
74 | 69 | ||
75 | FbTk::Justify justify() const { return *m_textjustify; } | 70 | FbTk::Justify justify() const { return *m_textjustify; } |
76 | 71 | ||
77 | GC labelTextFocusGC() const { return m_label_text_focus_gc.gc(); } | ||
78 | GC labelTextUnfocusGC() const { return m_label_text_unfocus_gc.gc(); } | ||
79 | GC buttonPicFocusGC() const { return m_button_pic_focus_gc.gc(); } | 72 | GC buttonPicFocusGC() const { return m_button_pic_focus_gc.gc(); } |
80 | GC buttonPicUnfocusGC() const { return m_button_pic_unfocus_gc.gc(); } | 73 | GC buttonPicUnfocusGC() const { return m_button_pic_unfocus_gc.gc(); } |
81 | 74 | ||
@@ -100,14 +93,14 @@ public: | |||
100 | void setFocusedAlpha(unsigned char alpha) { m_focused_alpha = alpha; } | 93 | void setFocusedAlpha(unsigned char alpha) { m_focused_alpha = alpha; } |
101 | void setUnfocusedAlpha(unsigned char alpha) { m_unfocused_alpha = alpha; } | 94 | void setUnfocusedAlpha(unsigned char alpha) { m_unfocused_alpha = alpha; } |
102 | 95 | ||
96 | IconbarTheme &iconbarTheme() { return m_iconbar_theme; } | ||
97 | |||
103 | private: | 98 | private: |
104 | FbTk::ThemeItem<FbTk::Texture> m_label_focus, m_label_unfocus; | ||
105 | FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus; | 99 | FbTk::ThemeItem<FbTk::Texture> m_title_focus, m_title_unfocus; |
106 | FbTk::ThemeItem<FbTk::Texture> m_handle_focus, m_handle_unfocus; | 100 | FbTk::ThemeItem<FbTk::Texture> m_handle_focus, m_handle_unfocus; |
107 | FbTk::ThemeItem<FbTk::Texture> m_button_focus, m_button_unfocus, m_button_pressed; | 101 | FbTk::ThemeItem<FbTk::Texture> m_button_focus, m_button_unfocus, m_button_pressed; |
108 | FbTk::ThemeItem<FbTk::Texture> m_grip_focus, m_grip_unfocus; | 102 | FbTk::ThemeItem<FbTk::Texture> m_grip_focus, m_grip_unfocus; |
109 | 103 | ||
110 | FbTk::ThemeItem<FbTk::Color> m_label_focus_color, m_label_unfocus_color; | ||
111 | FbTk::ThemeItem<FbTk::Color> m_button_focus_color, m_button_unfocus_color; | 104 | FbTk::ThemeItem<FbTk::Color> m_button_focus_color, m_button_unfocus_color; |
112 | 105 | ||
113 | FbTk::ThemeItem<FbTk::Font> m_font; | 106 | FbTk::ThemeItem<FbTk::Font> m_font; |
@@ -117,7 +110,6 @@ private: | |||
117 | FbTk::ThemeItem<int> m_title_height, m_bevel_width, m_handle_width; | 110 | FbTk::ThemeItem<int> m_title_height, m_bevel_width, m_handle_width; |
118 | BorderTheme m_border; | 111 | BorderTheme m_border; |
119 | 112 | ||
120 | FbTk::GContext m_label_text_focus_gc, m_label_text_unfocus_gc; | ||
121 | FbTk::GContext m_button_pic_focus_gc, m_button_pic_unfocus_gc; | 113 | FbTk::GContext m_button_pic_focus_gc, m_button_pic_unfocus_gc; |
122 | 114 | ||
123 | Cursor m_cursor_move; | 115 | Cursor m_cursor_move; |
@@ -127,6 +119,8 @@ private: | |||
127 | Cursor m_cursor_upper_right_angle; | 119 | Cursor m_cursor_upper_right_angle; |
128 | unsigned char m_focused_alpha; | 120 | unsigned char m_focused_alpha; |
129 | unsigned char m_unfocused_alpha; | 121 | unsigned char m_unfocused_alpha; |
122 | |||
123 | IconbarTheme m_iconbar_theme; | ||
130 | }; | 124 | }; |
131 | 125 | ||
132 | #endif // FBWINFRAMETHEME_HH | 126 | #endif // FBWINFRAMETHEME_HH |