Skip to content

Allow configuring ColorMode and ColorScheme in gitlab.yml.erb

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do?

Allows to set a ColorMode (dark-mode) and a ColorScheme (syntax highlighting theme) in /etc/gitlab/gitlab.rb for omnibus installations:

gitlab_rails['gitlab_default_color_mode'] = 2
gitlab_rails['gitlab_default_syntax_highlighting_theme'] = 3

The updated template for the final gitlab.yml didn't include those config values before, although the gitlab codebase is able to work with the, after merging gitlab!141459 (merged) and gitlab!161325 (merged).

It should be possible to set these settings for docker(compose) installations like so too:

version: '3'
services:
  gitlab:
    ...
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        gitlab_rails['gitlab_default_color_mode'] = 2
        gitlab_rails['gitlab_default_syntax_highlighting_theme'] = 5
        ...

Related issues

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • MR title and description are up to date, accurate, and descriptive.
  • MR targeting the appropriate branch.
  • Latest Merge Result pipeline is green.
  • When ready for review, MR is labeled workflowready for review per the Distribution MR workflow.
Edited by jk779

Merge request reports

Loading