diff options
author | fluxgen <fluxgen> | 2003-08-13 09:59:25 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-13 09:59:25 (GMT) |
commit | cb0c4213a4359ab65e7a383dd22f8bf21ee6044f (patch) | |
tree | 9ea9114b89ae6a2bd849fa0cb11af9e01e12cb85 /src | |
parent | eebfc5b8890d6bc7c1d59917b797eb7a5daae921 (diff) | |
download | fluxbox_lack-cb0c4213a4359ab65e7a383dd22f8bf21ee6044f.zip fluxbox_lack-cb0c4213a4359ab65e7a383dd22f8bf21ee6044f.tar.bz2 |
border and setAntialias
Diffstat (limited to 'src')
-rw-r--r-- | src/IconbarTheme.cc | 10 | ||||
-rw-r--r-- | src/IconbarTheme.hh | 12 |
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, | |||
17 | IconbarTheme::~IconbarTheme() { | 20 | IconbarTheme::~IconbarTheme() { |
18 | 21 | ||
19 | } | 22 | } |
23 | |||
24 | |||
20 | void IconbarTheme::reconfigTheme() { | 25 | void 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 | ||
30 | void 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 | ||
8 | class IconbarTheme:public FbTk::Theme { | 10 | class IconbarTheme:public FbTk::Theme { |
9 | public: | 11 | public: |
@@ -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 | ||
21 | private: | 30 | private: |
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 | ||