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

Add Support for Custom System Color Overrides #2376

Merged
merged 86 commits into from
Oct 20, 2024
Merged

Add Support for Custom System Color Overrides #2376

merged 86 commits into from
Oct 20, 2024

Conversation

sdottaka
Copy link
Member

@sdottaka sdottaka commented Jul 12, 2024

This PR hooks the Windows system color retrieval function GetSysColor() to return customized colors. This allows you to change the color of toolbars, status bars, etc. as shown below. However, this only works in some areas and does not currently apply to dialog windows, scroll bars, etc.

image

You can customize the system colors in the Colors/System category of the Options window.

image

Src/CommandBar.h Fixed Show fixed Hide fixed
Src/CommandBar.cpp Fixed Show fixed Hide fixed
Src/MenuBar.cpp Fixed Show fixed Hide fixed
Src/MenuBar.h Dismissed Show dismissed Hide dismissed
Src/MenuBar.h Dismissed Show dismissed Hide dismissed
@sdottaka sdottaka changed the title WIP Add Support for Custom System Color Overrides Oct 20, 2024
@sdottaka sdottaka added this to the v2.16.43 milestone Oct 20, 2024
@sdottaka sdottaka marked this pull request as ready for review October 20, 2024 05:10
@sdottaka sdottaka merged commit b52a7cd into master Oct 20, 2024
3 checks passed
@sdottaka sdottaka deleted the syscolor-hook branch October 20, 2024 09:35
@Gitoffthelawn
Copy link
Contributor

Do you think it will be possible to override scrollbar colours at some point?

@sdottaka
Copy link
Member Author

I think it's possible to make scrollbars color changeable, but it would require more work than other UI elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants