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
Move the default for the sidebar menu border with around now that the default color is white and the border is needed
Henriette Dargeae2f24771769
diff --git a/app/models/colors/hex_color.rb b/app/models/colors/hex_color.rbindex 30baf4b3d34..d2be88b3251 100644--- a/app/models/colors/hex_color.rb+++ b/app/models/colors/hex_color.rb@@ -16,6 +16,13 @@ module Colorsbright? ? dark : lightend+ ##+ # Returns whether the color is dark according to+ # YIQ lightness.+ def dark?+ brightness_yiq <= 100+ end+### Returns whether the color is bright according to# YIQ lightness.diff --git a/app/views/custom_styles/_inline_css.erb b/app/views/custom_styles/_inline_css.erbindex 69c0e31a44c..3f05cecab67 100644--- a/app/views/custom_styles/_inline_css.erb+++ b/app/views/custom_styles/_inline_css.erb@@ -43,9 +43,8 @@ See COPYRIGHT and LICENSE files for more details.<% end %><% if design_color.variable == "main-menu-bg-color" %>--main-menu-font-color: <%= design_color.contrasting_font_color %>;- <% if design_color.bright? %>- --main-menu-border-width: 1px;- --main-menu-border-color: #d0d7de;+ <% if design_color.dark? %>+ --main-menu-border-width: 0px;<% end %><% end %><% if design_color.variable == "primary-button-color" %>diff --git a/frontend/src/global_styles/openproject/_variable_defaults.scss b/frontend/src/global_styles/openproject/_variable_defaults.scssindex e552046d492..a371c294b83 100644--- a/frontend/src/global_styles/openproject/_variable_defaults.scss+++ b/frontend/src/global_styles/openproject/_variable_defaults.scss@@ -81,7 +81,7 @@--main-menu-x-spacing: 12px;--main-menu-folded-width: 0px;--main-menu-border-color: #EAEAEA;- --main-menu-border-width: 0px;+ --main-menu-border-width: 1px;--main-menu-item-height: 36px;--main-menu-bg-color: #FFFFFF;--main-menu-bg-selected-background: #175A8E;