default values on start

This commit is contained in:
fluxgen 2003-08-16 11:05:19 +00:00
parent 3496a1e198
commit e327629342
2 changed files with 6 additions and 2 deletions

View file

@ -4,6 +4,7 @@ BorderTheme::BorderTheme(FbTk::Theme &theme, const std::string &name,
const std::string &altname): const std::string &altname):
m_width(theme, name + ".borderWidth", altname + ".BorderWidth"), m_width(theme, name + ".borderWidth", altname + ".BorderWidth"),
m_color(theme, name + ".borderColor", altname + ".BorderColor") { m_color(theme, name + ".borderColor", altname + ".BorderColor") {
// set default values
*m_width = 0; *m_width = 0;
m_color->setFromString("black", theme.screenNum());
} }

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // 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 "FbWinFrameTheme.hh"
#include "App.hh" #include "App.hh"
@ -60,6 +60,9 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"), m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"),
m_alpha(*this, "window.alpha", "Window.Alpha") { m_alpha(*this, "window.alpha", "Window.Alpha") {
// set defaults
m_font->load("fixed");
*m_alpha = 255;
// create GCs // create GCs
Display *disp = FbTk::App::instance()->display(); Display *disp = FbTk::App::instance()->display();