Merge commit 'cc3c7ba532f75617505bb41297651a5c14f71bdd' into glitch-soc/merge-upstream

Conflicts:
- `app/helpers/theme_helper.rb`:
  Upstream simplified `theme_style_tags`. Our version is different because of
  the different theming system.
  Adapted upstream's changes.
- `app/views/layouts/error.html.haml`:
  Theming system.
This commit is contained in:
Claire committed 2026-01-16 23:22:19 +01:00
commit 7839c8d9af
20 files changed
+456 -214

No files matched your search

+3 -11
View File
@@ -9,17 +9,10 @@ RSpec.describe ThemeHelper do
context 'when using "system" theme' do
let(:theme) { ['glitch', 'system'] }
it 'returns the mastodon-light and application stylesheets with correct color schemes' do
it 'returns the default theme' do
expect(html_links.first.attributes.symbolize_keys)
.to include(
# This is now identical to the default theme & will be unified very soon
href: have_attributes(value: match(/default/)),
media: have_attributes(value: 'not all and (prefers-color-scheme: dark)')
)
expect(html_links.last.attributes.symbolize_keys)
.to include(
href: have_attributes(value: match(/default/)),
media: have_attributes(value: '(prefers-color-scheme: dark)')
href: have_attributes(value: match(/default/))
)
end
end
@@ -41,8 +34,7 @@ RSpec.describe ThemeHelper do
it 'returns the theme stylesheet without color scheme information' do
expect(html_links.first.attributes.symbolize_keys)
.to include(
href: have_attributes(value: match(/contrast/)),
media: have_attributes(value: 'all')
href: have_attributes(value: match(/default/))
)
end
end