Martin Brennan 6a4b979514 FIX: Color palette switching when Horizon is not default (#95)
When Horizon is not the default theme, and the color palette
switcher is used, we were ending up in a broken CSS state because
the color definitions were not loaded correctly when calling
`/color-scheme-stylesheet/` to get the new stylesheet URLs.

The problem was that we were not giving the theme ID to this URL,
we were only doing `/color-scheme-stylesheet/:palette_id`, not
`/color-scheme-stylesheet/:palette_id/:theme_id`, so the theme
color definitions like the ones that define the background color
were not loaded.

This commit fixes the issue and also changes to recreating the
`<link>` tags for the CSS in the head so we can check if they
are loaded correctly for easier testing in system specs.
2025-03-31 18:23:07 +10:00
2025-02-24 15:59:49 -06:00
2025-03-27 10:03:40 +10:00
2025-02-24 15:59:49 -06:00
2025-02-24 08:40:45 -06:00
2025-02-24 08:40:45 -06:00
2025-02-24 08:40:45 -06:00
2025-02-24 08:40:45 -06:00

next-gen

Theme Summary

For more information, please see: url to meta topic

S
Description
自定义 discourse 主题,原主题:https://github.com/discourse/horizon
Readme 1.5 MiB
Languages
SCSS 67.6%
JavaScript 20.1%
Ruby 12%
HTML 0.3%