MCPcopy Index your code
hub / github.com/ollm/OpenComic / start

Function start

scripts/theme.js:55–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55function start()
56{
57 const themeColors = [];
58
59 for(let key in allColors.list)
60 {
61 const color = allColors.list[key];
62 const tokens = getColorTokens(color);
63
64 themeColors.push({
65 key: color,
66 name: language.settings.theme.colors[color] || (color.charAt(0).toUpperCase() + color.slice(1)),
67 colors: [
68 getTokensColor(tokens, 'light', 'secondary-container'),
69 getTokensColor(tokens, 'light', 'surface-2'),
70
71 ],
72 /*light: {
73 primary: getTokensColor(tokens, 'light', 'primary'),
74 secondary: getTokensColor(tokens, 'light', 'secondary'),
75 tertiary: getTokensColor(tokens, 'light', 'tertiary'),
76 },
77 dark: {
78 primary: getTokensColor(tokens, 'dark', 'primary'),
79 secondary: getTokensColor(tokens, 'dark', 'secondary'),
80 tertiary: getTokensColor(tokens, 'dark', 'tertiary'),
81 },*/
82 });
83 }
84
85 handlebarsContext.themeColors = themeColors;
86
87 template.loadContentRight('theme.content.right.html', true);
88
89 gamepad.updateBrowsableItems('theme');
90
91 events.events();
92}
93
94module.exports = {
95 setColor: setColor,

Callers

nothing calls this directly

Calls 2

getColorTokensFunction · 0.85
getTokensColorFunction · 0.85

Tested by

no test coverage detected