1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-30 15:58:28 +09:00

use YuruToot theme color

This commit is contained in:
Noa Himesaka 2024-10-17 00:31:57 +09:00
parent d45671066c
commit a7f9a34d89

View File

@ -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