Skip to content

BF: Fixed param control text color selection when using system dark theme#7457

Merged
TEParsons merged 4 commits intopsychopy:releasefrom
mdcutone:release-bf-ui-text-colors-darkmode
Nov 7, 2025
Merged

BF: Fixed param control text color selection when using system dark theme#7457
TEParsons merged 4 commits intopsychopy:releasefrom
mdcutone:release-bf-ui-text-colors-darkmode

Conversation

@mdcutone
Copy link
Copy Markdown
Member

Adds system wide UI theming detection (whether we're using light/dark mode) to ensure parameter text remains legible in either setting.

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 52.63158% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.01%. Comparing base (23bcea9) to head (d0f5c3b).
⚠️ Report is 7 commits behind head on release.

Additional details and impacted files
@@           Coverage Diff            @@
##           release    #7457   +/-   ##
========================================
  Coverage    49.01%   49.01%           
========================================
  Files          352      352           
  Lines        64514    64530   +16     
========================================
+ Hits         31622    31631    +9     
- Misses       32892    32899    +7     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)
🚀 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.

@TEParsons TEParsons self-requested a review November 5, 2025 13:56
emptyNamespace = NameSpace(experiment.Experiment())

# get if dark theme
_appearanceSettings = wx.SystemSettings.GetAppearance()
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.

This seems to be breaking the test suite as it's querying wx before there's an app. I think it would make sense to move this code to a function (getDarkMode?) somewhere in utils, then import and call it when needed (e.g. in styleValid below)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Addressed this by using the dark mode flag in the app's main instance

@TEParsons TEParsons self-requested a review November 7, 2025 09:58
@TEParsons TEParsons merged commit 5789ebd into psychopy:release Nov 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants