[view] add Style

This commit is contained in:
2019-07-18 14:21:52 +03:00
parent 8122349668
commit ddc8581445
2 changed files with 65 additions and 34 deletions

View File

@@ -14,12 +14,12 @@ class AppTheme extends Theme {
override private function reload():Void {
super.reload();
data.set("view", create([
register(new Style("view", [
"skin.background.color" => colors.light,
"skin.border.color" => colors.border,
"geometry.padding" => Box.fromFloat(3),
], ["text"]));
data.set("test", create([
register(new Style("test", [
"skin.background.color" => Color.fromInt(0x00ffff),
]));
}