From e643be0e49de54eac9c4bf4889d33bbbb5868a03 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 16 Aug 2003 11:30:48 +0000 Subject: clamp some values --- src/ToolbarTheme.cc | 8 ++++++-- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolbarTheme.cc,v 1.8 2003/08/13 15:12:39 fluxgen Exp $ +// $Id: ToolbarTheme.cc,v 1.9 2003/08/16 11:30:48 fluxgen Exp $ #include "ToolbarTheme.hh" @@ -51,9 +51,10 @@ ToolbarTheme::ToolbarTheme(int screen_num): m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"), m_alpha(*this, "toolbar.alpha", "Toolbar.Alpha"), m_display(FbTk::App::instance()->display()) { - + // set default value *m_bevel_width = 0; *m_alpha = 255; + *m_shape = Shape::NONE; } @@ -66,4 +67,7 @@ void ToolbarTheme::reconfigTheme() { *m_alpha = 255; else if (*m_alpha < 0) *m_alpha = 0; + + if (*m_bevel_width > 20) + *m_bevel_width = 20; } -- cgit v0.11.2