Commit Graph

88 Commits

Author SHA1 Message Date
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
Jordan Vidrine b4e451e64b DEV: Experimenting with using built in core color palettes for the color picking component (#71)
This PR is the beginning of converting the color picker to use built in
core color palettes.
The `color_schemes` defined in `about.json` are created in core when the
theme is imported,
and we then show all user-selectable color palettes in this sidebar
footer menu.

An important caveat here is that all of the Horizon themes must be
changed to `user_selectable`
otherwise they will not show up in the color palette selector in the
sidebar.

When choosing a color palette that also has a corresponding dark color
palette,
*both* light mode and dark mode are correctly saved with the color
palette(s) chosen,
using the color palette cookie we already have in core.

Anon users can also set a palette, which will be saved in a cookie.

---------

Co-authored-by: Sérgio Saquetim <saquetim@discourse.org>
Co-authored-by: Martin Brennan <martin@discourse.org>
Co-authored-by: Osama Sayegh <asooomaasoooma90@gmail.com>
2025-03-31 13:28:28 +10:00
chapoi 0473f90cd9 Lower z-index of powered-by-discourse badge (#93) 2025-03-30 20:33:59 -05:00
Jordan Vidrine 3e3f410839 UX: More card fixes (#94) 2025-03-28 16:43:52 -05:00
Jordan Vidrine 2046f525d4 UX: More logic for title columns (#87) 2025-03-28 10:49:28 -05:00
chapoi 9945f1d899 FIX: remove overflow prop (#91) 2025-03-28 08:27:36 -05:00
chapoi f70524a44b UX: fix minimised draft bg colour for composer (#89)
Followup fix for #84
2025-03-28 14:17:45 +01:00
Martin Brennan 0a416d317e FIX: Messed up CSS grid on messages list (#88)
This needs a better follow-up, but the messages topic list
is currently busted. Removing the overridden topic-list-item
grid for messages helps.
2025-03-28 12:39:49 +10:00
chapoi 910bc855c1 Composer styling on desktop (#84) 2025-03-27 16:41:20 -05:00
chapoi e20b83b79d Misc mobile fixes (#83) 2025-03-27 16:35:08 -05:00
Jordan Vidrine e7de006a23 UX: Topic list layout changes (#85) 2025-03-27 16:31:46 -05:00
Jordan Vidrine eff8628223 DEV: Fix spec (#86) 2025-03-27 16:31:28 -05:00
Jordan Vidrine a84682c0d0 FIX: Bulk select fix (#81)
This PR fixes bulk select on the new topic cards.
2025-03-27 10:03:40 +10:00
Jordan Vidrine adb1e4dcf2 UX: Change title fonts, etc (#80) 2025-03-26 14:08:42 -05:00
Jordan Vidrine d300cf9d0f UX: New topic card layout (#79) 2025-03-26 10:47:52 -05:00
Kris 6766b94232 UX: add tags-index container (#78) 2025-03-25 16:18:17 -04:00
Jordan Vidrine af82802548 UX: Topic list card fixes for assignments & bookmarks (#76) 2025-03-25 15:11:49 -05:00
Kris 943dd4e2d2 UX: change category nav background on mobile (#77) 2025-03-25 15:54:03 -04:00
Jordan Vidrine 1a372b7edc fix z index for input menu (#75) 2025-03-25 10:08:16 -05:00
Kris f786eae910 UX: set border radius on PMs (#74) 2025-03-24 15:22:25 -04:00
Jordan Vidrine dabd9a159a DEV: Use new is_hot_topic serializer (#73) 2025-03-24 12:05:10 -05:00
Jordan Vidrine 969e2b7969 begin migration of colors (#72) 2025-03-21 09:44:09 -05:00
chapoi ade14d7f54 Welcome banner: slight zindex increase (#70) 2025-03-21 11:55:29 +01:00
chapoi 30cb6bbf59 UX: Z-index welcome banner (#68)
* UX: increase z-index of welcome banner

* UX: lower z-index of sticky list-controls
2025-03-20 19:13:52 +01:00
Jordan Vidrine bee6e4e3c5 init (#69) 2025-03-20 09:43:40 -05:00
Kris 7f6b0df5bf UX: move and restyle bulk select on desktop (#65) 2025-03-20 08:42:11 -04:00
Martin Brennan 274e5f7a1f UX: Add theme settings and value transformers (#67)
This commit adds the above for these core site
settings:

* search_experience
* enable_welcome_banner

Since for horizon we want better control of
the default experience of these settings OOTB.

See also https://github.com/discourse/discourse/pull/31917
2025-03-20 15:38:46 +10:00
chapoi d062468f93 Undo sticky topic header (#64) 2025-03-19 10:19:25 -05:00
chapoi b6db617017 Mobile: New alert info width fix (#63) 2025-03-19 10:01:43 +01:00
Jordan Vidrine efc3dd5475 cleanup dropdown button (#62) 2025-03-18 19:29:42 -05:00
Jordan Vidrine d79313436d fix (#61) 2025-03-18 19:18:32 -05:00
Jordan Vidrine 19c957aecc apply anti-aliased font to topics as well (#60) 2025-03-18 18:43:27 -05:00
chapoi 3816c49bbf Tiny misc fixes (#59) 2025-03-18 17:02:45 +01:00
chapoi f64d0cc6dc UX: update styling of overlapping alert new/updated topics (#56) 2025-03-18 17:01:49 +01:00
chapoi 71f246c8a3 Button hover style reapply (#58) 2025-03-18 09:28:25 -05:00
Jordan Vidrine 970ee33771 cleanup (#55) 2025-03-17 19:49:30 -05:00
Jordan Vidrine 2c41c2ffab fix user page (#54) 2025-03-17 15:13:39 -05:00
Martin Brennan 185651b10d DEV: Remove search banner dependency (#53)
Followup dfa22d21b6,
the search banner has been replaced in core
with the welcome banner, this is no longer needed,
c.f. https://github.com/discourse/discourse/pull/31516
2025-03-17 11:45:14 +08:00
Jordan Vidrine dfa22d21b6 UX: Welcome banner merge prep (#49)
This PR preps the Horizon theme for the merger of the search banner into core. This PR should only be merged once this PR in core has been merged.
2025-03-17 12:18:54 +10:00
Jordan Vidrine 598f4fce65 fix (#52) 2025-03-14 17:13:38 -05:00
Jordan Vidrine 144c3dff8f DEV: main container sizing & border radius cleanup (#51) 2025-03-14 16:12:54 -05:00
Jordan Vidrine 8b09523510 DEV: Button stylesheet cleanup (#50) 2025-03-14 15:30:00 -05:00
Jordan Vidrine f70c452f26 selected (#48) 2025-03-12 13:52:05 -05:00
Jordan Vidrine 3911572b29 UX: More fixes (#47) 2025-03-12 13:39:27 -05:00
Jordan Vidrine 7fe1b87f82 small tweaks (#46) 2025-03-12 12:27:56 -05:00
Martin Brennan d85097774f DEV: Add high level system spec and clean up JS (#34) 2025-03-12 10:18:36 -05:00
chapoi 9a5759ae86 Tweak to color shadows, sidebar font-size, general small fixes (#36) 2025-03-12 10:02:45 -05:00
Jordan Vidrine 7023cc0f97 add margin to select menu (#45) 2025-03-11 17:21:46 -05:00
Jordan Vidrine feae5a0214 hide topic list trigger (#44) 2025-03-11 17:21:28 -05:00
Jordan Vidrine 81b7466224 fix sidebar group chat icon (#43) 2025-03-11 17:20:26 -05:00