fixed fallback for pressed texture
This commit is contained in:
parent
57eb409750
commit
ac1314c360
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ bool ButtonTheme::fallback(FbTk::ThemeItem_base &item) {
|
|||
return FbTk::ThemeManager::instance().loadItem(item, "borderColor", "BorderColor");
|
||||
}
|
||||
|
||||
if (item.name().find(".pressed") != std::string::npos) {
|
||||
// copy texture
|
||||
*m_pressed_texture = texture();
|
||||
return true;
|
||||
}
|
||||
|
||||
return ToolTheme::fallback(item);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue