all repos — fluxbox @ 11a0b784b3c3143675ba6b666c57682f4f688e15

custom fork of the fluxbox windowmanager

added bevel, border width and color
fluxgen fluxgen
commit

11a0b784b3c3143675ba6b666c57682f4f688e15

parent

976f78576bb17a45719b5c657f695361c6991ddd

2 files changed, 12 insertions(+), 3 deletions(-)

jump to
M src/ToolbarTheme.ccsrc/ToolbarTheme.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ m_clock_textcolor(*this,

"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 @@ "toolbar.button.pressed", "Toolbar.Button.Pressed"),

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);
M src/ToolbarTheme.hhsrc/ToolbarTheme.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ const FbTk::Color &labelTextColor() const { return *m_label_textcolor; }

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 @@ GC buttonPicGC() const { return m_button_pic_gc; }

///@} 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;