summaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrameTheme.cc')
-rw-r--r--src/FbWinFrameTheme.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc
index 728cd2d..37c7898 100644
--- a/src/FbWinFrameTheme.cc
+++ b/src/FbWinFrameTheme.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrameTheme.cc,v 1.9 2003/08/22 15:02:33 fluxgen Exp $ 22// $Id: FbWinFrameTheme.cc,v 1.10 2003/08/25 16:37:50 fluxgen Exp $
23 23
24#include "FbWinFrameTheme.hh" 24#include "FbWinFrameTheme.hh"
25#include "App.hh" 25#include "App.hh"
@@ -60,7 +60,8 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
60 m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"), 60 m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"),
61 61
62 m_alpha(*this, "window.alpha", "Window.Alpha"), 62 m_alpha(*this, "window.alpha", "Window.Alpha"),
63 m_title_height(*this, "window.title.height", "Window.Title.Height") { 63 m_title_height(*this, "window.title.height", "Window.Title.Height"),
64 m_border(*this, "window", "Window") { // for window.border*
64 65
65 *m_title_height = 0; 66 *m_title_height = 0;
66 // set defaults 67 // set defaults
@@ -90,6 +91,15 @@ FbWinFrameTheme::~FbWinFrameTheme() {
90 XFreeGC(disp, m_button_pic_unfocus_gc); 91 XFreeGC(disp, m_button_pic_unfocus_gc);
91} 92}
92 93
94bool FbWinFrameTheme::fallback(FbTk::ThemeItem_base &item) {
95 if (item.name() == "window.borderWidth")
96 return FbTk::ThemeManager::instance().loadItem(item, "borderWidth", "BorderWidth");
97 else if (item.name() == "window.borderColor")
98 return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor");
99
100 return false;
101}
102
93void FbWinFrameTheme::reconfigTheme() { 103void FbWinFrameTheme::reconfigTheme() {
94 if (*m_alpha > 255) 104 if (*m_alpha > 255)
95 *m_alpha = 255; 105 *m_alpha = 255;