mirror of https://github.com/buggins/dlangui.git
fix theme
This commit is contained in:
parent
f6b2cc434e
commit
9498054caa
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue