diff options
author | 2019-01-10 10:48:00 +0100 | |
---|---|---|
committer | 2019-01-10 10:48:00 +0100 | |
commit | a4d5cf09c4ed615a6da69fb09289d9d18f030e25 (patch) | |
tree | db0611937c554a1adbef6d7d4a27aaf0cd8b265d /packages | |
parent | fix webpack issue (diff) | |
download | ferdium-app-a4d5cf09c4ed615a6da69fb09289d9d18f030e25.tar.gz ferdium-app-a4d5cf09c4ed615a6da69fb09289d9d18f030e25.tar.zst ferdium-app-a4d5cf09c4ed615a6da69fb09289d9d18f030e25.zip |
expose legacy styles
Diffstat (limited to 'packages')
-rw-r--r-- | packages/theme/src/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/theme/src/index.ts b/packages/theme/src/index.ts index 423fa0385..524a9edf1 100644 --- a/packages/theme/src/index.ts +++ b/packages/theme/src/index.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import * as darkThemeConfig from './themes/dark'; | 1 | import * as darkThemeConfig from './themes/dark'; |
2 | import * as defaultThemeConfig from './themes/default'; | 2 | import * as defaultThemeConfig from './themes/default'; |
3 | import * as legacyStyles from './themes/legacy'; | ||
3 | 4 | ||
4 | export enum ThemeType { | 5 | export enum ThemeType { |
5 | default = 'default', | 6 | default = 'default', |
@@ -8,10 +9,10 @@ export enum ThemeType { | |||
8 | 9 | ||
9 | export function theme(themeId: ThemeType) { | 10 | export function theme(themeId: ThemeType) { |
10 | if (themeId === ThemeType.dark) { | 11 | if (themeId === ThemeType.dark) { |
11 | return Object.assign({}, defaultThemeConfig, darkThemeConfig); | 12 | return Object.assign({}, defaultThemeConfig, darkThemeConfig, { legacyStyles }); |
12 | } | 13 | } |
13 | 14 | ||
14 | return Object.assign({}, defaultThemeConfig); | 15 | return Object.assign({}, defaultThemeConfig, { legacyStyles }); |
15 | } | 16 | } |
16 | 17 | ||
17 | export type Theme = typeof defaultThemeConfig; | 18 | export type Theme = typeof defaultThemeConfig; |