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

ui: Let Qt 6.4.2 handle dark mode titlebar #726

Merged
merged 1 commit into from Jan 10, 2023

Conversation

TheLastRar
Copy link
Contributor

@TheLastRar TheLastRar commented Jan 9, 2023

Qt 6.4 will automatically set the title bar to dark mode on Windows when using a dark theme, but prior to Qt 6.4.2 it only set the title bar dark mode on window open, and wouldn't update already open windows on theme change.
Qt 6.4.2 fixes that, updating the title bar dark mode on all open windows on theme change.

The legacy build does lose dark mode title bar support, but that feature is only present on 10+ anyway.

Addresses the suggestion made in #352 (comment)

Closes #158

Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
@Scrumplex Scrumplex self-requested a review January 10, 2023 05:41
Copy link
Member

@Scrumplex Scrumplex left a comment

Choose a reason for hiding this comment

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

LGTM

@Scrumplex Scrumplex added this to the 6.2 milestone Jan 10, 2023
@Scrumplex Scrumplex added the enhancement New feature or request label Jan 10, 2023
@Scrumplex Scrumplex merged commit 61144f7 into PrismLauncher:develop Jan 10, 2023
@TheLastRar TheLastRar deleted the qt6-win-darkmode branch January 10, 2023 10:10
Scrumplex added a commit that referenced this pull request Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dark Titlebar only works for main window
4 participants