0
0
Fork 0

Change the theme-color value automatically when using a built-in theme (#29795)

This commit is contained in:
Renaud Chaput 2024-03-29 14:32:07 +01:00 committed by GitHub
parent 671167f6da
commit 672c9f5f05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -6,6 +6,9 @@ require 'yaml'
class Themes
include Singleton
MASTODON_DARK_THEME_COLOR = '#191b22'
MASTODON_LIGHT_THEME_COLOR = '#f3f5f7'
def initialize
@conf = YAML.load_file(Rails.root.join('config', 'themes.yml'))
end