aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/appearance
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-18 11:15:25 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-18 11:15:25 +0200
commitd4101a48b3eee8b1fb177831aa02a4b4fbec2588 (patch)
treec92f2fbe91197fde8589207463d0d6526b4ff76b /src/features/appearance
parent5.6.3-nightly.6 [skip ci] (diff)
downloadferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.tar.gz
ferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.tar.zst
ferdium-app-d4101a48b3eee8b1fb177831aa02a4b4fbec2588.zip
chore: convert various files from JS to TS (#1959)
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 @@
1import color from 'color'; 1import color from 'color';
2import { reaction } from 'mobx'; 2import { reaction } from 'mobx';
3import themeInfo from '../../assets/themeInfo.json';
4import { iconSizeBias } from '../../config'; 3import { iconSizeBias } from '../../config';
5import { DEFAULT_APP_SETTINGS } from '../../environment'; 4import { DEFAULT_APP_SETTINGS } from '../../environment';
6 5
@@ -30,14 +29,6 @@ function darkenAbsolute(originalColor, absoluteChange) {
30function generateAccentStyle(accentColorStr) { 29function 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);