Skip to content

Readable disabled footer buttons in the Windows viewer's dark mode - #1080

Merged
SimonCropp merged 1 commit into
mainfrom
disabled-footer-buttons-dark-mode
Nov 23, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
disabled-footer-buttons-dark-mode

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

In dark mode, WinForms draws a disabled Standard button's text almost black (about 8,8,8) whatever colours the button has. On the viewer's background (24,24,24), the labels of disabled footer buttons such as "Prev change" and "Next change" could not be seen.

FooterButton leaves the border and face to WinForms, which were already right. When the button is disabled, it fills the inside with the background colour and draws the label again in Palette.Dim. Enabled buttons are unchanged.

The 16 WindowsPixelTests baselines are re-approved, since every one of them recorded the unreadable labels. The disabled labels are the only change in them.

@SimonCropp SimonCropp added this to the 21.2.1 milestone Nov 23, 2026
@SimonCropp
SimonCropp merged commit 0d882a4 into main Nov 23, 2026
16 checks passed
@SimonCropp
SimonCropp deleted the disabled-footer-buttons-dark-mode branch November 23, 2026 10:14
This was referenced Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant