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 OP Dark theme and use it in BIM edition
Henriette Dingerd2698ef91321
diff --git a/lib/open_project/custom_styles/color_themes.rb b/lib/open_project/custom_styles/color_themes.rbindex 040929356b3..88eba9c7fd3 100644--- a/lib/open_project/custom_styles/color_themes.rb+++ b/lib/open_project/custom_styles/color_themes.rb@@ -76,22 +76,22 @@ module OpenProject::CustomStyles{name: 'OpenProject Dark',colors: {- 'primary-color' => "#1A67A3",- 'primary-color-dark' => "#175A8E",- 'alternative-color' => "#138E1B",- 'content-link-color' => "#175A8E",- 'header-bg-color' => "#031D2F",- 'header-item-bg-hover-color' => "#0F3A5A",- 'header-item-font-color' => "#DFDFDF",- 'header-item-font-hover-color' => "#DFDFDF",+ 'primary-color' => "#3270DB",+ 'primary-color-dark' => "#163473",+ 'alternative-color' => "#349939",+ 'content-link-color' => "#275BB5",+ 'header-bg-color' => "#05002C",+ 'header-item-bg-hover-color' => "#163473",+ 'header-item-font-color' => "#FFFFFF",+ 'header-item-font-hover-color' => "#FFFFFF",'header-border-bottom-color' => "",- 'main-menu-bg-color' => "#2F3131",- 'main-menu-bg-selected-background' => "#143E5F",- 'main-menu-bg-hover-background' => "#0D2B42",- 'main-menu-font-color' => "#DFDFDF",- 'main-menu-hover-font-color' => "#DFDFDF",- 'main-menu-selected-font-color' => "#DFDFDF",- 'main-menu-border-color' => "#000000"+ 'main-menu-bg-color' => "#0E2045",+ 'main-menu-bg-selected-background' => "#3270DB",+ 'main-menu-bg-hover-background' => "#163473",+ 'main-menu-font-color' => "#FFFFFF",+ 'main-menu-hover-font-color' => "#FFFFFF",+ 'main-menu-selected-font-color' => "#FFFFFF",+ 'main-menu-border-color' => "#EAEAEA"}}].freezediff --git a/modules/bim_seeder/app/seeders/bim_seeder/basic_data/custom_style_seeder.rb b/modules/bim_seeder/app/seeders/bim_seeder/basic_data/custom_style_seeder.rbnew file mode 100644index 00000000000..a146fe00fec--- /dev/null+++ b/modules/bim_seeder/app/seeders/bim_seeder/basic_data/custom_style_seeder.rb@@ -0,0 +1,42 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2020 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2017 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See docs/COPYRIGHT.rdoc for more details.+#+++module BimSeeder+ module BasicData+ class CustomStyleSeeder < Seeder+ def seed_data!+ CustomStyle.create data+ end++ def data+ { theme: 'OpenProject Dark' }+ end+ end+ end+enddiff --git a/modules/bim_seeder/app/seeders/bim_seeder/basic_data_seeder.rb b/modules/bim_seeder/app/seeders/bim_seeder/basic_data_seeder.rbindex e91a1f27c05..3587f9ef778 100644--- a/modules/bim_seeder/app/seeders/bim_seeder/basic_data_seeder.rb+++ b/modules/bim_seeder/app/seeders/bim_seeder/basic_data_seeder.rb@@ -36,6 +36,7 @@ module BimSeeder::BimSeeder::BasicData::ActivitySeeder,::BasicData::ColorSeeder,::BasicData::ColorSchemeSeeder,+ ::BimSeeder::BasicData::CustomStyleSeeder,::BimSeeder::BasicData::WorkflowSeeder,::BimSeeder::BasicData::PrioritySeeder,::BasicData::SettingSeeder