From 1e2a82cede15ca19e528fdb5e1ad470ba991c515 Mon Sep 17 00:00:00 2001 From: Irina Sorokina Date: Wed, 7 Aug 2024 18:03:52 +0400 Subject: [PATCH 1/3] Added style to import config alert --- src/modals/Menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modals/Menu.tsx b/src/modals/Menu.tsx index 87d77a6..834a139 100644 --- a/src/modals/Menu.tsx +++ b/src/modals/Menu.tsx @@ -152,7 +152,7 @@ const Importer = () => { await changeTranslation(config.language); await confirmAlert({ header: t("Configuration has been imported"), - cssClass: "header-color", + cssClass: `${theme}`, buttons: [ { text: "OK", From 3e5e50034e690837659ee7de966e2641b3ae37aa Mon Sep 17 00:00:00 2001 From: Irina Sorokina Date: Wed, 7 Aug 2024 18:11:11 +0400 Subject: [PATCH 2/3] Delete `beta` word from dark theme --- src/App.tsx | 3 --- src/modals/Menu.tsx | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e0c2b8f..01f7f10 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -94,9 +94,6 @@ const App = (props: AppProps) => { } function updateTheme(newTheme: string) { - if (newTheme === "dark (beta)") { - newTheme = "dark"; - } if (newTheme === "light") { newTheme = "basic"; } diff --git a/src/modals/Menu.tsx b/src/modals/Menu.tsx index 834a139..2e7781f 100644 --- a/src/modals/Menu.tsx +++ b/src/modals/Menu.tsx @@ -92,7 +92,7 @@ const ThemeSwitcher = () => { const { theme, updateTheme } = useContext(ThemeContext); const themesList = []; - for (const item of ["light", "dark (beta)"]) { + for (const item of ["light", "dark"]) { themesList.push( { Date: Wed, 7 Aug 2024 18:37:39 +0400 Subject: [PATCH 3/3] Changed icon for theme select --- src/modals/Menu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modals/Menu.tsx b/src/modals/Menu.tsx index 2e7781f..7285773 100644 --- a/src/modals/Menu.tsx +++ b/src/modals/Menu.tsx @@ -15,7 +15,7 @@ import { cloudDownloadOutline, cloudUploadOutline, globeOutline, - colorFilterOutline, + colorFillOutline, } from "ionicons/icons"; import { useTranslation } from "react-i18next"; import { storage } from "../data/Storage"; @@ -107,7 +107,7 @@ const ThemeSwitcher = () => {