-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Extension point for plugins to be able to contribute theming requirements (e.g. source code highlighting) #88
Comments
This could also be used to overwrite codemirror theme so that theme plugins don't need to supply their own |
I think we have two different variants to implement that.
While the former one is simpler to implement, the latter one seems to be more flexible. However, that means each theme author then needs to know, which other plugins exist that provide theming options. |
Should probably be a section in the README that plugins that implement the extension point should add a reference in. |
This was done |
What feature do you want to see added?
Discussed this a bit with @uhafner in a couple of places.
The https://github.com/jenkinsci/prism-api-plugin has added it's own theming component to choose the prism theme.
This isn't ideal as:
It would be ideal if there was an extension point that plugins could implement adding to the UI of this plugin.
It would also be ideal if the Theme extension point added a
Map<String,String> properties
method where themes could contribute information to these extensions.e.g.
Dark theme could set a property
"prismTheme" = "dark"
Prism API could then default to that.
Then Prism API would add an optional property
Override source code highlighting theme
which would allow the user to select a different one.Any thoughts @uhafner or others (@janfaracik fyi)?
This would be useful for jenkinsci/design-library-plugin#12
Upstream changes
probably should implement #81 first
The text was updated successfully, but these errors were encountered: