# Selection boxes in save dialog box is invisible in Dark mode

**URL:** <https://discourse.slicer.org/t/selection-boxes-in-save-dialog-box-is-invisible-in-dark-mode/13442>\
**Category:** Support\
**Created:** [September 11, 2020, 3:15pm UTC](https://discourse.slicer.org/t/selection-boxes-in-save-dialog-box-is-invisible-in-dark-mode/13442 "2020-09-11T15:15:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 11, 2020, 3:15pm UTC](https://discourse.slicer.org/t/selection-boxes-in-save-dialog-box-is-invisible-in-dark-mode/13442/1 "2020-09-11T15:15:51Z")

</div>

Is this the contrast on my screen, or others have the same issue? Selection boxes are not visible. People who don’t know that they are there will probably miss them. (also this is from a 4K screen. I think the gray edge is too thin. I can actually see the faint trace of it the attached screen capture, but not during in the application).

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/9/195f04a464d9b9c8f811d28a63b8e73928b9d202.png)

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [September 11, 2020, 7:14pm UTC](https://discourse.slicer.org/t/selection-boxes-in-save-dialog-box-is-invisible-in-dark-mode/13442/2 "2020-09-11T19:14:19Z")

</div>

It appears in light mode that border of the checkbox is #c8c8c8 and based on the values specified for Dark Mode, this color appears to be defined by `QPalette::Mid` (see [here](https://github.com/Slicer/Slicer/blob/c565268cf68c09b54e0e65fbfed5bd5faa404401/Base/QTGUI/qSlicerStyle.cxx#L228-L232)). Oddly in the Slicer light style these are the same value when they shouldn’t be. Read about QPalette [ColorRoles](https://doc.qt.io/qt-5/qpalette.html#ColorRole-enum).

It is harder to see in dark mode because `QPalette::Mid` is closer to `QPalette::Base`(the filled color), than it is in light mode. This is a weird case of a widget (QCheckbox) that is using the color of `QPalette::Base` even though it is within another widget (QTableWidget) which also uses `QPalette::Base` by default for its contents. Setting it to use the `QPalette::AlternateBase` could potentially work assuming that this widget continues to not use alternatingRowColors.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [September 14, 2020, 1:18am UTC](https://discourse.slicer.org/t/selection-boxes-in-save-dialog-box-is-invisible-in-dark-mode/13442/3 "2020-09-14T01:18:51Z")

</div>

Tracking this issue now at [https://github.com/Slicer/Slicer/issues/5185](https://github.com/Slicer/Slicer/issues/5185)
