aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IconbarTheme.cc10
-rw-r--r--src/IconbarTheme.hh12
2 files changed, 21 insertions, 1 deletions
diff --git a/src/IconbarTheme.cc b/src/IconbarTheme.cc
index cc17e67..73b46f5 100644
--- a/src/IconbarTheme.cc
+++ b/src/IconbarTheme.cc
@@ -8,6 +8,9 @@ IconbarTheme::IconbarTheme(int screen_num,
8 m_focused_texture(*this, name + ".focused", altname + ".Focused"), 8 m_focused_texture(*this, name + ".focused", altname + ".Focused"),
9 m_unfocused_texture(*this, name + ".unfocused", altname + ".Unfocused"), 9 m_unfocused_texture(*this, name + ".unfocused", altname + ".Unfocused"),
10 m_empty_texture(*this, name + ".empty", altname + ".Empty"), 10 m_empty_texture(*this, name + ".empty", altname + ".Empty"),
11 m_focused_border(*this, name + ".focused", altname + ".Focused"),
12 m_unfocused_border(*this, name + ".unfocused", altname + ".Unfocused"),
13 m_border(*this, name, altname),
11 m_focused_text(*this, name + ".focused", altname + ".Focused"), 14 m_focused_text(*this, name + ".focused", altname + ".Focused"),
12 m_unfocused_text(*this, name + ".unfocused", altname + ".Unfocused") { 15 m_unfocused_text(*this, name + ".unfocused", altname + ".Unfocused") {
13 16
@@ -17,8 +20,15 @@ IconbarTheme::IconbarTheme(int screen_num,
17IconbarTheme::~IconbarTheme() { 20IconbarTheme::~IconbarTheme() {
18 21
19} 22}
23
24
20void IconbarTheme::reconfigTheme() { 25void IconbarTheme::reconfigTheme() {
21 m_focused_text.update(); 26 m_focused_text.update();
22 m_unfocused_text.update(); 27 m_unfocused_text.update();
23} 28}
24 29
30void IconbarTheme::setAntialias(bool value) {
31 m_focused_text.setAntialias(value);
32 m_unfocused_text.setAntialias(value);
33}
34
diff --git a/src/IconbarTheme.hh b/src/IconbarTheme.hh
index cd6f857..1b877ac 100644
--- a/src/IconbarTheme.hh
+++ b/src/IconbarTheme.hh
@@ -3,7 +3,9 @@
3 3
4#include "FbTk/Theme.hh" 4#include "FbTk/Theme.hh"
5#include "FbTk/Texture.hh" 5#include "FbTk/Texture.hh"
6
6#include "TextTheme.hh" 7#include "TextTheme.hh"
8#include "BorderTheme.hh"
7 9
8class IconbarTheme:public FbTk::Theme { 10class IconbarTheme:public FbTk::Theme {
9public: 11public:
@@ -11,15 +13,23 @@ public:
11 virtual ~IconbarTheme(); 13 virtual ~IconbarTheme();
12 14
13 void reconfigTheme(); 15 void reconfigTheme();
16
17 void setAntialias(bool antialias);
18
14 const TextTheme &focusedText() const { return m_focused_text; } 19 const TextTheme &focusedText() const { return m_focused_text; }
15 const TextTheme &unfocusedText() const { return m_unfocused_text; } 20 const TextTheme &unfocusedText() const { return m_unfocused_text; }
16 21
22 const BorderTheme &focusedBorder() const { return m_focused_border; }
23 const BorderTheme &unfocusedBorder() const { return m_unfocused_border; }
24 const BorderTheme &border() const { return m_border; }
25
17 const FbTk::Texture &focusedTexture() const { return *m_focused_texture; } 26 const FbTk::Texture &focusedTexture() const { return *m_focused_texture; }
18 const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; } 27 const FbTk::Texture &unfocusedTexture() const { return *m_unfocused_texture; }
19 const FbTk::Texture &emptyTexture() const { return *m_empty_texture; } 28 const FbTk::Texture &emptyTexture() const { return *m_empty_texture; }
20 29
21private: 30private:
22 FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture; 31 FbTk::ThemeItem<FbTk::Texture> m_focused_texture, m_unfocused_texture, m_empty_texture;
32 BorderTheme m_focused_border, m_unfocused_border, m_border;
23 TextTheme m_focused_text, m_unfocused_text; 33 TextTheme m_focused_text, m_unfocused_text;
24}; 34};
25 35