mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #97] [MERGED] Fixed issue with wrong text color on selected menu item (Win11) #150
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#150
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/97
Author: @klugier
Created: 9/21/2022
Status: ✅ Merged
Merged: 9/22/2022
Merged by: @mirek-fidler
Base:
master← Head:klugier/win11-menu-tem-color-fix📝 Commits (1)
1a3078eFixed issue with wrong text color on selected menu item.📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
uppsrc/CtrlLib/ChWin32.cpp(+3 -2)📄 Description
Windows 11 default them treats MENU_BARITEM and MENU_POPUPITEM differently. In the current CtrlLib implementation we always read value from the first thing, which is not always accurate and cause issue like invisible text in selected items in menubar. It can be improved by chaining code responsible for reading system theme.
Without fix (Win11):

After fix (Win11):

Mirek, if you will be merging this please verify on Windows 10. I think everything should be fine, but it is definitely worth checking. Thanks!
For comparison reason, this is screenshot from the desktop menubar:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.