diff options
Diffstat (limited to 'src/FbWinFrameTheme.cc')
-rw-r--r-- | src/FbWinFrameTheme.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc index 92cb134..f01c546 100644 --- a/src/FbWinFrameTheme.cc +++ b/src/FbWinFrameTheme.cc | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "FbWinFrameTheme.hh" | 22 | #include "FbWinFrameTheme.hh" |
23 | #include "FbTk/App.hh" | 23 | #include "FbTk/App.hh" |
24 | #include "FbTk/Util.hh" | ||
24 | 25 | ||
25 | #include "IconbarTheme.hh" | 26 | #include "IconbarTheme.hh" |
26 | 27 | ||
@@ -88,16 +89,10 @@ bool FbWinFrameTheme::fallback(FbTk::ThemeItem_base &item) { | |||
88 | } | 89 | } |
89 | 90 | ||
90 | void FbWinFrameTheme::reconfigTheme() { | 91 | void FbWinFrameTheme::reconfigTheme() { |
91 | if (*m_bevel_width > 20) | 92 | *m_bevel_width = FbTk::Util::clamp(*m_bevel_width, 0, 20); |
92 | *m_bevel_width = 20; | 93 | if (*m_handle_width < 0) |
93 | else if (*m_bevel_width < 0) | ||
94 | *m_bevel_width = 0; | ||
95 | |||
96 | if (*m_handle_width > 200) | ||
97 | *m_handle_width = 200; | ||
98 | else if (*m_handle_width < 0) | ||
99 | *m_handle_width = 1; | 94 | *m_handle_width = 1; |
100 | 95 | *m_handle_width = FbTk::Util::clamp(*m_handle_width, 0, 200); | |
101 | m_button_pic_gc.setForeground(*m_button_color); | 96 | m_button_pic_gc.setForeground(*m_button_color); |
102 | m_iconbar_theme.reconfigTheme(); | 97 | m_iconbar_theme.reconfigTheme(); |
103 | } | 98 | } |