Allow palette.categories to be set via theme plugin

pull/5526/head
Nick O'Leary 2026-03-06 09:37:01 +00:00
parent 610e704436
commit 653d8a5b45
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
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.