summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-16 11:05:19 (GMT)
committerfluxgen <fluxgen>2003-08-16 11:05:19 (GMT)
commite327629342a352d9b0303d53c03886de4eb7be2b (patch)
tree75ee0092495e88c98fd1be59ac71f2b0ac91bb5a
parent3496a1e198a79721c69fcf1b08380af94137b0f5 (diff)
downloadfluxbox_lack-e327629342a352d9b0303d53c03886de4eb7be2b.zip
fluxbox_lack-e327629342a352d9b0303d53c03886de4eb7be2b.tar.bz2
default values on start
-rw-r--r--src/BorderTheme.cc3
-rw-r--r--src/FbWinFrameTheme.cc5
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,
4 const std::string &altname): 4 const std::string &altname):
5 m_width(theme, name + ".borderWidth", altname + ".BorderWidth"), 5 m_width(theme, name + ".borderWidth", altname + ".BorderWidth"),
6 m_color(theme, name + ".borderColor", altname + ".BorderColor") { 6 m_color(theme, name + ".borderColor", altname + ".BorderColor") {
7 7 // set default values
8 *m_width = 0; 8 *m_width = 0;
9 m_color->setFromString("black", theme.screenNum());
9} 10}
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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrameTheme.cc,v 1.7 2003/08/04 12:49:20 fluxgen Exp $ 22// $Id: FbWinFrameTheme.cc,v 1.8 2003/08/16 11:05:19 fluxgen Exp $
23 23
24#include "FbWinFrameTheme.hh" 24#include "FbWinFrameTheme.hh"
25#include "App.hh" 25#include "App.hh"
@@ -60,6 +60,9 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
60 m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"), 60 m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"),
61 61
62 m_alpha(*this, "window.alpha", "Window.Alpha") { 62 m_alpha(*this, "window.alpha", "Window.Alpha") {
63 // set defaults
64 m_font->load("fixed");
65 *m_alpha = 255;
63 66
64 // create GCs 67 // create GCs
65 Display *disp = FbTk::App::instance()->display(); 68 Display *disp = FbTk::App::instance()->display();