*.font.shadow.x and *.font.shadow.x were not correctly read or better,
misinterpreted. so the shadow'ed text was written direct underneath the normal text .. and hence invisible.
This commit is contained in:
parent
a4a6cf9035
commit
3d722f2428
2 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 0.9.14:
|
Changes for 0.9.14:
|
||||||
|
*05/06/18:
|
||||||
|
* little Fix for font effects (Mathias)
|
||||||
|
FbTk/ThemeItems.cc
|
||||||
*05/06/15:
|
*05/06/15:
|
||||||
* Enhanced MoveTo, fixes #1074568 (Mathias)
|
* Enhanced MoveTo, fixes #1074568 (Mathias)
|
||||||
MoveTo <int|*> <int|*> <Reference Corner>
|
MoveTo <int|*> <int|*> <Reference Corner>
|
||||||
|
|
|
@ -160,13 +160,18 @@ void ThemeItem<Font>::setFromString(const char *str) {
|
||||||
m_value.setHaloColor(halo_color);
|
m_value.setHaloColor(halo_color);
|
||||||
|
|
||||||
} else if (effect == "shadow" ) {
|
} else if (effect == "shadow" ) {
|
||||||
FbTk::Color shadow_color(ThemeManager::instance().resourceValue(name()+".shadow.x", altName()+".Shadow.X").c_str(),
|
FbTk::Color shadow_color(ThemeManager::instance().resourceValue(name()+".shadow.color", altName()+".Shadow.Color").c_str(),
|
||||||
theme().screenNum());
|
theme().screenNum());
|
||||||
|
|
||||||
m_value.setShadow(true);
|
m_value.setShadow(true);
|
||||||
m_value.setShadowColor(shadow_color);
|
m_value.setShadowColor(shadow_color);
|
||||||
m_value.setShadowOffX(atoi(ThemeManager::instance().resourceValue(name()+".shadow.x", altName()+".Shadow.X").c_str()));
|
|
||||||
m_value.setShadowOffY(atoi(ThemeManager::instance().resourceValue(name()+".shadow.y", altName()+".Shadow.Y").c_str()));
|
int offset_x = atoi(ThemeManager::instance().resourceValue(name()+".shadow.x", altName()+".Shadow.X").c_str());
|
||||||
|
int offset_y = atoi(ThemeManager::instance().resourceValue(name()+".shadow.y", altName()+".Shadow.Y").c_str());
|
||||||
|
if (offset_x != 0)
|
||||||
|
m_value.setShadowOffX(offset_x);
|
||||||
|
if (offset_y != 0)
|
||||||
|
m_value.setShadowOffY(offset_y);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue