Skip to content

DarkMode (b): Fix rendering of disabled TextBox types - #13721

Merged
KlausLoeffelmann merged 4 commits into
dotnet:mainfrom
KlausLoeffelmann:DarkMode_b_FixDisabledTextBoxTypes
Jul 29, 2025
Merged

KlausLoeffelmann merged 4 commits into
dotnet:mainfrom
KlausLoeffelmann:DarkMode_b_FixDisabledTextBoxTypes

Conversation

@KlausLoeffelmann

@KlausLoeffelmann KlausLoeffelmann commented Jul 21, 2025 •

Copy link
Copy Markdown
Member

Fixes the ComboBox and RichTextBox BackColor issue in dark mode, where the background color was the same as in Classic mode (LightMode).

Note, that ComboBox internally uses depending on the ComboBox DropDownStyle different nested controls for different modes. So, practically there are inner ListBox and TextBox controls which had to be addressed:

image

Again: Tested by CTI and made sure, that the Classic mode CodePaths remain as they were.

Microsoft Reviewers: Open in CodeFlow

@github-actions github-actions Bot added the area-DarkMode Issues relating to Dark Mode feature label Jul 21, 2025
@KlausLoeffelmann
KlausLoeffelmann force-pushed the DarkMode_b_FixDisabledTextBoxTypes branch from 6821129 to ad883a7 Compare July 21, 2025 06:22
@codecov

codecov Bot commented Jul 21, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 43.13725% with 58 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.89695%. Comparing base (bca4402) to head (13733fc).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                  @@
##                main      #13721          +/-   ##
====================================================
+ Coverage   51.53965%   76.89695%   +25.35730%     
====================================================
  Files           2064        3262        +1198     
  Lines         288085      643651      +355566     
  Branches       42083       47636        +5553     
====================================================
+ Hits          148478      494948      +346470     
- Misses        136716      145040        +8324     
- Partials        2891        3663         +772     
Flag Coverage Δ
Debug 76.89695% <43.13725%> (+25.35730%) ⬆️
integration 18.99871% <30.39216%> (-0.00856%) ⬇️
production 51.57102% <43.13725%> (+0.03136%) ⬆️
test 97.42157% <ø> (?)
unit 48.97284% <38.23529%> (+0.06400%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dotnet-policy-service dotnet-policy-service Bot added the draft draft PR label Jul 21, 2025
@KlausLoeffelmann
KlausLoeffelmann force-pushed the DarkMode_b_FixDisabledTextBoxTypes branch from ad883a7 to 64fdf2b Compare July 22, 2025 00:48
@KlausLoeffelmann KlausLoeffelmann changed the title Fix ComboBox dark mode BackColor issue DarkMode (b): Fix rendering of disabled TextBox types Jul 22, 2025
@KlausLoeffelmann
KlausLoeffelmann force-pushed the DarkMode_b_FixDisabledTextBoxTypes branch from df5547b to 498ef9c Compare July 23, 2025 06:54
@KlausLoeffelmann
KlausLoeffelmann marked this pull request as ready for review July 24, 2025 06:37
@KlausLoeffelmann
KlausLoeffelmann requested a review from a team as a code owner July 24, 2025 06:37
@dotnet-policy-service dotnet-policy-service Bot removed the draft draft PR label Jul 24, 2025
@KlausLoeffelmann
KlausLoeffelmann force-pushed the DarkMode_b_FixDisabledTextBoxTypes branch from 2b7cf13 to e680441 Compare July 24, 2025 17:40
Shyam-Gupta
Shyam-Gupta previously approved these changes Jul 28, 2025

@Shyam-Gupta Shyam-Gupta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Found few nits only.

@KlausLoeffelmann
KlausLoeffelmann force-pushed the DarkMode_b_FixDisabledTextBoxTypes branch from d35855c to 13733fc Compare July 28, 2025 20:34
Shyam-Gupta
Shyam-Gupta previously approved these changes Jul 28, 2025
@KlausLoeffelmann
KlausLoeffelmann dismissed Shyam-Gupta’s stale review July 28, 2025 21:12

The merge-base changed after approval.

@KlausLoeffelmann
KlausLoeffelmann enabled auto-merge (rebase) July 28, 2025 21:12
Shyam-Gupta
Shyam-Gupta previously approved these changes Jul 28, 2025
@KlausLoeffelmann
KlausLoeffelmann dismissed Shyam-Gupta’s stale review July 28, 2025 21:40

The merge-base changed after approval.

Shyam-Gupta
Shyam-Gupta previously approved these changes Jul 28, 2025
@KlausLoeffelmann
KlausLoeffelmann dismissed Shyam-Gupta’s stale review July 28, 2025 21:59

The merge-base changed after approval.

Shyam-Gupta
Shyam-Gupta previously approved these changes Jul 28, 2025

@Shyam-Gupta Shyam-Gupta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@KlausLoeffelmann
KlausLoeffelmann dismissed Shyam-Gupta’s stale review July 28, 2025 22:10

The merge-base changed after approval.

merriemcgaw
merriemcgaw previously approved these changes Jul 29, 2025

@merriemcgaw merriemcgaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important Dark Mode fix. Well tested

@KlausLoeffelmann
KlausLoeffelmann dismissed merriemcgaw’s stale review July 29, 2025 01:08

The merge-base changed after approval.

@KlausLoeffelmann
KlausLoeffelmann changed the base branch from main to release/10.0-preview7 July 29, 2025 16:52
@KlausLoeffelmann
KlausLoeffelmann changed the base branch from release/10.0-preview7 to main July 29, 2025 16:52
@KlausLoeffelmann
KlausLoeffelmann merged commit 17c060b into dotnet:main Jul 29, 2025
@Olina-Zhang

Copy link
Copy Markdown
Member

Tested it in the .NET 10 SDK build: 10.0.100-preview.7.25380.105 for UpDown buttons, the disabled controls related TextBox types look good in DarkMode as this PR posted:
image

@Olina-Zhang Olina-Zhang added this to the 10 Preview7 milestone Jul 31, 2025
@Amy-Li03

Amy-Li03 commented Aug 1, 2025 •

Copy link
Copy Markdown
Contributor

Tested in .NET SDK 10.0.100-preview.7.25380.108 test pass build for UpDown buttons, disabled controls related TextBox types in DarkMode, they look good and results are same as above.

@Zheng-Li01

Copy link
Copy Markdown
Member

Verified issue with .NET SDK 10.0.100-rc.1.25406.102 build, the issue has been fixed that result is same as above.

@KlausLoeffelmann
KlausLoeffelmann deleted the DarkMode_b_FixDisabledTextBoxTypes branch August 13, 2025 20:17
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-DarkMode Issues relating to Dark Mode feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants