summaryrefslogtreecommitdiff
path: root/src/FbTk/ThemeItems.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/ThemeItems.cc')
-rw-r--r--src/FbTk/ThemeItems.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/FbTk/ThemeItems.cc b/src/FbTk/ThemeItems.cc
index 610edb2..749fc77 100644
--- a/src/FbTk/ThemeItems.cc
+++ b/src/FbTk/ThemeItems.cc
@@ -160,13 +160,18 @@ void ThemeItem<Font>::setFromString(const char *str) {
160 m_value.setHaloColor(halo_color); 160 m_value.setHaloColor(halo_color);
161 161
162 } else if (effect == "shadow" ) { 162 } else if (effect == "shadow" ) {
163 FbTk::Color shadow_color(ThemeManager::instance().resourceValue(name()+".shadow.x", altName()+".Shadow.X").c_str(), 163 FbTk::Color shadow_color(ThemeManager::instance().resourceValue(name()+".shadow.color", altName()+".Shadow.Color").c_str(),
164 theme().screenNum()); 164 theme().screenNum());
165 165
166 m_value.setShadow(true); 166 m_value.setShadow(true);
167 m_value.setShadowColor(shadow_color); 167 m_value.setShadowColor(shadow_color);
168 m_value.setShadowOffX(atoi(ThemeManager::instance().resourceValue(name()+".shadow.x", altName()+".Shadow.X").c_str())); 168
169 m_value.setShadowOffY(atoi(ThemeManager::instance().resourceValue(name()+".shadow.y", altName()+".Shadow.Y").c_str())); 169 int offset_x = atoi(ThemeManager::instance().resourceValue(name()+".shadow.x", altName()+".Shadow.X").c_str());
170 int offset_y = atoi(ThemeManager::instance().resourceValue(name()+".shadow.y", altName()+".Shadow.Y").c_str());
171 if (offset_x != 0)
172 m_value.setShadowOffX(offset_x);
173 if (offset_y != 0)
174 m_value.setShadowOffY(offset_y);
170 } 175 }
171 } 176 }
172} 177}