diff options
author | rathnor <rathnor> | 2003-07-19 03:59:56 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-07-19 03:59:56 (GMT) |
commit | a827c24e36aa3cf42566fe44dde5848df7679d14 (patch) | |
tree | c92a16e1fa0eab7feb6c5f0caeee5b2e11460443 /src/FbTk/MenuTheme.hh | |
parent | 2e3bd41f4e0e5d10c65888b277f944d75938fab8 (diff) | |
download | fluxbox_pavel-a827c24e36aa3cf42566fe44dde5848df7679d14.zip fluxbox_pavel-a827c24e36aa3cf42566fe44dde5848df7679d14.tar.bz2 |
fix alpha setting for menus when multiple screens by moving from static in menu
to part of MenuTheme
Diffstat (limited to 'src/FbTk/MenuTheme.hh')
-rw-r--r-- | src/FbTk/MenuTheme.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbTk/MenuTheme.hh b/src/FbTk/MenuTheme.hh index b39b824..dd03910 100644 --- a/src/FbTk/MenuTheme.hh +++ b/src/FbTk/MenuTheme.hh | |||
@@ -19,7 +19,7 @@ | |||
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: MenuTheme.hh,v 1.6 2003/05/04 21:01:43 fluxgen Exp $ | 22 | // $Id: MenuTheme.hh,v 1.7 2003/07/19 03:59:56 rathnor Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_MENUTHEME_HH | 24 | #ifndef FBTK_MENUTHEME_HH |
25 | #define FBTK_MENUTHEME_HH | 25 | #define FBTK_MENUTHEME_HH |
@@ -86,6 +86,10 @@ public: | |||
86 | 86 | ||
87 | unsigned int borderWidth() const { return *m_border_width; } | 87 | unsigned int borderWidth() const { return *m_border_width; } |
88 | unsigned int bevelWidth() const { return *m_bevel_width; } | 88 | unsigned int bevelWidth() const { return *m_bevel_width; } |
89 | |||
90 | inline unsigned char alpha() const { return m_alpha; } | ||
91 | void setAlpha(unsigned char alpha) { m_alpha = alpha; } | ||
92 | |||
89 | const FbTk::Color &borderColor() const { return *m_border_color; } | 93 | const FbTk::Color &borderColor() const { return *m_border_color; } |
90 | FbTk::Subject &themeChangeSig() { return m_theme_change_sig; } | 94 | FbTk::Subject &themeChangeSig() { return m_theme_change_sig; } |
91 | /// attach observer | 95 | /// attach observer |
@@ -107,6 +111,8 @@ private: | |||
107 | Display *m_display; | 111 | Display *m_display; |
108 | GC t_text_gc, f_text_gc, h_text_gc, d_text_gc, hilite_gc; | 112 | GC t_text_gc, f_text_gc, h_text_gc, d_text_gc, hilite_gc; |
109 | FbTk::Subject m_theme_change_sig; | 113 | FbTk::Subject m_theme_change_sig; |
114 | |||
115 | unsigned char m_alpha; | ||
110 | }; | 116 | }; |
111 | 117 | ||
112 | }; // end namespace FbTk | 118 | }; // end namespace FbTk |