fix theme

This commit is contained in:
Vadim Lopatin 2016-09-09 09:13:55 +03:00
parent f6b2cc434e
commit 9498054caa
2 changed files with 1 additions and 2 deletions

View File

@ -1445,7 +1445,6 @@ class Platform {
}
/// sets application UI theme - will relayout content of all windows if theme has been changed
@property Platform uiTheme(string themeResourceId) {
themeResourceId = "console_" ~ themeResourceId;
if (_themeId.equal(themeResourceId))
return this;
Log.v("uiTheme setting new theme ", themeResourceId);

View File

@ -1567,7 +1567,7 @@ bool loadTheme(Theme theme, string resourceId, int level = 0) {
/// load theme from XML file (null if failed)
Theme loadTheme(string resourceId) {
Theme res = new Theme(resourceId);
if (loadTheme(res, resourceId)) {
if (loadTheme(res, BACKEND_CONSOLE ? "console_" ~ resourceId : resourceId)) {
res.id = resourceId;
return res;
}