aboutsummaryrefslogtreecommitdiff
path: root/src/ToolTheme.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/ToolTheme.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/ToolTheme.cc')
-rw-r--r--src/ToolTheme.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ToolTheme.cc b/src/ToolTheme.cc
index f7dd118..fdcb592 100644
--- a/src/ToolTheme.cc
+++ b/src/ToolTheme.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: ToolTheme.cc,v 1.5 2004/01/13 14:41:32 rathnor Exp $ 23// $Id: ToolTheme.cc,v 1.6 2004/05/24 15:30:52 rathnor Exp $
24 24
25#include "ToolTheme.hh" 25#include "ToolTheme.hh"
26 26
@@ -48,9 +48,11 @@ bool ToolTheme::fallback(FbTk::ThemeItem_base &item) {
48 "toolbar.justify", 48 "toolbar.justify",
49 "Toolbar.Justify"); 49 "Toolbar.Justify");
50 } else if (item.name().find(".alpha") != std::string::npos) { 50 } else if (item.name().find(".alpha") != std::string::npos) {
51 return FbTk::ThemeManager::instance().loadItem(item, 51 if (!FbTk::ThemeManager::instance().loadItem(item,
52 "toolbar.alpha", 52 "toolbar.alpha",
53 "Toolbar.Alpha"); 53 "Toolbar.Alpha"))
54 *m_alpha = 255;
55 return true;
54 } 56 }
55 57
56 return false; 58 return false;