From bf2846decc34998bfac3795157ed7e648e49c159 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 16 Nov 2024 17:59:17 +0300 Subject: [PATCH] Show color scheme on user preferences page --- app/views/preferences/show.html.erb | 4 ++++ config/locales/en.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/app/views/preferences/show.html.erb b/app/views/preferences/show.html.erb index 7a63d0be8d..4b772fba90 100644 --- a/app/views/preferences/show.html.erb +++ b/app/views/preferences/show.html.erb @@ -19,7 +19,11 @@
  • <%= locale %>
  • <% end %> + +
    <%= t ".preferred_site_color_scheme" %>
    +
    + <%= t ".site_color_schemes.#{preferred_site_color_scheme}" %>
    diff --git a/config/locales/en.yml b/config/locales/en.yml index 2a92fbb63c..fb4f234304 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1807,6 +1807,11 @@ en: title: My Preferences preferred_editor: Preferred Editor preferred_languages: Preferred Languages + preferred_site_color_scheme: Preferred Website Color Scheme + site_color_schemes: + auto: Auto + light: Light + dark: Dark edit_preferences: Edit Preferences edit: title: Edit Preferences