シャドウラインにMastodonが乗っ取られちゃったやつ
Google+ Theme for MastodonをベースにしたMastodonのテーマ
シュバルツのネーミングはあのシュバルツから
ちなみにちゃんと希望のレインボーラインをこっそり残してあったりします
- Google+ Theme for Mastodon - MIT License
- Google+ Theme Schwarz - MIT License
注: 以下の情報は Google+ Theme for Mastodon に基づくものであり、このフォークの動作を保証するものではありません
注: 以下の情報は Google+ Theme for Mastodon に基づくものであり、このフォークの動作を保証するものではありません
注: 以下の通りに操作してもこのフォークを導入することはできません
-
Follow the official guide and add this theme
-
Copy these files in
src
of this repository intoapp/javascript/styles
of Mastodon source directory/gplus-theme-for-mastodon/
/gplus-theme-for-mastodon.scss
-
Add the below code on
config/themes.yml
default: styles/application.scss contrast: styles/contrast.scss mastodon-light: styles/mastodon-light.scss # Maybe there are other themes... google-plus: styles/gplus-theme-for-mastodon.scss # Insert this one into any lines
-
Add localization data to
config/locales/{lang}.yml
(At leastconfig/locales/en.yml
is REQUIRED)themes: contrast: High contrast default: Mastodon mastodon-light: Mastodon (light) # Maybe there are other themes... gplus-theme-for-mastodon: Google+ # Insert this one into the below line
-
-
To avoid CSP(Content Security Policy), MAKE SURE to change
config/initializers/content_security_policy.rb
:base_host = Rails.configuration.x.web_domain assets_host = Rails.configuration.action_controller.asset_host assets_host ||= "http#{Rails.configuration.x.use_https ? 's' : ''}://#{base_host}" Rails.application.config.content_security_policy do |p| p.base_uri :none p.default_src :none p.frame_ancestors :none p.font_src :self, assets_host, google_font_host p.img_src :self, :https, :data, :blob, assets_host p.style_src :self, :unsafe_inline, assets_host p.media_src :self, :https, :data, assets_host p.frame_src :self, :https p.manifest_src :self, assets_host
into
base_host = Rails.configuration.x.web_domain assets_host = Rails.configuration.action_controller.asset_host assets_host ||= "http#{Rails.configuration.x.use_https ? 's' : ''}://#{base_host}" google_font_host = "https://fonts.gstatic.com" gplus_theme_host = "https://raw.githubusercontent.com" Rails.application.config.content_security_policy do |p| p.base_uri :none p.default_src :none p.frame_ancestors :none p.font_src :self, assets_host, google_font_host, gplus_theme_host p.img_src :self, :https, :data, :blob, assets_host, gplus_theme_host p.style_src :self, :unsafe_inline, assets_host, gplus_theme_host p.media_src :self, :https, :data, assets_host p.frame_src :self, :https p.manifest_src :self, assets_host