aboutsummaryrefslogtreecommitdiff
path: root/src/TextTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/TextTheme.cc')
-rw-r--r--src/TextTheme.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/TextTheme.cc b/src/TextTheme.cc
index da5b371..94b428a 100644
--- a/src/TextTheme.cc
+++ b/src/TextTheme.cc
@@ -34,6 +34,9 @@ TextTheme::TextTheme(FbTk::Theme &theme,
34 m_text_color(theme, name + ".textColor", altname + ".TextColor"), 34 m_text_color(theme, name + ".textColor", altname + ".TextColor"),
35 m_justify(theme, name + ".justify", altname + ".Justify"), 35 m_justify(theme, name + ".justify", altname + ".Justify"),
36 m_text_gc(RootWindow(FbTk::App::instance()->display(), theme.screenNum())) { 36 m_text_gc(RootWindow(FbTk::App::instance()->display(), theme.screenNum())) {
37 *m_justify = FbTk::LEFT;
38 // set default values
39 m_text_color->setFromString("white", theme.screenNum());
37 40
38 update(); 41 update();
39} 42}
@@ -45,9 +48,3 @@ TextTheme::~TextTheme() {
45void TextTheme::update() { 48void TextTheme::update() {
46 m_text_gc.setForeground(*m_text_color); 49 m_text_gc.setForeground(*m_text_color);
47} 50}
48
49
50void TextTheme::setAntialias(bool value) {
51 font().setAntialias(value);
52 FbTk::ThemeManager::instance().loadItem(m_font);
53}