Skip to content

Order Themes in Theme Picker#10398

Merged
thsparks merged 191 commits intomasterfrom
thsparks/theme_order
Feb 26, 2025
Merged

Order Themes in Theme Picker#10398
thsparks merged 191 commits intomasterfrom
thsparks/theme_order

Conversation

@thsparks
Copy link
Contributor

@thsparks thsparks commented Feb 26, 2025

This allows us to specify a weight for each theme. Themes will be ordered with higher weights at the bottom. If a theme does not have a weight, it is put last.

image

I've also moved when themes are loaded to before the page is shown, so there is no time where the default theme will be visible (unless something goes wrong).

Fixes microsoft/pxt-arcade#6708

…d a new pxtrcdeps (pxt react common dependencies) min.js file which includes (for now) just the DOMPurify code. Then I added a reference to it in skillmap.
…vars were used previously, but put back all the hardcoded values.
… but the little numbers on the right aren't themed to contrast in dark theme, and I was struggling to get them working. So just hard-code for now.
@thsparks thsparks requested a review from a team February 26, 2025 00:24
Copy link
Contributor

@srietkerk srietkerk left a comment

Choose a reason for hiding this comment

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

Nice!

@thsparks thsparks merged commit fca9783 into master Feb 26, 2025
6 checks passed
@thsparks thsparks deleted the thsparks/theme_order branch February 26, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reorder themes

2 participants