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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user