X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Frenderstyle.cc;h=41745ea07e7899dae00934980d7b770a443c81e6;hb=44d653e3e8d042bf3f1d68108a8197a895888da8;hp=8f207074d532dc2525f72f17a5c3430b1436a509;hpb=6266b9e0c1228f862f166b08607e6c420f83f88a;p=chaz%2Fopenbox diff --git a/otk/renderstyle.cc b/otk/renderstyle.cc index 8f207074..41745ea0 100644 --- a/otk/renderstyle.cc +++ b/otk/renderstyle.cc @@ -14,6 +14,8 @@ RenderStyle::RenderStyle(int screen, const std::string &stylefile) : _screen(screen), _file(stylefile) { + _root_color = new RenderColor(_screen, 0x272a2f); + _text_color_focus = new RenderColor(_screen, 0x272a2f); _text_color_unfocus = new RenderColor(_screen, 0x676869); @@ -78,7 +80,7 @@ RenderStyle::RenderStyle(int screen, const std::string &stylefile) false, RenderTexture::Flat, RenderTexture::Bevel1, - true, + false, RenderTexture::Vertical, false, 0x858687, @@ -192,12 +194,12 @@ RenderStyle::RenderStyle(int screen, const std::string &stylefile) data, 8, 8); } - _stick_mask = new PixmapMask(); - _stick_mask->w = _stick_mask->h = 8; + _alldesk_mask = new PixmapMask(); + _alldesk_mask->w = _alldesk_mask->h = 8; { //char data[] = { 0x00, 0x00, 0x18, 0x3c, 0x3c, 0x18, 0x00, 0x00 }; char data[] = { 0x00, 0x66, 0x66, 0x00, 0x00, 0x66, 0x66, 0x00 }; - _stick_mask->mask = + _alldesk_mask->mask = XCreateBitmapFromData(**display, display->screenInfo(_screen)->rootWindow(), data, 8, 8); @@ -220,6 +222,8 @@ RenderStyle::RenderStyle(int screen, const std::string &stylefile) RenderStyle::~RenderStyle() { + delete _root_color; + delete _text_color_focus; delete _text_color_unfocus; @@ -252,7 +256,7 @@ RenderStyle::~RenderStyle() delete _max_mask; delete _icon_mask; - delete _stick_mask; + delete _alldesk_mask; delete _close_mask; }