Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for dark mode display #314

Merged
merged 3 commits into from
Aug 28, 2024
Merged

Fixes for dark mode display #314

merged 3 commits into from
Aug 28, 2024

Conversation

k-dominik
Copy link
Contributor

related to ilastik/ilastik#2898

Comes down to remove explicit background color settings, or make them palette-dependent colors.

Also removed unnecessary validation code in ValueRangeWidget (added some more tests instead ;))

Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 36.22%. Comparing base (baf0c13) to head (2818aee).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
volumina/widgets/dataExportOptionsDlg.py 0.00% 1 Missing ⚠️
volumina/widgets/valueRangeWidget.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #314      +/-   ##
==========================================
- Coverage   36.58%   36.22%   -0.36%     
==========================================
  Files         108      108              
  Lines       11489    11454      -35     
==========================================
- Hits         4203     4149      -54     
- Misses       7286     7305      +19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tests/valueRangeWidget_test.py Show resolved Hide resolved
the widgets themselves already enforce the `softlimits` via
`onChangedMaxBox` and `onChangedMinBox`. Dtype limits are already
enforced via `spinbox.setRange`.

That code also removed a line which would set the background color
explicitly - without it, it looks fine in both, light and dark mode.
plus some black autoformatting for long lines
@k-dominik k-dominik merged commit d7e1d54 into ilastik:main Aug 28, 2024
11 of 13 checks passed
@k-dominik k-dominik deleted the dark branch August 28, 2024 18:40
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