aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrameTheme.cc')
-rw-r--r--src/FbWinFrameTheme.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc
index 7d439f3..0031568 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.6 2003/07/10 14:17:18 fluxgen Exp $ 22// $Id: FbWinFrameTheme.cc,v 1.7 2003/08/04 12:49:20 fluxgen Exp $
23 23
24#include "FbWinFrameTheme.hh" 24#include "FbWinFrameTheme.hh"
25#include "App.hh" 25#include "App.hh"
@@ -57,7 +57,9 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num):
57 57
58 m_font(*this, "window.font", "Window.Font"), 58 m_font(*this, "window.font", "Window.Font"),
59 m_textjustify(*this, "window.justify", "Window.Justify"), 59 m_textjustify(*this, "window.justify", "Window.Justify"),
60 m_shape_place(*this, "window.roundCorners", "Window.RoundCorners") { 60 m_shape_place(*this, "window.roundCorners", "Window.RoundCorners"),
61
62 m_alpha(*this, "window.alpha", "Window.Alpha") {
61 63
62 // create GCs 64 // create GCs
63 Display *disp = FbTk::App::instance()->display(); 65 Display *disp = FbTk::App::instance()->display();
@@ -83,6 +85,10 @@ FbWinFrameTheme::~FbWinFrameTheme() {
83} 85}
84 86
85void FbWinFrameTheme::reconfigTheme() { 87void FbWinFrameTheme::reconfigTheme() {
88 if (*m_alpha > 255)
89 *m_alpha = 255;
90 else if (*m_alpha < 0)
91 *m_alpha = 0;
86 92
87 XGCValues gcv; 93 XGCValues gcv;
88 unsigned long gc_value_mask = GCForeground; 94 unsigned long gc_value_mask = GCForeground;