use YuruToot theme color
This commit is contained in:
parent
d45671066c
commit
a7f9a34d89
@ -19,11 +19,11 @@ module ThemeHelper
|
|||||||
|
|
||||||
if theme == 'system'
|
if theme == 'system'
|
||||||
''.html_safe.tap do |tags|
|
''.html_safe.tap do |tags|
|
||||||
tags << tag.meta(name: 'theme-color', content: Themes::THEME_COLORS[:dark], media: '(prefers-color-scheme: dark)')
|
tags << tag.meta(name: 'theme-color', content: '#787878', media: '(prefers-color-scheme: dark)')
|
||||||
tags << tag.meta(name: 'theme-color', content: Themes::THEME_COLORS[:light], media: '(prefers-color-scheme: light)')
|
tags << tag.meta(name: 'theme-color', content: '#787878', media: '(prefers-color-scheme: light)')
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
tag.meta name: 'theme-color', content: theme_color_for(theme)
|
tag.meta name: 'theme-color', content: '#787878'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user