-
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 previews of the themes to the config page #75
Conversation
No thanks 👅 . There's two methods:
I'm not exactly sure the benefits of either tbh, @fqueiruga may have more experience with it |
Tbh I think it's re-working themes so that they are all loaded on a page and name-spaced by a class. This would also allow hover / clicking to change the active theme on the page (unless better ideas.) Here's an example of how GitHub does themes: [data-color-mode=light][data-light-theme=dark_dimmed], [data-color-mode=dark][data-dark-theme=dark_dimmed] {
...
}
@media (prefers-color-scheme: light) {
[data-color-mode=auto][data-light-theme=dark_dimmed] {
...
} They don't seem to automatically adjust svgs they just bundle a different SVG for each variation, but we might be able to make it automatic with a new namespacing. We would need a flag on one of the classes that says the theme is namespacing aware / hot load capable. Does this make sense? I can help if you need |
should be ok |
Test failure:
bit weird, I guess just use |
UX sig meeting is today at 4pm if you want to show this, (I've messaged you on teams) |
src/main/java/io/jenkins/plugins/thememanager/ThemeManagerPageDecorator.java
Show resolved
Hide resolved
src/main/java/io/jenkins/plugins/thememanager/ThemeManagerFactoryDescriptor.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Ullrich Hafner <[email protected]>
src/main/java/io/jenkins/plugins/thememanager/ThemeManagerFactoryDescriptor.java
Outdated
Show resolved
Hide resolved
Theme manager side of this is ready to go I think. Edit: moved TODO to top comment |
Bisecting in progress, tracked it down to a parent pom regression, most likely in maven-hpi-plugin.
Bisected parent pom:
Bisected to jenkinsci/maven-hpi-plugin#208 |
Just need README screenshot update now I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 let's go!
Nice to see it finally go live 🥳 But why does it just deploy to incrementals' repository? |
There was an error during release because of the GitHub action reformatting the code on master: #84 When I resumed the release it built 0.7-SNAPSHOT instead of actually releasing it 🤦 |
Yeah, I noticed it not being available thru the plugin manager after the tag has been published. |
This PR intends to update the existing radio buttons on the configuration page to include previews of their respective theme.
Fixes #10
Related PRs:
TODO:
resource loading isn't updating on the fly in dark themeFinish updating solarized themeDo material themeEnable caching in all themes and pass version number for cache busting- can be done laterVerify compatibility on old themes