[theme] use ResMap for theme skins

This commit is contained in:
2019-07-10 19:43:19 +03:00
parent 4f3a6c5174
commit ce4f6854f7
21 changed files with 213 additions and 89 deletions

View File

@@ -136,8 +136,12 @@ class View<C:DisplayObject> implements IView<C> {
}
private function set_skinId(value:String):String {
skin = theme != null ? theme.resolve(value) : [];
return value;
//skin = theme != null ? theme.resolve(value) : [];
skinId = value;
if (theme != null) {
theme.bind(skinId, this);
}
return skinId;
}
private function set_visible(value:Bool):Bool {