From e327629342a352d9b0303d53c03886de4eb7be2b Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 16 Aug 2003 11:05:19 +0000 Subject: default values on start --- src/BorderTheme.cc | 3 ++- src/FbWinFrameTheme.cc | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/BorderTheme.cc b/src/BorderTheme.cc index 02faf05..fe387a1 100644 --- a/src/BorderTheme.cc +++ b/src/BorderTheme.cc @@ -4,6 +4,7 @@ BorderTheme::BorderTheme(FbTk::Theme &theme, const std::string &name, const std::string &altname): m_width(theme, name + ".borderWidth", altname + ".BorderWidth"), m_color(theme, name + ".borderColor", altname + ".BorderColor") { - + // set default values *m_width = 0; + m_color->setFromString("black", theme.screenNum()); } diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc index 0031568..6a10ddf 100644 --- a/src/FbWinFrameTheme.cc +++ b/src/FbWinFrameTheme.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrameTheme.cc,v 1.7 2003/08/04 12:49:20 fluxgen Exp $ +// $Id: FbWinFrameTheme.cc,v 1.8 2003/08/16 11:05:19 fluxgen Exp $ #include "FbWinFrameTheme.hh" #include "App.hh" @@ -60,6 +60,9 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num): m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"), m_alpha(*this, "window.alpha", "Window.Alpha") { + // set defaults + m_font->load("fixed"); + *m_alpha = 255; // create GCs Display *disp = FbTk::App::instance()->display(); -- cgit v0.11.2