diff options
author | rathnor <rathnor> | 2004-01-13 14:41:32 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-01-13 14:41:32 (GMT) |
commit | 6914d00eb772705ee9e2cced1629ac5938361cfe (patch) | |
tree | 0f19dc333b5dcddb5628a262f33d1ebb4400dcd5 /src/ToolTheme.cc | |
parent | 9475d7bc8226e58a86dd90f01c56c6e0e96a4969 (diff) | |
download | fluxbox_pavel-6914d00eb772705ee9e2cced1629ac5938361cfe.zip fluxbox_pavel-6914d00eb772705ee9e2cced1629ac5938361cfe.tar.bz2 |
toolbar transparency
Diffstat (limited to 'src/ToolTheme.cc')
-rw-r--r-- | src/ToolTheme.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ToolTheme.cc b/src/ToolTheme.cc index 730c9a3..f7dd118 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.4 2003/08/29 00:46:18 fluxgen Exp $ | 23 | // $Id: ToolTheme.cc,v 1.5 2004/01/13 14:41:32 rathnor Exp $ |
24 | 24 | ||
25 | #include "ToolTheme.hh" | 25 | #include "ToolTheme.hh" |
26 | 26 | ||
@@ -28,7 +28,8 @@ ToolTheme::ToolTheme(int screen_num, const std::string &name, const std::string | |||
28 | FbTk::Theme(screen_num), | 28 | FbTk::Theme(screen_num), |
29 | TextTheme(*this, name, altname), | 29 | TextTheme(*this, name, altname), |
30 | m_texture(*this, name, altname), | 30 | m_texture(*this, name, altname), |
31 | m_border(*this, name, altname) { | 31 | m_border(*this, name, altname), |
32 | m_alpha(*this, name+".alpha", altname+".Alpha") { | ||
32 | 33 | ||
33 | } | 34 | } |
34 | 35 | ||
@@ -46,6 +47,10 @@ bool ToolTheme::fallback(FbTk::ThemeItem_base &item) { | |||
46 | return FbTk::ThemeManager::instance().loadItem(item, | 47 | return FbTk::ThemeManager::instance().loadItem(item, |
47 | "toolbar.justify", | 48 | "toolbar.justify", |
48 | "Toolbar.Justify"); | 49 | "Toolbar.Justify"); |
50 | } else if (item.name().find(".alpha") != std::string::npos) { | ||
51 | return FbTk::ThemeManager::instance().loadItem(item, | ||
52 | "toolbar.alpha", | ||
53 | "Toolbar.Alpha"); | ||
49 | } | 54 | } |
50 | 55 | ||
51 | return false; | 56 | return false; |