aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ToolbarTheme.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc
index 6067264..233a481 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.8 2003/08/13 15:12:39 fluxgen Exp $ 22// $Id: ToolbarTheme.cc,v 1.9 2003/08/16 11:30:48 fluxgen Exp $
23 23
24#include "ToolbarTheme.hh" 24#include "ToolbarTheme.hh"
25 25
@@ -51,9 +51,10 @@ ToolbarTheme::ToolbarTheme(int screen_num):
51 m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"), 51 m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"),
52 m_alpha(*this, "toolbar.alpha", "Toolbar.Alpha"), 52 m_alpha(*this, "toolbar.alpha", "Toolbar.Alpha"),
53 m_display(FbTk::App::instance()->display()) { 53 m_display(FbTk::App::instance()->display()) {
54 54 // set default value
55 *m_bevel_width = 0; 55 *m_bevel_width = 0;
56 *m_alpha = 255; 56 *m_alpha = 255;
57 *m_shape = Shape::NONE;
57 58
58} 59}
59 60
@@ -66,4 +67,7 @@ void ToolbarTheme::reconfigTheme() {
66 *m_alpha = 255; 67 *m_alpha = 255;
67 else if (*m_alpha < 0) 68 else if (*m_alpha < 0)
68 *m_alpha = 0; 69 *m_alpha = 0;
70
71 if (*m_bevel_width > 20)
72 *m_bevel_width = 20;
69} 73}