1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

theme: add dank16 to dms matugen template

This commit is contained in:
bbedward
2026-01-02 21:37:48 -05:00
parent a1e001e640
commit 8253ec4496
2 changed files with 44 additions and 0 deletions

View File

@@ -91,6 +91,32 @@ Singleton {
property var pendingThemeRequest: null
property var matugenColors: ({})
property var _pendingGenerateParams: null
readonly property var dank16: {
const raw = matugenColors?.dank16;
if (!raw)
return null;
const dark = {};
const light = {};
const def = {};
for (let i = 0; i < 16; i++) {
const key = "color" + i;
const c = raw[key];
if (!c)
continue;
dark[key] = c.dark;
light[key] = c.light;
def[key] = c.default;
}
return {
dark,
light,
"default": def
};
}
property var customThemeData: null
property var customThemeRawData: null
readonly property var currentThemeVariants: customThemeRawData?.variants || null