lepoco / lepoco/wpfui

[Bug] After 4.2.1, ui:Button foreground error on pressed

Open
#1,722 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

After v4.2.1, ui:Button foreground error on pressed.

To Reproduce
<ui:Button Margin="8,0,0,0" Content="Not good" />
<Button Margin="8,0,0,0" Content="OK" />
Expected behavior

ui:Button foreground should remain white when pressed in dark mode.

Screenshots

Normal:
Image

Pressed:
Image

OS version

win11

.NET version

net10.0-windows

WPF-UI NuGet version

4.2.1, 4.3.0

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ui:Button example in a WPF application on Windows 11 with dark mode enabled, comparing versions 4.2.1 and 4.3.0. Trace the button's pressed-state appearance and verify that its foreground remains white when pressed, matching the expected behavior against the native Button.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.