From 8f01d06927df69aa0f906ff13b3837f85a0caa5c Mon Sep 17 00:00:00 2001 From: Vogeluff <72712390+Vogeluff@users.noreply.github.com> Date: Thu, 26 Mar 2026 18:15:16 +0100 Subject: [PATCH] feat(web): add a seperate tooltip for switching from dark to light mode (#27297) --- i18n/en.json | 3 ++- web/src/routes/+layout.svelte | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index fdf3a2181c..252664653c 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -881,7 +881,7 @@ "daily_title_text_date": "E, MMM dd", "daily_title_text_date_year": "E, MMM dd, yyyy", "dark": "Dark", - "dark_theme": "Toggle dark theme", + "dark_theme": "Switch to dark theme", "date": "Date", "date_after": "Date after", "date_and_time": "Date and Time", @@ -1388,6 +1388,7 @@ "library_page_sort_title": "Album title", "licenses": "Licenses", "light": "Light", + "light_theme": "Switch to light theme", "like": "Like", "like_deleted": "Like deleted", "link_motion_video": "Link motion video", diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 046d5ce068..71bd66641c 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -52,7 +52,7 @@ prompt_default: $t('are_you_sure_to_do_this'), show_password: $t('show_password'), hide_password: $t('hide_password'), - dark_theme: $t('dark_theme'), + dark_theme: themeManager.isDark ? $t('light_theme') : $t('dark_theme'), open_menu: $t('open'), command_palette_prompt_default: $t('command_palette_prompt'), command_palette_to_select: $t('command_palette_to_select'),