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
Rename "alternative-color" to "primary-button-color" in code
Henriette Dargec9b93b75f9b3
diff --git a/app/views/custom_styles/_inline_css.erb b/app/views/custom_styles/_inline_css.erbindex 4e2ca2f2af2..b34edc822ea 100644--- a/app/views/custom_styles/_inline_css.erb+++ b/app/views/custom_styles/_inline_css.erb@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.<% if design_color.variable == "main-menu-border-color" %>--main-menu-border-width: 1px;<% end %>- <% if design_color.variable == "alternative-color" %>+ <% if design_color.variable == "primary-button-color" %>--button--alt-highlight-background-hover-color: <%= design_color.darken 0.18 %>;<% end %><% if design_color.variable == "primary-color" %>diff --git a/app/views/custom_styles/_primer_color_mapping.erb b/app/views/custom_styles/_primer_color_mapping.erbindex 0286ded552b..89daaa329e8 100644--- a/app/views/custom_styles/_primer_color_mapping.erb+++ b/app/views/custom_styles/_primer_color_mapping.erb@@ -49,7 +49,7 @@--button--highlight-background-color: var(--color-btn-primary-bg);--button--highlight-background-hover-color: var(--color-btn-primary-hover-bg);--content-link-color: var(--color-accent-fg);- --alternative-color: var(--color-btn-primary-bg);+ --primary-button-color: var(--color-btn-primary-bg);--status-selector-border-color: var(--button--border-color);--link-text-decoration: underline;}diff --git a/config/locales/en.yml b/config/locales/en.ymlindex db0059d16cb..7644856abeb 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -40,7 +40,7 @@ en:color_theme: "Color theme"color_theme_custom: "(Custom)"colors:- alternative-color: "Alternative"+ primary-button-color: "Primary button"content-link-color: "Link font"primary-color: "Primary"header-bg-color: "Header background"@@ -61,7 +61,7 @@ en:enterprise_more_info: "Note: the used logo will be publicly accessible."manage_colors: "Edit color select options"instructions:- alternative-color: "Strong accent color, typically used for the most important button on a screen."+ primary-button-color: "Strong accent color, used for the most important button on a screen."content-link-color: "Font color of most of the links."primary-color: "Main color."header-item-bg-hover-color: "Background color of clickable header items when hovered with the mouse."diff --git a/frontend/src/global_styles/content/_widget_box.sass b/frontend/src/global_styles/content/_widget_box.sassindex 80727fe4639..b2f80750e11 100644--- a/frontend/src/global_styles/content/_widget_box.sass+++ b/frontend/src/global_styles/content/_widget_box.sass@@ -99,8 +99,7 @@ $widget-box--enumeration-width: 20px@extend .icon-yesdisplay: inline-blockfont-size: 0.6rem- color: var(--alternative-color)- color: var(--alternative-color)+ color: var(--primary-button-color)width: $widget-box--enumeration-width.widget-box--descriptiondiff --git a/frontend/src/global_styles/openproject/_variable_defaults.scss b/frontend/src/global_styles/openproject/_variable_defaults.scssindex 12fde4c1ddd..dee8b8263d6 100644--- a/frontend/src/global_styles/openproject/_variable_defaults.scss+++ b/frontend/src/global_styles/openproject/_variable_defaults.scss@@ -36,7 +36,7 @@--primary-color--major1: #155282;--primary-color--major2: #103e62;--primary-color--major3: #0a2941;- --alternative-color: var(--button-primary-bgColor-rest, var(--color-btn-primary-bg));+ --primary-button-color: var(--button-primary-bgColor-rest, var(--color-btn-primary-bg));/*** The 100vh bug on iOS is a well known issue that will not be addressed.@@ -124,7 +124,7 @@--button--active-font-color: #666666;--button--active-background-color: #eeeeee;--button--active-border-color: #cacaca;- --button--alt-highlight-background-color: var(--alternative-color);+ --button--alt-highlight-background-color: var(--primary-button-color);--button--alt-highlight-background-hover-color: #227d28;--button--highlight-font-color: var(--font-color-on-primary);--button--highlight-background-color: var(--primary-color);diff --git a/frontend/src/global_styles/vendor/_enjoyhint.sass b/frontend/src/global_styles/vendor/_enjoyhint.sassindex 5948a7be051..c4d37ba7a33 100755--- a/frontend/src/global_styles/vendor/_enjoyhint.sass+++ b/frontend/src/global_styles/vendor/_enjoyhint.sass@@ -1,8 +1,8 @@@mixin onboarding-button-stylescolor: whiteborder: 2px solid- border-color: var(--alternative-color)- background: var(--alternative-color)+ border-color: var(--primary-button-color)+ background: var(--primary-button-color)-webkit-box-sizing: content-boxbox-sizing: content-box-webkit-transition: background-color 0.3s cubic-bezier(0, 0, 0, 0), color 0.3s cubic-bezier(0, 0, 0, 0), width 0.3s cubic-bezier(0, 0, 0, 0), border-width 0.3s cubic-bezier(0, 0, 0, 0), border-color 0.3s cubic-bezier(0, 0, 0, 0)@@ -137,7 +137,7 @@.enjoyhint_btn-transparentbackground: transparent- color: var(--alternative-color)+ color: var(--primary-button-color)&:hovercolor: white&:activediff --git a/lib/open_project/custom_styles/color_themes.rb b/lib/open_project/custom_styles/color_themes.rbindex c45711c5dfa..c624884f664 100644--- a/lib/open_project/custom_styles/color_themes.rb+++ b/lib/open_project/custom_styles/color_themes.rb@@ -40,7 +40,7 @@ module OpenProject::CustomStylestheme: OpenProject::CustomStyles::ColorThemes::DEFAULT_THEME_NAME,colors: {'primary-color' => "#1A67A3",- 'alternative-color' => PRIMER_PRIMARY_BUTTON_COLOR,+ 'primary-button-color' => PRIMER_PRIMARY_BUTTON_COLOR,'content-link-color' => "#175A8E",'header-bg-color' => "#1A67A3",'header-item-bg-hover-color' => "#175A8E",@@ -60,7 +60,7 @@ module OpenProject::CustomStylestheme: 'OpenProject Light',colors: {'primary-color' => "#1A67A3",- 'alternative-color' => PRIMER_PRIMARY_BUTTON_COLOR,+ 'primary-button-color' => PRIMER_PRIMARY_BUTTON_COLOR,'content-link-color' => "#175A8E",'header-bg-color' => "#FAFAFA",'header-item-bg-hover-color' => "#E1E1E1",@@ -81,7 +81,7 @@ module OpenProject::CustomStylestheme: 'OpenProject Dark',colors: {'primary-color' => "#3270DB",- 'alternative-color' => PRIMER_PRIMARY_BUTTON_COLOR,+ 'primary-button-color' => PRIMER_PRIMARY_BUTTON_COLOR,'content-link-color' => "#275BB5",'header-bg-color' => "#05002C",'header-item-bg-hover-color' => "#163473",diff --git a/lib/open_project/custom_styles/design.rb b/lib/open_project/custom_styles/design.rbindex 74cef228ee0..0ada0c179c7 100644--- a/lib/open_project/custom_styles/design.rb+++ b/lib/open_project/custom_styles/design.rb@@ -69,7 +69,7 @@ module OpenProject::CustomStyles# Returns the keys of variables that are customizable through the designdef customizable_variables%w( primary-color- alternative-color+ primary-button-colorcontent-link-colorheader-bg-colorheader-item-bg-hover-colordiff --git a/modules/bim/lib/open_project/bim/patches/color_themes_patch.rb b/modules/bim/lib/open_project/bim/patches/color_themes_patch.rbindex 2876fc643d1..04b79f8c124 100644--- a/modules/bim/lib/open_project/bim/patches/color_themes_patch.rb+++ b/modules/bim/lib/open_project/bim/patches/color_themes_patch.rb@@ -25,7 +25,7 @@ module OpenProject::Bimtheme: OpenProject::CustomStyles::ColorThemes::BIM_THEME_NAME,colors: {'primary-color' => "#3270DB",- 'alternative-color' => OpenProject::CustomStyles::ColorThemes::PRIMER_PRIMARY_BUTTON_COLOR,+ 'primary-button-color' => OpenProject::CustomStyles::ColorThemes::PRIMER_PRIMARY_BUTTON_COLOR,'header-bg-color' => "#05002C",'header-item-bg-hover-color' => "#163473",'content-link-color' => "#275BB5",