diff options
author | 2024-02-11 09:50:32 +0530 | |
---|---|---|
committer | 2024-02-11 04:39:55 +0000 | |
commit | beb1f1c28adc9872b179a2169e4f8d34adf125c7 (patch) | |
tree | 86dbd13e3ef6365d0e28fe4d23de7c6b7828f692 /src/themes/default | |
parent | remove unused '@types/react-loader' pkg (diff) | |
download | ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.gz ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.tar.zst ferdium-app-beb1f1c28adc9872b179a2169e4f8d34adf125c7.zip |
minor refactoring to remove duplication with a constant
Diffstat (limited to 'src/themes/default')
-rw-r--r-- | src/themes/default/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/themes/default/index.ts b/src/themes/default/index.ts index cc886f299..ac04a6e3b 100644 --- a/src/themes/default/index.ts +++ b/src/themes/default/index.ts | |||
@@ -3,6 +3,7 @@ import { cloneDeep } from 'lodash'; | |||
3 | 3 | ||
4 | import * as legacyStyles from '../legacy'; | 4 | import * as legacyStyles from '../legacy'; |
5 | import type IStyleTypes from '../IStyleTypes'; | 5 | import type IStyleTypes from '../IStyleTypes'; |
6 | import { DEFAULT_LOADER_COLOR } from '../../config'; | ||
6 | 7 | ||
7 | export default (brandPrimary: string) => { | 8 | export default (brandPrimary: string) => { |
8 | if (!brandPrimary) { | 9 | if (!brandPrimary) { |
@@ -14,7 +15,7 @@ export default (brandPrimary: string) => { | |||
14 | const brandDanger = '#d9534f'; | 15 | const brandDanger = '#d9534f'; |
15 | const uiFontSize = 14; | 16 | const uiFontSize = 14; |
16 | const colorBackground = legacyStyles.themeGrayLighter; | 17 | const colorBackground = legacyStyles.themeGrayLighter; |
17 | const colorContentBackground = '#FFFFFF'; | 18 | const colorContentBackground = DEFAULT_LOADER_COLOR; |
18 | const colorText = legacyStyles.themeGrayDark; | 19 | const colorText = legacyStyles.themeGrayDark; |
19 | const inputColor = legacyStyles.themeGray; | 20 | const inputColor = legacyStyles.themeGray; |
20 | const inputBackground = legacyStyles.themeGrayLightest; | 21 | const inputBackground = legacyStyles.themeGrayLightest; |