Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Rewrite cosmetics and theme preferences #1733

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brawaru
Copy link
Contributor

@brawaru brawaru commented Jun 16, 2024

  • Cosmetics and theme preferences are now only stored in cookies instead of mix of both the cookies and the state.

  • Theme preference now supports client hints. This means the server can render the page in correct theme for the client if the client passes that information (any browser other than Firefox), which avoids annoying flash.

  • Hacky Nitro plugin for theme has been removed. It's functionality should be fully provided by the theme plugin with much cleaner code that uses Nuxt's built-ins.

  • All pages and components should be updated to use the new plugins.

@brawaru brawaru force-pushed the feat/theme-cosmetics-rewrite branch from 80f11e1 to cfa34f7 Compare June 16, 2024 21:17
@brawaru brawaru changed the title Rewrite cosmetics and theme prefs Rewrite cosmetics and theme preferences Jun 16, 2024
@brawaru brawaru marked this pull request as ready for review June 16, 2024 21:19
Comment on lines +376 to +378
'Accept-CH': 'Sec-CH-Prefers-Color-Scheme',
Vary: 'Sec-CH-Prefers-Color-Scheme',
'Critical-CH': 'Sec-CH-Prefers-Color-Scheme',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brawaru brawaru force-pushed the feat/theme-cosmetics-rewrite branch from cfa34f7 to dcaf16f Compare June 16, 2024 21:25
- Cosmetics and theme preferences are now only stored in cookies instead
  of mix of both the cookies and the state.

- Theme preference now supports client hints. This means the server can
  render the page in correct theme for the client if the client passes
  that information (any browser other than Firefox), which avoids
  annoying flash.

- Hacky Nitro plugin for theme has been removed. It's functionality
  should be fully provided by the theme plugin with much cleaner code
  that uses Nuxt's built-ins.

- All pages and components should be updated to use the new plugins.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant