th: Merge pull request 'Add prefers-color-scheme based theme' (#6) from hamptonmoore/mastodon:system-theme into main
Reviewed-on: https://gitea.treehouse.systems/treehouse/mastodon/pulls/6
This commit is contained in:
commit
a02334ab96
5 changed files with 17 additions and 1 deletions
4
app/javascript/skins/glitch/mastodon-system/common.scss
Normal file
4
app/javascript/skins/glitch/mastodon-system/common.scss
Normal file
|
@ -0,0 +1,4 @@
|
|||
@import 'flavours/glitch/styles/mastodon';
|
||||
@media (prefers-color-scheme: light) {
|
||||
@import 'flavours/glitch/styles/mastodon-light';
|
||||
}
|
4
app/javascript/skins/glitch/mastodon-system/names.yml
Normal file
4
app/javascript/skins/glitch/mastodon-system/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
glitch:
|
||||
mastodon-system: Mastodon (system-preferred)
|
|
@ -4,5 +4,5 @@ en:
|
|||
mastodon-light: Mastodon (light)
|
||||
es:
|
||||
skins:
|
||||
glitch:
|
||||
vanilla:
|
||||
mastodon-light: Mastodon (claro)
|
||||
|
|
4
app/javascript/skins/vanilla/mastodon-system/common.scss
Normal file
4
app/javascript/skins/vanilla/mastodon-system/common.scss
Normal file
|
@ -0,0 +1,4 @@
|
|||
@import 'styles/mastodon';
|
||||
@media (prefers-color-scheme: light) {
|
||||
@import 'styles/mastodon-light';
|
||||
}
|
4
app/javascript/skins/vanilla/mastodon-system/names.yml
Normal file
4
app/javascript/skins/vanilla/mastodon-system/names.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
skins:
|
||||
vanilla:
|
||||
mastodon-system: Mastodon (system-preferred)
|
Loading…
Reference in a new issue