()
| 53 | } |
| 54 | |
| 55 | function 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 | |
| 94 | module.exports = { |
| 95 | setColor: setColor, |
nothing calls this directly
no test coverage detected