Skip to content

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

remove feature flag for dark mode

Behrokh Satarnejad8449252b5ad2
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 661e0403c51..ab0c29812ab 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -280,10 +280,9 @@ module ApplicationHelper
def theme_options_for_select
options = [
[t("themes.light"), "light"],
- [t("themes.light_high_contrast"), "light_high_contrast"]
+ [t("themes.light_high_contrast"), "light_high_contrast"],
+ [t("themes.dark"), "dark"]
]
- options.push([t("themes.dark"), "dark"]) if OpenProject::FeatureDecisions.dark_mode_active?
- options
end
def user_theme_data_attributes
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index cddbbeff9e4..b1bd4c7f2cc 100644
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@ -39,4 +39,3 @@ require_relative "../../lib_static/open_project/feature_decisions"
# OpenProject::FeatureDecisions.add :some_flag
# end
OpenProject::FeatureDecisions.add :favorite_projects
-OpenProject::FeatureDecisions.add :dark_mode