diff options
author | fluxgen <fluxgen> | 2003-08-04 12:49:20 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-04 12:49:20 (GMT) |
commit | 261ae69cd1fefeb053390853c5cfc83a5a576298 (patch) | |
tree | 2ac4693e2cdf3a8e0fec31cbacb91fb189a9266e /src/FbWinFrameTheme.cc | |
parent | 10c972f7f790fa3d48d9f41abe4cce2933e8f5e3 (diff) | |
download | fluxbox_pavel-261ae69cd1fefeb053390853c5cfc83a5a576298.zip fluxbox_pavel-261ae69cd1fefeb053390853c5cfc83a5a576298.tar.bz2 |
added alpha option for transparent
Diffstat (limited to 'src/FbWinFrameTheme.cc')
-rw-r--r-- | src/FbWinFrameTheme.cc | 10 |
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 | ||
85 | void FbWinFrameTheme::reconfigTheme() { | 87 | void 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; |