Merge pull request #5526 from node-red/expose-category-in-theme

Allow palette.categories to be set via theme plugin
pull/5527/head
Nick O'Leary 2026-03-06 09:55:42 +00:00 committed by GitHub
commit 3f86ccfd14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,10 @@ async function loadThemePlugin () {
}
})
}
if (Array.isArray(themePlugin.palette?.categories)) {
themeSettings.palette = themeSettings.palette || {};
themeSettings.palette.categories = themePlugin.palette.categories;
}
// These settings are not exposed under `editorTheme`, so we don't have a merge strategy for them
// If they're defined in the theme plugin, they replace any settings.js values.