close
Skip to content

Improve theme change at runtime#1473

Merged
leaanthony merged 5 commits into
masterfrom
bugfix/runtime_theme_changes
Jun 21, 2022
Merged

Improve theme change at runtime#1473
leaanthony merged 5 commits into
masterfrom
bugfix/runtime_theme_changes

Conversation

@leaanthony

Copy link
Copy Markdown
Member

Fixes runtime theme changes

@leaanthony
leaanthony requested a review from stffabi June 20, 2022 11:14
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 20, 2022

Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6abda7b
Status:⚡️  Build in progress...

View logs

@stffabi stffabi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work, that definitely improve the theme changing 🚀 .

I just added some comments about possibly loosing the adaption to system changes, like active/inactive and changing the system theme.


// Custom theme
if win32.SupportsCustomThemes() && customTheme != nil {
if w.isActive {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Don't we need to also set w.themeChanged = true when w.isActive gets changed during w32.WM_ACTIVATE?
I think we might loose the adaption of the active/inactive color when customThemes are active.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done

Comment thread v2/internal/frontend/desktop/windows/theme.go
@leaanthony
leaanthony merged commit 1687906 into master Jun 21, 2022
@leaanthony
leaanthony deleted the bugfix/runtime_theme_changes branch June 21, 2022 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants