KitwareMedical / KitwareMedical/SlicerCustomAppTemplate

Dark palette does not propagate on its own

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
71
Forks
32
PR merge metrics
No merged PRs in 30d

Description

The following call is required to address the issue depicted in the table below:

```python
self.uiWidget.setPalette(slicer.util.mainWindow().style().standardPalette())
```

| Without | With |
|---|--|
| ![image](https://github.com/user-attachments/assets/1b33ed4e-035e-4686-94bb-1d5dea93275d) | ![image](https://github.com/user-attachments/assets/e4b07e02-06b7-4c30-aa2e-cb1709922b8f) |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the custom application UI code that creates self.uiWidget and inspect how its palette is initialized. Reproduce the dark-palette behavior described in the issue, then verify that the widget adopts the application's standard palette without requiring the shown manual call.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.