diff options
author | simonb <simonb> | 2005-04-26 01:41:55 (GMT) |
---|---|---|
committer | simonb <simonb> | 2005-04-26 01:41:55 (GMT) |
commit | 1c2f92a3d2288b1cae9500110a72173506a18072 (patch) | |
tree | cdb695da16dcee74872790c772bb535def9f2895 /src/FbTk/MenuTheme.hh | |
parent | b49432be05c6cf748e662e196778463e2190b4c3 (diff) | |
download | fluxbox-1c2f92a3d2288b1cae9500110a72173506a18072.zip fluxbox-1c2f92a3d2288b1cae9500110a72173506a18072.tar.bz2 |
extension of previous big patch. Move a bunch of menu things onto
background pixmap. Same for textbuttons.
Diffstat (limited to 'src/FbTk/MenuTheme.hh')
-rw-r--r-- | src/FbTk/MenuTheme.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/FbTk/MenuTheme.hh b/src/FbTk/MenuTheme.hh index ddc8d8f..8fc4d1c 100644 --- a/src/FbTk/MenuTheme.hh +++ b/src/FbTk/MenuTheme.hh | |||
@@ -71,6 +71,10 @@ public: | |||
71 | inline const FbTk::PixmapWithMask &bulletPixmap() const { return *m_bullet_pixmap; } | 71 | inline const FbTk::PixmapWithMask &bulletPixmap() const { return *m_bullet_pixmap; } |
72 | inline const FbTk::PixmapWithMask &selectedPixmap() const { return *m_selected_pixmap; } | 72 | inline const FbTk::PixmapWithMask &selectedPixmap() const { return *m_selected_pixmap; } |
73 | inline const FbTk::PixmapWithMask &unselectedPixmap() const { return *m_unselected_pixmap; } | 73 | inline const FbTk::PixmapWithMask &unselectedPixmap() const { return *m_unselected_pixmap; } |
74 | |||
75 | inline const FbTk::PixmapWithMask &highlightBulletPixmap() const { return *m_hl_bullet_pixmap; } | ||
76 | inline const FbTk::PixmapWithMask &highlightSelectedPixmap() const { return *m_hl_selected_pixmap; } | ||
77 | inline const FbTk::PixmapWithMask &highlightUnselectedPixmap() const { return *m_hl_unselected_pixmap; } | ||
74 | /** | 78 | /** |
75 | @name fonts | 79 | @name fonts |
76 | */ | 80 | */ |
@@ -121,6 +125,10 @@ public: | |||
121 | 125 | ||
122 | inline const FbTk::Color &borderColor() const { return *m_border_color; } | 126 | inline const FbTk::Color &borderColor() const { return *m_border_color; } |
123 | 127 | ||
128 | // special override | ||
129 | inline void setSelectedPixmap(Pixmap pm) { m_selected_pixmap->pixmap() = pm; } | ||
130 | inline void setHighlightSelectedPixmap(Pixmap pm) { m_hl_selected_pixmap->pixmap() = pm; } | ||
131 | |||
124 | private: | 132 | private: |
125 | FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text; | 133 | FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text; |
126 | FbTk::ThemeItem<FbTk::Texture> title, frame, hilite; | 134 | FbTk::ThemeItem<FbTk::Texture> title, frame, hilite; |
@@ -133,6 +141,7 @@ private: | |||
133 | FbTk::ThemeItem<unsigned int> m_bevel_width; | 141 | FbTk::ThemeItem<unsigned int> m_bevel_width; |
134 | FbTk::ThemeItem<FbTk::Color> m_border_color; | 142 | FbTk::ThemeItem<FbTk::Color> m_border_color; |
135 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_bullet_pixmap, m_selected_pixmap, m_unselected_pixmap; | 143 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_bullet_pixmap, m_selected_pixmap, m_unselected_pixmap; |
144 | FbTk::ThemeItem<FbTk::PixmapWithMask> m_hl_bullet_pixmap, m_hl_selected_pixmap, m_hl_unselected_pixmap; | ||
136 | 145 | ||
137 | Display *m_display; | 146 | Display *m_display; |
138 | FbTk::GContext t_text_gc, f_text_gc, h_text_gc, d_text_gc, hilite_gc; | 147 | FbTk::GContext t_text_gc, f_text_gc, h_text_gc, d_text_gc, hilite_gc; |