# Automatic dark mode on Mac in recent Slicer Preview releases

**URL:** <https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077>\
**Category:** Support\
**Tags:** feature\
**Created:** [June 17, 2020, 7:06pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077 "2020-06-17T19:06:46Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [June 17, 2020, 7:06pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/1 "2020-06-17T19:06:46Z")

</div>

I’m having some issues with the view properties in today’s Mac preview version 29150. The background and some of the text are dark (see below) with the default Slicer appearance settings. I can fix it by toggling between Slicer and Dark Slicer, but it reverts each time the application is opened.

My OS is Catalina, 10.15.5

The extensions are also not loading in the extension manager, but it from [this thread](https://discourse.slicer.org/t/extension-manager-problems/11946) it sounds I may need to wait a few hours?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/6/3633a7d86438b02189f24208dd49ee7738fce88e.jpeg)

---

<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:** [June 17, 2020, 9:15pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/2 "2020-06-17T21:15:04Z")

</div>

Interesting that the text “Slicer” in the Style combobox is dark and the “Welcome to Slicer” module text in that combobox is dark as well.

This behavior is working correctly when I toggle between style on Windows and is correct on startup of Slicer as well. There has been some weird things as related to switching style for the DICOM database widget as described [here](https://github.com/Slicer/Slicer/issues/4803#issuecomment-644255623). Maybe there are some additional issues caused by CTK widgets that are messing up how the palette gets propagated down.

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

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [June 17, 2020, 9:38pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/3 "2020-06-17T21:38:24Z")

</div>

Yes, the palette on opening is not the same as the dark Slicer style. If I change the style to dark Slicer the text shows up white as usual. Toggling one more time back to the default Slicer style will revert back to white background/dark text, but I have to do this every time I launch.

---

<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:** [June 17, 2020, 9:54pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/4 "2020-06-17T21:54:10Z")

</div>

Got it. So only on start of Slicer with Dark Slicer specified will it have incorrect text color in some widgets on macOS.

From your screenshot the style is showing as “Slicer” in the combobox, but the palette is dark. Is this dark mode being controlled by macOS? Or is this an error on start where it is setting the “Dark Slicer” style, but showing the incorrect selection in the settings entry as “Slicer” instead of “Dark Slicer”? Are there any issues in the log?

---

<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:** [June 17, 2020, 9:56pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/5 "2020-06-17T21:56:42Z")

</div>

I noticed from my own screenshot that upon changing to “Dark Slicer” the link text in the Feedback section of the Welcome module is incorrect, but upon collapsing/uncollapsing it is then correct. So maybe just an issue with the widget not updating.

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [June 17, 2020, 10:00pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/6 "2020-06-17T22:00:50Z")

</div>

It’s the default Slicer style in my screenshot, showing up with dark background and dark text. There’s no settings on my Mac that would effect this. I don’t usually use dark slicer.

So every time I launch with the default Slicer style (not dark Slicer) I am getting dark background/dark text.

---

<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:** [June 17, 2020, 10:05pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/7 "2020-06-17T22:05:24Z")

</div>

> [@smrolfe](#):
>
> So every time I launch with the default Slicer style (not dark Slicer) I am getting dark background/dark text.

And this is a new thing that “Slicer” style shows Dark background? Did it previously look like the following with the regular “Slicer” style with the light color?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/4/3471f603f5039afeb517fd048ea6a4652ab2df5c.png)

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [June 17, 2020, 10:08pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/8 "2020-06-17T22:08:43Z")

</div>

Yes, that’s correct. I noticed the dark background/dark text in yesterday’s release for the first time.

---

<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:** [June 18, 2020, 7:21pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/9 "2020-06-18T19:21:48Z")

</div>

I think this corresponds with the macOS factory build using the latest Qt 5.15 version which was built using the macOS 10.14 SDK which brought support for macOS dark mode. @smrolfe Do you have Dark Mode turned on for macOS? If you switch to the light mode in macOS and then launch Slicer with the “Slicer” style is it light again and will toggle just the application dark when switching to “Dark Slicer” style?

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [June 18, 2020, 9:13pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/10 "2020-06-18T21:13:03Z")

</div>

Thanks, I did have dark mode turned on for the macOS and the problem resolved when I switched the OS back to light mode. It does look like the issue is tied to that build, if I launch a preview version from 6/6 and the one from today, you can see the difference (both with MacOS in dark mode).

Is it possible to switch to the dark Slicer style when the MacOS set to dark mode? Or alternatively, allow the the Slicer/Dark Slicer setting to override the OS setting? This seems possible within one session, but doesn’t persist.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/6/668fa2813e8db0e93ca7324ab7aadde7c0e1c378.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:** [June 18, 2020, 9:57pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/11 "2020-06-18T21:57:37Z")

</div>

I think we should let macOS handle the light/dark mode transition and make the Slicer style setting option only available for the other platforms that don’t have system wide controlled dark mode.

From your screenshots of the macOS controlled look, the colors are all a little bit darker than what was defined in “Dark Slicer”. I should probably make it so that on Windows the dark mode looks like what is done automatically on macOS when in dark mode.

---

<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:** [June 18, 2020, 11:18pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/12 "2020-06-18T23:18:41Z")

</div>

@smrolfe Could you start Slicer and get screenshots using the “Slicer” style with the macOS dark mode enabled for the “Models” and “Segment Editor” module? There are some additional colors that those screenshots would have to make the “Dark Slicer” match more closely.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 19, 2020, 12:04am UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/13 "2020-06-19T00:04:25Z")

</div>

These all seem to be standard Qt behavior now. The switch is still manual on Windows, and probably on Linux, too.

We are in quite good shape, we just have to figure out why a few windows and colors are not right, and find a way to make our icons look better in dark mode (and today’s screen resolutions).

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [June 23, 2020, 5:29pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/14 "2020-06-23T17:29:36Z")

</div>

Sorry for the delayed response @jamesobutler. I’m attaching the “Models” and “Segment Editor” screenshots. These were taken with macOS in dark mode and “Slicer” style.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/2/e268ce3d554458b7ff138d5bcac3ef95c518d1bf.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/5/d5f697c570aa6572cfe36ac7186bba1dab979d86.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [August 20, 2020, 8:30pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/15 "2020-08-20T20:30:55Z")

</div>

Thanks to a lot of work by @jamesobutler, we have now fixed all the known issues (except a few that are entered into the issue tracker). Please enter new bug reports in the issue tracker.

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [August 21, 2020, 4:28pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/16 "2020-08-21T16:28:35Z")

</div>

Thanks @jamesobutler and @lassoan, this looks great on my machine. I really like the option for Slicer Light!

---

<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:** [August 21, 2020, 4:36pm UTC](https://discourse.slicer.org/t/automatic-dark-mode-on-mac-in-recent-slicer-preview-releases/12077/17 "2020-08-21T16:36:52Z")

</div>

The palette for Slicer light has been the standard view on Windows forever while macOS always had something slightly different. I’m glad you’re able to enjoy this same experience now.

As it relates to switching between styles, macOS probably still has some issues so providing issue reports will be helpful for improving it on that platform.
