mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: use current user color scheme when filling theme-color
attribute (#6384)
* FIX: use current user color scheme when filling `meta` attribute `theme-color` * update manifest.webmanifest colors
This commit is contained in:
@ -27,8 +27,8 @@ class MetadataController < ApplicationController
|
||||
display: display,
|
||||
orientation: 'any',
|
||||
start_url: Discourse.base_uri.present? ? "#{Discourse.base_uri}/" : '.',
|
||||
background_color: "##{ColorScheme.hex_for_name('secondary')}",
|
||||
theme_color: "##{ColorScheme.hex_for_name('header_background')}",
|
||||
background_color: "##{ColorScheme.hex_for_name('secondary', view_context.scheme_id)}",
|
||||
theme_color: "##{ColorScheme.hex_for_name('header_background', view_context.scheme_id)}",
|
||||
icons: [
|
||||
{
|
||||
src: logo,
|
||||
|
Reference in New Issue
Block a user