Description
Description
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | • aguilera | T24175 Fix GUI issues due to dark theme | ||
Resolved | kislinsk | T23593 Segmentation tool button font color is black with dark theme |
Event Timeline
Comment Actions
This issue isn't restricted to the Segmentation tool but seems to regard all disabled elements in other tools as well.
When checking the darkstyle.qss file it can be noted that all disabled elements get attributed a blackish color as seen for QWidget as example here:
To change the color of disabled text this stylesheet is most likely the place to modify although I couldn't figure out right away which classes are affected. Maybe someone with deepler knowledge can help out. I'll take a close look on Community Day
This seems to be a stylesheet setting regarding disabled elements.
If an image is chosen and the buttons get enabled they change to the right color as seen here:
This issue isn't restricted to the Segmentation tool but seems to regard all disabled elements in other tools as well.
When checking the darkstyle.qss file it can be noted that all disabled elements get attributed a blackish color as seen for QWidget as example here:
To change the color of disabled text this stylesheet is most likely the place to modify although I couldn't figure out right away which classes are affected. Maybe someone with deepler knowledge can help out. I'll take a close look on Community Day
Comment Actions
Note that the color chosen is merely an example. Someone with a bit more understanding of design should decide for the final hex value to be used.
The text color is indeed driven by the QWidget lines shown above.
Changing it could look like this:
Note that the color chosen is merely an example. Someone with a bit more understanding of design should decide for the final hex value to be used.
Comment Actions
Concluding my findings:
Colors are defined in ...\mitk\Plugins\org.blueberry.ui.qt\resources\darkstyle.qss
- (l. 337) Change the text color for disabled widgets as shown above
QWidget:disabled { color: #newValue; background-color: #323231; }
- (l.710) To change the color (background and text) of disabled push buttons which currently are black and thus hard to read
QPushButton:disabled { background-color: #newValue; color: #newValue; }
- (l. 375) Change the color of GroupBox borders to make them visible again (as mentioned T23852)
QGroupBox { border:1px solid #newValue; border-radius: 0px; padding-top: 24px; font-weight: bold; }