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
change default alternative color to the value of Primer and take care, that the Primer buttons have the same color in case it is adapted
Henriette Darge019581578f6f
diff --git a/app/views/custom_styles/_primer_color_mapping.erb b/app/views/custom_styles/_primer_color_mapping.erbindex 26538892b20..0286ded552b 100644--- a/app/views/custom_styles/_primer_color_mapping.erb+++ b/app/views/custom_styles/_primer_color_mapping.erb@@ -9,11 +9,13 @@configured design outside of high contrast mode */[data-color-mode]:not([data-light-theme=light_high_contrast]) {--color-accent-fg: var(--content-link-color) !important;+ --button-primary-bgColor-rest: var(--button--alt-highlight-background-color); !important;+ --button-primary-bgColor-hover: var(--button--alt-highlight-background-hover-color) !important;}[data-light-theme=light_high_contrast]{--avatar-border-color: var(--color-avatar-border);--list-item-hover--border-color: var(--color-action-list-item-default-active-border);- --list-item-hover--color: var(--color-fg-default)+ --list-item-hover--color: var(--color-fg-default);--inplace-edit--border-color: var(--color-border-default);--ck-color-toolbar-border: var(--color-border-default);--ck-color-base-border: var(--color-border-default);diff --git a/frontend/src/global_styles/openproject/_variable_defaults.scss b/frontend/src/global_styles/openproject/_variable_defaults.scssindex fd96a01a18b..79e8c69d230 100644--- a/frontend/src/global_styles/openproject/_variable_defaults.scss+++ b/frontend/src/global_styles/openproject/_variable_defaults.scss@@ -37,7 +37,7 @@--primary-color--major2: #103e62;--primary-color--major3: #0a2941;--primary-color-dark: #175A8E;- --alternative-color: #35C53F;+ --alternative-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.diff --git a/lib/open_project/custom_styles/color_themes.rb b/lib/open_project/custom_styles/color_themes.rbindex c9cda1a724e..a7cf1d81d44 100644--- a/lib/open_project/custom_styles/color_themes.rb+++ b/lib/open_project/custom_styles/color_themes.rb@@ -38,7 +38,7 @@ module OpenProject::CustomStylescolors: {'primary-color' => "#1A67A3",'primary-color-dark' => "#175A8E",- 'alternative-color' => "#35C53F",+ 'alternative-color' => "#1F883D",'content-link-color' => "#175A8E",'header-bg-color' => "#1A67A3",'header-item-bg-hover-color' => "#175A8E",@@ -59,7 +59,7 @@ module OpenProject::CustomStylescolors: {'primary-color' => "#1A67A3",'primary-color-dark' => "#175A8E",- 'alternative-color' => "#138E1B",+ 'alternative-color' => "#1F883D",'content-link-color' => "#175A8E",'header-bg-color' => "#FAFAFA",'header-item-bg-hover-color' => "#E1E1E1",@@ -81,7 +81,7 @@ module OpenProject::CustomStylescolors: {'primary-color' => "#3270DB",'primary-color-dark' => "#163473",- 'alternative-color' => "#349939",+ 'alternative-color' => "#1F883D",'content-link-color' => "#275BB5",'header-bg-color' => "#05002C",'header-item-bg-hover-color' => "#163473",diff --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 ec6a12730a4..42deee0fda4 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@@ -26,7 +26,7 @@ module OpenProject::Bimcolors: {'primary-color' => "#3270DB",'primary-color-dark' => "#163473",- 'alternative-color' => "#349939",+ 'alternative-color' => "#1F883D",'header-bg-color' => "#05002C",'header-item-bg-hover-color' => "#163473",'content-link-color' => "#275BB5",