aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/ThemeItems.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-08-26 16:37:48 (GMT)
committerrathnor <rathnor>2004-08-26 16:37:48 (GMT)
commit0f83e449727a16c178b47262f170e879a22c0981 (patch)
treed167b77a07b99c931402d699ad6b1f2c90bed757 /src/FbTk/ThemeItems.hh
parent346a6598a62350c5d234e3177de9e6c6c1963475 (diff)
downloadfluxbox-0f83e449727a16c178b47262f170e879a22c0981.zip
fluxbox-0f83e449727a16c178b47262f170e879a22c0981.tar.bz2
fix rendering of bevels for textures with solid textures
Diffstat (limited to 'src/FbTk/ThemeItems.hh')
-rw-r--r--src/FbTk/ThemeItems.hh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/FbTk/ThemeItems.hh b/src/FbTk/ThemeItems.hh
index 57a5f11..f17cba6 100644
--- a/src/FbTk/ThemeItems.hh
+++ b/src/FbTk/ThemeItems.hh
@@ -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: ThemeItems.hh,v 1.6 2004/04/26 15:04:37 rathnor Exp $ 22// $Id: ThemeItems.hh,v 1.7 2004/08/26 16:37:48 rathnor Exp $
23 23
24/// @file implements common theme items 24/// @file implements common theme items
25 25
@@ -128,7 +128,11 @@ void ThemeItem<FbTk::Texture>::load(const std::string *o_name, const std::string
128 if (!m_value.colorTo().setFromString(colorto_name.c_str(), 128 if (!m_value.colorTo().setFromString(colorto_name.c_str(),
129 m_tm.screenNum())) 129 m_tm.screenNum()))
130 m_value.colorTo().setFromString("white", m_tm.screenNum()); 130 m_value.colorTo().setFromString("white", m_tm.screenNum());
131 131
132
133 if ((m_value.type() & FbTk::Texture::SOLID) != 0 && (m_value.type() & FbTk::Texture::FLAT) == 0)
134 m_value.calcHiLoColors(m_tm.screenNum());
135
132 StringUtil::removeFirstWhitespace(pixmap_name); 136 StringUtil::removeFirstWhitespace(pixmap_name);
133 StringUtil::removeTrailingWhitespace(pixmap_name); 137 StringUtil::removeTrailingWhitespace(pixmap_name);
134 if (pixmap_name.empty()) { 138 if (pixmap_name.empty()) {