From 2f9ab8617833554df04642b1e2ff85aa1aa6de89 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 13 Aug 2003 09:56:06 +0000 Subject: added border --- src/ToolTheme.cc | 6 ++++-- src/ToolTheme.hh | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/ToolTheme.cc b/src/ToolTheme.cc index c52efed..fb5f2dc 100644 --- a/src/ToolTheme.cc +++ b/src/ToolTheme.cc @@ -20,14 +20,15 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolTheme.cc,v 1.1 2003/08/11 14:28:38 fluxgen Exp $ +// $Id: ToolTheme.cc,v 1.2 2003/08/13 09:55:51 fluxgen Exp $ #include "ToolTheme.hh" ToolTheme::ToolTheme(int screen_num, const std::string &name, const std::string &altname): FbTk::Theme(screen_num), TextTheme(*this, name, altname), - m_texture(*this, name, altname) { + m_texture(*this, name, altname), + m_border(*this, name, altname) { } @@ -36,6 +37,7 @@ ToolTheme::~ToolTheme() { } void ToolTheme::reconfigTheme() { + // update text theme update(); } diff --git a/src/ToolTheme.hh b/src/ToolTheme.hh index d25c873..88166b9 100644 --- a/src/ToolTheme.hh +++ b/src/ToolTheme.hh @@ -20,20 +20,19 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolTheme.hh,v 1.1 2003/08/11 14:28:38 fluxgen Exp $ +// $Id: ToolTheme.hh,v 1.2 2003/08/13 09:56:06 fluxgen Exp $ #ifndef TOOLTHEME_HH #define TOOLTHEME_HH -#include -#include - #include "TextTheme.hh" +#include "BorderTheme.hh" #include "FbTk/Texture.hh" - +#include +#include /// Handles toolbar item theme for text and texture class ToolTheme: public FbTk::Theme, public TextTheme { @@ -44,9 +43,10 @@ public: void reconfigTheme(); // textures const FbTk::Texture &texture() const { return *m_texture; } - + const BorderTheme &border() const { return m_border; } private: FbTk::ThemeItem m_texture; + BorderTheme m_border; }; #endif // TOOLTHEME_HH -- cgit v0.11.2