default values on start
fluxgen fluxgen
2 files changed,
6 insertions(+),
2 deletions(-)
M
src/BorderTheme.cc
→
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()); }
M
src/FbWinFrameTheme.cc
→
src/FbWinFrameTheme.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ m_textjustify(*this, "window.justify", "Window.Justify"),
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();