Allow theme plugin to override settings and add menu options#5580
Merged
Allow theme plugin to override settings and add menu options#5580
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5577
This allows a theme plugin to override settings for certain properties. It also adds the existing
menuoptions to what is supported in Theme Plugins.Here is an example of how the plugin to set a custom favicon, page title etc.
A couple of notes:
favicon/header.imagesettings must be full paths to the image relative to the root of the package.header.title/image/url- set tofalseto remove the title/image/link as desiredNode-RED Helpmenu item and the version number menu item (that links to the help sidebar changelog).For
menu-item-help, the text/url of the menu item can be customised by setting it to an object withlabelandurlproperties: