Skip to content

Allow palette.categories to be set via theme plugin#5526

Merged
knolleary merged 1 commit intomasterfrom
expose-category-in-theme
Mar 6, 2026
Merged

Allow palette.categories to be set via theme plugin#5526
knolleary merged 1 commit intomasterfrom
expose-category-in-theme

Conversation

@knolleary
Copy link
Copy Markdown
Member

The order of palette categories can already be set via editorTheme.palette.categories in the settings file.

This PR allows that to also be set via a theme plugin. This is a continuation of #5500

RED.plugins.registerPlugin('test-theme-plugin', {
        type: 'node-red-theme',
        // scripts: [],
        css: [
            'theme.css',
        ],
        palette: {
            theme: [ ... ]
            categories: ['network', 'function', 'subflow', 'common']
        }
    }) 

If not set, the default order is: ['subflows', 'common', 'function', 'network', 'sequence', 'parser', 'storage'] - with any unknown categories being appended to the palette in the order they are loaded.

@knolleary knolleary merged commit 3f86ccf into master Mar 6, 2026
5 checks passed
@knolleary knolleary deleted the expose-category-in-theme branch March 6, 2026 09:55
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.

1 participant