Sort themes by name in Zen settings and update CSS for category hover state

This commit is contained in:
mr. M
2025-01-07 20:41:17 +01:00
parent 4c5279e5eb
commit 70cbc6033b
2 changed files with 15 additions and 7 deletions

View File

@@ -167,7 +167,7 @@ var gZenMarketplaceManager = {
const browser = ZenMultiWindowFeature.currentBrowser;
const themeList = document.createElement('div');
for (const theme of Object.values(themes)) {
for (const theme of Object.values(themes).sort((a, b) => a.name.localeCompare(b.name))) {
const sanitizedName = `theme-${theme.name?.replaceAll(/\s/g, '-')?.replaceAll(/[^A-z_-]+/g, '')}`;
const isThemeEnabled = theme.enabled === undefined || theme.enabled;