aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarTheme.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-25 17:16:40 (GMT)
committerrathnor <rathnor>2004-08-25 17:16:40 (GMT)
commit5337fc6640efbe911682568b6281850fd322e4bb (patch)
treeb2a722b45550cee7dc612b113ddebd9395841ab7 /src/ToolbarTheme.cc
parentf32969d4e5a18bddd426b481824eb50902cba5de (diff)
downloadfluxbox-5337fc6640efbe911682568b6281850fd322e4bb.zip
fluxbox-5337fc6640efbe911682568b6281850fd322e4bb.tar.bz2
fix up theming of the toolbar
Diffstat (limited to 'src/ToolbarTheme.cc')
-rw-r--r--src/ToolbarTheme.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc
index 6b6013f..0c3e3ea 100644
--- a/src/ToolbarTheme.cc
+++ b/src/ToolbarTheme.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: ToolbarTheme.cc,v 1.15 2004/05/24 15:30:52 rathnor Exp $ 22// $Id: ToolbarTheme.cc,v 1.16 2004/08/25 17:16:40 rathnor Exp $
23 23
24#include "ToolbarTheme.hh" 24#include "ToolbarTheme.hh"
25 25
@@ -65,9 +65,15 @@ ToolbarTheme::~ToolbarTheme() {
65} 65}
66 66
67bool ToolbarTheme::fallback(FbTk::ThemeItem_base &item) { 67bool ToolbarTheme::fallback(FbTk::ThemeItem_base &item) {
68 if (item.name() == "toolbar.alpha") { 68 if (item.name().find(".borderWidth") != std::string::npos) {
69 return FbTk::ThemeManager::instance().loadItem(item, "borderWidth", "BorderWidth");
70 } else if (item.name().find(".borderColor") != std::string::npos) {
71 return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor");
72 } else if (item.name() == "toolbar.alpha") {
69 *m_alpha = 255; 73 *m_alpha = 255;
70 return true; 74 return true;
75 } else if (item.name() == "toolbar.bevelWidth") {
76 return FbTk::ThemeManager::instance().loadItem(item, "bevelWidth", "BevelWidth");
71 } 77 }
72 return false; 78 return false;
73} 79}