fix: combobox labels unreadable in dark mode in Create Filament Preset dialog - #10827
fix: combobox labels unreadable in dark mode in Create Filament Preset dialog#10827BenJule wants to merge 1 commit into
Conversation
3dbeb00 to
43a1e7c
Compare
|
Apologies — this PR was closed by mistake on 2026-06-07, and that was an error on my side, not a deliberate decision to withdraw the change. It happened as an unintended side effect of a branch cleanup in my fork: deleting the head branch automatically closed this PR. The contribution still stands. I have restored the branch and reopened the PR. Sorry for the noise and any confusion this caused. |
|
Hi @BenJule Thanks for your contributing, however we can't reproduce the dark mode issue mentioned by some users and we will wait for the response for some time. During the time we will not merge this PR. |
|
Sure - here are exact repro steps so you can reproduce the dark-mode case:
Root cause: those comboboxes get the default (light-theme) text color instead of the dark-mode foreground, so on the dark dialog background the contrast is near zero. The PR sets the proper foreground color for them. Happy to add a screenshot if a maintainer dark-mode build is handy - I don't have a GUI build environment here, so I traced it in code rather than capturing it. |
|
@lanewei120 LGTM |
|
could you remove the modification on .github/workflows/build_all.yml? |
…t dialog (bambulab#8949) Labels were set with SetLabelColor(*wxBLACK), which uses a custom StateColor path that bypasses the SetForegroundColour mechanism UpdateDlgDarkUI relies on for color remapping. Replace all ten occurrences with SetLabelColor(wxGetApp().get_label_clr_default()) which returns the correct foreground color for the active theme. Closes bambulab#8949
43a1e7c to
f7a47de
Compare
|
@lanewei120 Done, thanks. I removed the |
Summary
In the "Create / Edit Filament Preset" dialog, all combobox labels were always black in dark mode, making them unreadable against the dark background.
Root cause: The labels used
SetLabelColor(*wxBLACK), which sets a customStateColorthat bypasses theSetForegroundColourmechanism.UpdateDlgDarkUIonly remaps colors set throughSetForegroundColour, so these labels were never updated when switching to dark mode.Fix: Replace all 10 occurrences of
SetLabelColor(*wxBLACK)withSetLabelColor(wxGetApp().get_label_clr_default()), which returns the correct foreground color for the currently active theme at construction time.Test plan
Closes #8949