aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarTheme.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-05-24 15:30:52 (GMT)
committerrathnor <rathnor>2004-05-24 15:30:52 (GMT)
commit073065ac56b388db1169108d44f37d32f1d19c67 (patch)
tree3f69de9404adb70507829493771d6fde0bffa017 /src/ToolbarTheme.cc
parentca307efe3e719fbc3917ae54af4e2243ae0e4044 (diff)
downloadfluxbox-073065ac56b388db1169108d44f37d32f1d19c67.zip
fluxbox-073065ac56b388db1169108d44f37d32f1d19c67.tar.bz2
more fixing up of alpha zero-relatd problems - particularly fallback to
255, not zero for alpha items
Diffstat (limited to 'src/ToolbarTheme.cc')
-rw-r--r--src/ToolbarTheme.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ToolbarTheme.cc b/src/ToolbarTheme.cc
index 999b142..6b6013f 100644
--- a/src/ToolbarTheme.cc
+++ b/src/ToolbarTheme.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: ToolbarTheme.cc,v 1.14 2004/04/26 15:04:37 rathnor Exp $ 22// $Id: ToolbarTheme.cc,v 1.15 2004/05/24 15:30:52 rathnor Exp $
23 23
24#include "ToolbarTheme.hh" 24#include "ToolbarTheme.hh"
25 25
@@ -55,7 +55,6 @@ ToolbarTheme::ToolbarTheme(int screen_num):
55 m_button_size(*this, "toolbar.button.size", "Toolbar.Button.Size") { 55 m_button_size(*this, "toolbar.button.size", "Toolbar.Button.Size") {
56 // set default value 56 // set default value
57 *m_bevel_width = 0; 57 *m_bevel_width = 0;
58 *m_alpha = 255;
59 *m_shape = false; 58 *m_shape = false;
60 *m_height = 0; 59 *m_height = 0;
61 *m_button_size = -1; 60 *m_button_size = -1;
@@ -65,6 +64,14 @@ ToolbarTheme::~ToolbarTheme() {
65 64
66} 65}
67 66
67bool ToolbarTheme::fallback(FbTk::ThemeItem_base &item) {
68 if (item.name() == "toolbar.alpha") {
69 *m_alpha = 255;
70 return true;
71 }
72 return false;
73}
74
68void ToolbarTheme::reconfigTheme() { 75void ToolbarTheme::reconfigTheme() {
69 if (*m_alpha > 255) 76 if (*m_alpha > 255)
70 *m_alpha = 255; 77 *m_alpha = 255;