[PR #97] [MERGED] Fixed issue with wrong text color on selected menu item (Win11) #150

Closed
opened 2026-05-05 03:41:39 -06:00 by gitea-mirror · 0 comments
Owner

📋 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: masterHead: klugier/win11-menu-tem-color-fix


📝 Commits (1)

  • 1a3078e Fixed 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):
MenuBarWrongColorWin11

After fix (Win11):
MenuBarFix

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:
MenuBarDesktop


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

## 📋 Pull Request Information **Original PR:** https://github.com/ultimatepp/ultimatepp/pull/97 **Author:** [@klugier](https://github.com/klugier) **Created:** 9/21/2022 **Status:** ✅ Merged **Merged:** 9/22/2022 **Merged by:** [@mirek-fidler](https://github.com/mirek-fidler) **Base:** `master` ← **Head:** `klugier/win11-menu-tem-color-fix` --- ### 📝 Commits (1) - [`1a3078e`](https://github.com/ultimatepp/ultimatepp/commit/1a3078e6bbfa09d2a1dd29f93a44d456164bece7) Fixed issue with wrong text color on selected menu item. ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `uppsrc/CtrlLib/ChWin32.cpp` (+3 -2) </details> ### 📄 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): ![MenuBarWrongColorWin11](https://user-images.githubusercontent.com/6963025/191622693-32325d78-46a0-4f9d-9872-ff63f8c9a0f4.png) After fix (Win11): ![MenuBarFix](https://user-images.githubusercontent.com/6963025/191622287-bfd63614-9f72-493e-b7e5-06808bcea638.png) 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: ![MenuBarDesktop](https://user-images.githubusercontent.com/6963025/191849506-9622c826-3047-4b2f-98bd-18768e89a2a1.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:41:39 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#150
No description provided.