- Updated theme plugin to support changing themes on runtime

- Added 4 themes
- Added Cache System for States
This commit is contained in:
Robert Jelic
2025-11-05 13:56:19 +01:00
parent e4ee937f0f
commit 71d23ee9a2
11 changed files with 304 additions and 46 deletions

44
themes/dark.json Normal file
View File

@@ -0,0 +1,44 @@
{
"theme": "dark",
"default": {
"background": "white",
"foreground": "black"
},
"BaseFrame": {
"background": "black",
"Container": {
"background": "gray",
"foreground": "white",
"Button": {
"background": "lightGray",
"foreground": "black",
"states": {
"clicked": {
"background": "blue",
"foreground": "white"
}
}
},
"Input": {
"background": "black",
"foreground": "lightGray"
}
},
"Button": {
"background": "gray",
"foreground": "white",
"states": {
"clicked": {
"background": "blue",
"foreground": "white"
}
}
},
"names": {
"basaltDebugLog": {
"background": "red",
"foreground": "white"
}
}
}
}