Skip to content
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

Fix Dev UI Theme switch #42310

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Conversation

phillip-kruger
Copy link
Member

@phillip-kruger phillip-kruger commented Aug 5, 2024

Fix #42297

A vaadin-web-components upgrade broke the theme switch. However, the theme switch was always a bit of a hack, example, you can click on the icon then all the options appear, and if you do not select one, but click off screen, all options disappear.

I change this to not use the menu item with the popup, but rather made the button just loop through all options [Desktop, Light, Dark] as you click. You can also use your mouse wheel to go up and down thought the themes.

I also moved the theme logic to it's own component, out of header. This is more maintainable.

/cc @xstefank @melloware

@quarkus-bot quarkus-bot bot added area/dependencies Pull requests that update a dependency file area/vertx labels Aug 5, 2024
@phillip-kruger phillip-kruger added triage/backport-3.13 and removed area/vertx area/dependencies Pull requests that update a dependency file labels Aug 5, 2024
@quarkus-bot quarkus-bot bot added area/dependencies Pull requests that update a dependency file area/vertx labels Aug 5, 2024
@quarkus-bot

This comment has been minimized.

Copy link
Member

@xstefank xstefank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@melloware
Copy link
Contributor

Nice!

@quarkus-bot

This comment has been minimized.

Signed-off-by: Phillip Kruger <phillip.kruger@gmail.com>
Copy link
Contributor

@jmartisk jmartisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Sorry for bothering with the mousewheel, I personally find this quite annoying :D

@phillip-kruger phillip-kruger added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 6, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Aug 6, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 7d1b7eb.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@gsmet
Copy link
Member

gsmet commented Aug 6, 2024

Yeah, I must admit I prefer it without the mousewheel behavior too.

@gsmet gsmet merged commit 688715a into quarkusio:main Aug 6, 2024
52 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.14 - main milestone Aug 6, 2024
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 6, 2024
@gsmet gsmet modified the milestones: 3.14 - main, 3.13.1 Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't change between light and dark mode in DevUI
5 participants