From eed112dd40c3ea883545341d99a1d480fc12a3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 27 Mar 2023 05:58:01 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9E=95=20convert=20theme=20toggle=20to?= =?UTF-8?q?=20theme=20selection=20including=20system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/_locales/en/messages.json | 7 ++- src/Options.vue | 84 +++++++++++++++++--------------- src/Popup.vue | 13 +++-- src/Stats.vue | 16 +++--- src/assets/global.styl | 2 +- src/utils.js | 23 ++++++++- 6 files changed, 87 insertions(+), 58 deletions(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 1f6aef9..d77a8ce 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -31,9 +31,12 @@ "label": "Clear Cache", "size": "Cache size is {0}" }, - "darkMode": { + "theme": { "description": "Switch between dark and light color scheme", - "label": "Dark Mode" + "system": "System", + "light": "Light", + "dark": "Dark", + "label": "Theme" }, "headings": { "appearance": "Appearance & Experience", diff --git a/src/Options.vue b/src/Options.vue index b285619..c9d23dd 100644 --- a/src/Options.vue +++ b/src/Options.vue @@ -1,14 +1,7 @@