From 20012d911ac0d4787eca579c432cb8c4632b06c7 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 27 Aug 2003 20:13:32 +0000 Subject: added height theme item --- src/ToolbarTheme.cc | 8 +++++++- src/ToolbarTheme.hh | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc index e1ed5b4..4e1e774 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.10 2003/08/16 13:36:52 fluxgen Exp $ +// $Id: ToolbarTheme.cc,v 1.11 2003/08/27 20:13:32 fluxgen Exp $ #include "ToolbarTheme.hh" @@ -50,6 +50,7 @@ ToolbarTheme::ToolbarTheme(int screen_num): m_bevel_width(*this, "toolbar.bevelWidth", "Toolbar.BevelWidth"), m_shape(*this, "toolbar.shaped", "Toolbar.Shaped"), m_alpha(*this, "toolbar.alpha", "Toolbar.Alpha"), + m_height(*this, "toolbar.height", "Toolbar.Height"), m_display(FbTk::App::instance()->display()) { // set default value *m_bevel_width = 0; @@ -70,4 +71,9 @@ void ToolbarTheme::reconfigTheme() { if (*m_bevel_width > 20) *m_bevel_width = 20; + + if (*m_height > 100) + *m_height = 100; + else if (*m_height < 0) + *m_height = 0; } diff --git a/src/ToolbarTheme.hh b/src/ToolbarTheme.hh index b29ab59..1161e85 100644 --- a/src/ToolbarTheme.hh +++ b/src/ToolbarTheme.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolbarTheme.hh,v 1.8 2003/08/13 15:12:39 fluxgen Exp $ +// $Id: ToolbarTheme.hh,v 1.9 2003/08/27 20:13:32 fluxgen Exp $ #ifndef TOOLBARTHEME_HH #define TOOLBARTHEME_HH @@ -45,14 +45,14 @@ public: inline int bevelWidth() const { return *m_bevel_width; } inline bool shape() const { return *m_shape; } inline unsigned char alpha() const { return *m_alpha; } - + inline int height() const { return *m_height; } private: FbTk::ThemeItem m_toolbar; BorderTheme m_border; FbTk::ThemeItem m_bevel_width; FbTk::ThemeItem m_shape; - FbTk::ThemeItem m_alpha; + FbTk::ThemeItem m_alpha, m_height; Display *m_display; -- cgit v0.11.2