added bevel, border width and color

This commit is contained in:
fluxgen 2003-06-24 16:26:56 +00:00
parent 976f78576b
commit 11a0b784b3
2 changed files with 12 additions and 3 deletions

View file

@ -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);

View file

@ -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<FbTk::Color> m_label_textcolor, m_window_textcolor, m_clock_textcolor;
FbTk::ThemeItem<FbTk::Color> m_button_color;
FbTk::ThemeItem<FbTk::Color> m_button_color, m_border_color;
// textures
FbTk::ThemeItem<FbTk::Texture> m_toolbar, m_label, m_window, m_button, m_pressed_button, m_clock;
FbTk::ThemeItem<FbTk::Font> m_font;
FbTk::ThemeItem<FbTk::Justify> m_justify;
FbTk::ThemeItem<int> 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;