diff options
Diffstat (limited to 'src/features/appearance')
-rw-r--r-- | src/features/appearance/index.ts (renamed from src/features/appearance/index.js) | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/features/appearance/index.js b/src/features/appearance/index.ts index 0c935be32..b00b9df3d 100644 --- a/src/features/appearance/index.js +++ b/src/features/appearance/index.ts | |||
@@ -1,6 +1,5 @@ | |||
1 | import color from 'color'; | 1 | import color from 'color'; |
2 | import { reaction } from 'mobx'; | 2 | import { reaction } from 'mobx'; |
3 | import themeInfo from '../../assets/themeInfo.json'; | ||
4 | import { iconSizeBias } from '../../config'; | 3 | import { iconSizeBias } from '../../config'; |
5 | import { DEFAULT_APP_SETTINGS } from '../../environment'; | 4 | import { DEFAULT_APP_SETTINGS } from '../../environment'; |
6 | 5 | ||
@@ -30,14 +29,6 @@ function darkenAbsolute(originalColor, absoluteChange) { | |||
30 | function generateAccentStyle(accentColorStr) { | 29 | function generateAccentStyle(accentColorStr) { |
31 | let style = ''; | 30 | let style = ''; |
32 | 31 | ||
33 | for (const property of Object.keys(themeInfo)) { | ||
34 | style += ` | ||
35 | ${themeInfo[property]} { | ||
36 | ${property}: ${accentColorStr}; | ||
37 | } | ||
38 | `; | ||
39 | } | ||
40 | |||
41 | let accentColor = color(DEFAULT_APP_SETTINGS.accentColor); | 32 | let accentColor = color(DEFAULT_APP_SETTINGS.accentColor); |
42 | try { | 33 | try { |
43 | accentColor = color(accentColorStr); | 34 | accentColor = color(accentColorStr); |