From 11a0b784b3c3143675ba6b666c57682f4f688e15 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 24 Jun 2003 16:26:56 +0000 Subject: added bevel, border width and color --- src/ToolbarTheme.cc | 6 +++++- src/ToolbarTheme.hh | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc index 374a596..61df3d4 100644 --- a/src/ToolbarTheme.cc +++ b/src/ToolbarTheme.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolbarTheme.cc,v 1.2 2003/02/15 01:59:00 fluxgen Exp $ +// $Id: ToolbarTheme.cc,v 1.3 2003/06/24 16:26:56 fluxgen Exp $ #include "ToolbarTheme.hh" @@ -38,6 +38,8 @@ ToolbarTheme::ToolbarTheme(int screen_num): "toolbar.clock.textColor", "Toolbar.Clock.TextColor"), m_button_color(*this, "toolbar.button.picColor", "Toolbar.Button.PicColor"), + m_border_color(*this, + "toolbar.borderColor", "toolbar.borderColor"), m_toolbar(*this, "toolbar", "Toolbar"), m_label(*this, "toolbar.label", "Toolbar.Label"), m_window(*this, "toolbar.windowLabel", "Toolbar.WindowLabel"), @@ -47,6 +49,8 @@ ToolbarTheme::ToolbarTheme(int screen_num): m_clock(*this, "toolbar.clock", "Toolbar.Clock"), m_font(*this, "toolbar.font", "Toolbar.Font"), m_justify(*this, "toolbar.justify", "Toolbar.Justify"), + m_border_width(*this, "toolbar.borderWidth", "Toolbar.BorderWidth"), + m_bevel_width(*this, "toolbar.bevelWidth", "Toolbar.BevelWidth"), m_display(FbTk::App::instance()->display()){ Window rootwindow = RootWindow(m_display, screen_num); diff --git a/src/ToolbarTheme.hh b/src/ToolbarTheme.hh index cbe9c90..dda3346 100644 --- a/src/ToolbarTheme.hh +++ b/src/ToolbarTheme.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolbarTheme.hh,v 1.2 2003/02/15 01:58:52 fluxgen Exp $ +// $Id: ToolbarTheme.hh,v 1.3 2003/06/24 16:26:56 fluxgen Exp $ #ifndef TOOLBARTHEME_HH #define TOOLBARTHEME_HH @@ -47,6 +47,7 @@ public: const FbTk::Color &windowTextColor() const { return *m_window_textcolor; } const FbTk::Color &clockTextColor() const { return *m_clock_textcolor; } const FbTk::Color &buttonColor() const { return *m_button_color; } + const FbTk::Color &borderColor() const { return *m_border_color; } ///@} /** @name textures @@ -72,16 +73,20 @@ public: ///@} FbTk::Justify justify() const { return *m_justify; } + int borderWidth() const { return *m_border_width; } + int bevelWidth() const { return *m_bevel_width; } void addListener(FbTk::Observer &obs) { m_theme_change_sig.attach(&obs); } void removeListener(FbTk::Observer &obs) { m_theme_change_sig.detach(&obs); } private: // text colors FbTk::ThemeItem m_label_textcolor, m_window_textcolor, m_clock_textcolor; - FbTk::ThemeItem m_button_color; + FbTk::ThemeItem m_button_color, m_border_color; // textures FbTk::ThemeItem m_toolbar, m_label, m_window, m_button, m_pressed_button, m_clock; FbTk::ThemeItem m_font; FbTk::ThemeItem m_justify; + + FbTk::ThemeItem m_border_width, m_bevel_width; // graphic context GC m_label_text_gc, m_window_text_gc, m_clock_text_gc, m_button_pic_gc; Display *m_display; -- cgit v0.11.2