diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/FbTk/ThemeItems.cc | 11 |
2 files changed, 11 insertions, 3 deletions
@@ -1,5 +1,8 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 0.9.14: | 2 | Changes for 0.9.14: |
3 | *05/06/18: | ||
4 | * little Fix for font effects (Mathias) | ||
5 | FbTk/ThemeItems.cc | ||
3 | *05/06/15: | 6 | *05/06/15: |
4 | * Enhanced MoveTo, fixes #1074568 (Mathias) | 7 | * Enhanced MoveTo, fixes #1074568 (Mathias) |
5 | MoveTo <int|*> <int|*> <Reference Corner> | 8 | MoveTo <int|*> <int|*> <Reference Corner> |
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 | } |