OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Make logo check for light high contrast explicit
Kabiru Mwenjab4f93a462b75
diff --git a/app/models/user_preference.rb b/app/models/user_preference.rbindex 2cecc9bf0a8..d564cd86329 100644--- a/app/models/user_preference.rb+++ b/app/models/user_preference.rb@@ -134,8 +134,8 @@ class UserPreference < ApplicationRecordtheme == "sync_with_os"end- def high_contrast_theme?- theme.end_with?("high_contrast")+ def light_high_contrast_theme?+ theme == "light_high_contrast"enddef time_zonediff --git a/lib/redmine/menu_manager/top_menu_helper.rb b/lib/redmine/menu_manager/top_menu_helper.rbindex 1a96577e5e0..33284ecae0e 100644--- a/lib/redmine/menu_manager/top_menu_helper.rb+++ b/lib/redmine/menu_manager/top_menu_helper.rb@@ -56,7 +56,7 @@ module Redmine::MenuManager::TopMenuHelperdef render_logocontent_tag :div, class: "op-logo" do- mode_class = User.current.pref.high_contrast_theme? ? "op-logo--link_high_contrast" : ""+ mode_class = User.current.pref.light_high_contrast_theme? ? "op-logo--link_high_contrast" : ""link_to(I18n.t("label_home"),configurable_home_url,class: "op-logo--link #{mode_class}")@@ -64,7 +64,7 @@ module Redmine::MenuManager::TopMenuHelperenddef render_logo_icon- mode_class = "op-logo--icon_white" unless User.current.pref.high_contrast_theme?+ mode_class = "op-logo--icon_white" unless User.current.pref.light_high_contrast_theme?link_to(I18n.t("label_home"), configurable_home_url, class: ["op-logo", "op-logo--icon", "op-logo--link", mode_class])end