From ce4aab7c09c3272e7fa93334f6f9b3dc4e9c46d3 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Sat, 3 Sep 2022 21:24:52 +0300 Subject: [PATCH] add themePreviewColor to theme --- src/theme/DarkTheme.ts | 1 + src/theme/GreyTheme.ts | 1 + src/theme/LightTheme.ts | 1 + src/theme/Theme.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/src/theme/DarkTheme.ts b/src/theme/DarkTheme.ts index 1a081c9..625aff2 100644 --- a/src/theme/DarkTheme.ts +++ b/src/theme/DarkTheme.ts @@ -13,6 +13,7 @@ const colorSpecial = "#337a44"; const darkTheme: Theme = { id: "2", name: "Dark Theme", + themePreviewColor: colors.primary, background: colors.primary, appBarBgColor: colors.secondary, textColor: colors.primary, diff --git a/src/theme/GreyTheme.ts b/src/theme/GreyTheme.ts index f8b4a80..448e8c9 100644 --- a/src/theme/GreyTheme.ts +++ b/src/theme/GreyTheme.ts @@ -3,6 +3,7 @@ import { Theme } from "./Theme"; const greyTheme: Theme = { id: "1", name: "Grey Theme", + themePreviewColor: "#4D606E", background: "#EEEEEE", appBarBgColor: "#e4e4e4", textColor: "#4D606E", diff --git a/src/theme/LightTheme.ts b/src/theme/LightTheme.ts index bdcbbdf..e81d5e4 100644 --- a/src/theme/LightTheme.ts +++ b/src/theme/LightTheme.ts @@ -5,6 +5,7 @@ const colorSpecial = "#8B8B8B"; const lightTheme: Theme = { id: "1", name: "Light Theme", + themePreviewColor: "#9B9B9B", background: "#BBBBBB", appBarBgColor: "#7B7B7B", textColor: "#5B5B5B", diff --git a/src/theme/Theme.ts b/src/theme/Theme.ts index b4067e0..11fa3f6 100644 --- a/src/theme/Theme.ts +++ b/src/theme/Theme.ts @@ -1,6 +1,7 @@ export type Theme = { id: string; name: string; + themePreviewColor: string; // for theme switch menu textColor: string; textLightColor: string; background: string;