aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuTheme.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-01-09 16:51:52 (GMT)
committerfluxgen <fluxgen>2003-01-09 16:51:52 (GMT)
commitccd693067e85b6049a9d61dc33338ecd6e8c22ee (patch)
tree382149c0ba6e29a1e71bfdf1cdd04277cc41551a /src/FbTk/MenuTheme.cc
parent41bee7797df219de59c4999bf8464fc3cd57c407 (diff)
downloadfluxbox_pavel-ccd693067e85b6049a9d61dc33338ecd6e8c22ee.zip
fluxbox_pavel-ccd693067e85b6049a9d61dc33338ecd6e8c22ee.tar.bz2
added menu border color and border width and bevel width
Diffstat (limited to 'src/FbTk/MenuTheme.cc')
-rw-r--r--src/FbTk/MenuTheme.cc20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/FbTk/MenuTheme.cc b/src/FbTk/MenuTheme.cc
index 1b7a187..12c1231 100644
--- a/src/FbTk/MenuTheme.cc
+++ b/src/FbTk/MenuTheme.cc
@@ -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.cc,v 1.1 2002/12/25 11:42:05 fluxgen Exp $ 22// $Id: MenuTheme.cc,v 1.2 2003/01/09 16:51:52 fluxgen Exp $
23 23
24#include "MenuTheme.hh" 24#include "MenuTheme.hh"
25 25
@@ -47,6 +47,9 @@ MenuTheme::MenuTheme(int screen_num):
47 titlefont_justify(*this, "menu.title.justify", "Menu.Title.Justify"), 47 titlefont_justify(*this, "menu.title.justify", "Menu.Title.Justify"),
48 bullet_pos(*this, "menu.bulletPos", "Menu.BulletPos"), 48 bullet_pos(*this, "menu.bulletPos", "Menu.BulletPos"),
49 m_bullet(*this, "menu.bullet", "Menu.Bullet"), 49 m_bullet(*this, "menu.bullet", "Menu.Bullet"),
50 m_border_width(*this, "borderWidth", "BorderWidth"),
51 m_bevel_width(*this, "bevelWidth", "BevelWidth"),
52 m_border_color(*this, "borderColor", "BorderColor"),
50 m_display(FbTk::App::instance()->display()) { 53 m_display(FbTk::App::instance()->display()) {
51 54
52 Window rootwindow = RootWindow(m_display, screen_num); 55 Window rootwindow = RootWindow(m_display, screen_num);
@@ -132,4 +135,19 @@ void ThemeItem<MenuTheme::BulletType>::load() {
132 // do nothing, we don't have anything extra to load 135 // do nothing, we don't have anything extra to load
133} 136}
134 137
138template <>
139void ThemeItem<unsigned int>::setDefaultValue() {
140 m_value = 0;
141}
142
143template <>
144void ThemeItem<unsigned int>::setFromString(const char *str) {
145 sscanf(str, "%d", &m_value);
146}
147
148template <>
149void ThemeItem<unsigned int>::load() {
150}
151
152
135}; // end namespace FbTk 153}; // end namespace FbTk