diff options
-rw-r--r-- | src/SystemTray.cc | 2 | ||||
-rw-r--r-- | src/SystemTray.hh | 14 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 5aa7323..4275099 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc | |||
@@ -155,7 +155,7 @@ private: | |||
155 | }; | 155 | }; |
156 | 156 | ||
157 | SystemTray::SystemTray(const FbTk::FbWindow& parent, | 157 | SystemTray::SystemTray(const FbTk::FbWindow& parent, |
158 | FbTk::ThemeProxy<ButtonTheme> &theme, BScreen& screen): | 158 | FbTk::ThemeProxy<ToolTheme> &theme, BScreen& screen): |
159 | ToolbarItem(ToolbarItem::FIXED), | 159 | ToolbarItem(ToolbarItem::FIXED), |
160 | m_window(parent, 0, 0, 1, 1, ExposureMask | ButtonPressMask | ButtonReleaseMask | | 160 | m_window(parent, 0, 0, 1, 1, ExposureMask | ButtonPressMask | ButtonReleaseMask | |
161 | SubstructureNotifyMask | SubstructureRedirectMask), | 161 | SubstructureNotifyMask | SubstructureRedirectMask), |
diff --git a/src/SystemTray.hh b/src/SystemTray.hh index 2e3a4ea..3215e31 100644 --- a/src/SystemTray.hh +++ b/src/SystemTray.hh | |||
@@ -27,6 +27,7 @@ | |||
27 | #include "FbTk/EventHandler.hh" | 27 | #include "FbTk/EventHandler.hh" |
28 | #include "FbTk/Observer.hh" | 28 | #include "FbTk/Observer.hh" |
29 | 29 | ||
30 | #include "ToolTheme.hh" | ||
30 | #include "ToolbarItem.hh" | 31 | #include "ToolbarItem.hh" |
31 | 32 | ||
32 | #include <list> | 33 | #include <list> |
@@ -44,7 +45,7 @@ class SystemTray: public ToolbarItem, public FbTk::EventHandler, public FbTk::Ob | |||
44 | public: | 45 | public: |
45 | 46 | ||
46 | explicit SystemTray(const FbTk::FbWindow &parent, | 47 | explicit SystemTray(const FbTk::FbWindow &parent, |
47 | FbTk::ThemeProxy<ButtonTheme> &theme, BScreen& screen); | 48 | FbTk::ThemeProxy<ToolTheme> &theme, BScreen& screen); |
48 | virtual ~SystemTray(); | 49 | virtual ~SystemTray(); |
49 | 50 | ||
50 | void move(int x, int y); | 51 | void move(int x, int y); |
@@ -70,8 +71,13 @@ public: | |||
70 | int numClients() const { return m_clients.size(); } | 71 | int numClients() const { return m_clients.size(); } |
71 | const FbTk::FbWindow &window() const { return m_window; } | 72 | const FbTk::FbWindow &window() const { return m_window; } |
72 | 73 | ||
73 | void renderTheme(unsigned char alpha) { m_window.setAlpha(alpha); update(0); } | 74 | void renderTheme(unsigned char alpha) { |
74 | void updateSizing() {} | 75 | m_window.setBorderWidth(m_theme->border().width()); |
76 | m_window.setBorderColor(m_theme->border().color()); | ||
77 | m_window.setAlpha(alpha); | ||
78 | update(0); | ||
79 | } | ||
80 | void updateSizing() { m_window.setBorderWidth(m_theme->border().width()); } | ||
75 | 81 | ||
76 | void parentMoved() { m_window.parentMoved(); } | 82 | void parentMoved() { m_window.parentMoved(); } |
77 | 83 | ||
@@ -90,7 +96,7 @@ private: | |||
90 | void showClient(TrayWindow *traywin); | 96 | void showClient(TrayWindow *traywin); |
91 | 97 | ||
92 | FbTk::FbWindow m_window; | 98 | FbTk::FbWindow m_window; |
93 | FbTk::ThemeProxy<ButtonTheme> &m_theme; | 99 | FbTk::ThemeProxy<ToolTheme> &m_theme; |
94 | BScreen& m_screen; | 100 | BScreen& m_screen; |
95 | Pixmap m_pixmap; | 101 | Pixmap m_pixmap; |
96 | 102 | ||