# Help making a Dark Mode #2

**URL:** <https://discuss.pencil2d.org/t/help-making-a-dark-mode-2/3341>\
**Category:** Development\
**Created:** [11 January 2019 21:55 UTC](https://discuss.pencil2d.org/t/help-making-a-dark-mode-2/3341 "2019-01-11T21:55:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![velocireed](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/velocireed/32/88_2.png) [@velocireed](https://discuss.pencil2d.org/u/velocireed)\
**Post date:** [11 January 2019 21:55 UTC](https://discuss.pencil2d.org/t/help-making-a-dark-mode-2/3341/1 "2019-01-11T21:55:52Z")

</div>

So, I’ve made a “dark mode” (Only has a Windows executable as of right now), but for some reason, i am unable to change the color of the window header of the dockable widgets. Is there a way to do this? Also, is there a way to add a specific file that could change the QPalette of each dockable widget instead of changing each file individually? I would like to create a “select theme” widget to let the user select a pre-determined color theme

 ![Sketch](https://discuss.pencil2d.org/uploads/default/original/1X/fbeb8ca53848bca87d1a79cf2bb6f0881b308710.png) (Download: [https://drive.google.com/open?id=1SghFrV5iT9yapwx3DVv1kiuNZE42RaeU](https://drive.google.com/open?id=1SghFrV5iT9yapwx3DVv1kiuNZE42RaeU))

---

<div class="post-metadata">

**Author:** ![JoseMoreno](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/josemoreno/32/7_2.png) [@JoseMoreno](https://discuss.pencil2d.org/u/JoseMoreno)\
**Post date:** [11 January 2019 22:02 UTC](https://discuss.pencil2d.org/t/help-making-a-dark-mode-2/3341/2 "2019-01-11T22:02:26Z")

</div>

@velocireed This is a long standing issue. apparently there’s no easy way to have a functional dark mode for windows please see this issue to learn more about it: [https://github.com/pencil2d/pencil/issues/550](https://github.com/pencil2d/pencil/issues/550)

---

<div class="post-metadata">

**Author:** ![velocireed](https://discuss.pencil2d.org/user_avatar/discuss.pencil2d.org/velocireed/32/88_2.png) [@velocireed](https://discuss.pencil2d.org/u/velocireed)\
**Post date:** [11 January 2019 22:04 UTC](https://discuss.pencil2d.org/t/help-making-a-dark-mode-2/3341/3 "2019-01-11T22:04:54Z")

</div>

Ah. I see. Well, thanks anyways

---

<div class="post-metadata">

**Author:** ![scribblemaniac](https://discuss.pencil2d.org/letter_avatar_proxy/v4/letter/s/e5b9ba/32.png) [@scribblemaniac](https://discuss.pencil2d.org/u/scribblemaniac)\
**Post date:** [11 January 2019 22:53 UTC](https://discuss.pencil2d.org/t/help-making-a-dark-mode-2/3341/4 "2019-01-11T22:53:43Z")

</div>

@velocireed You should be using `QApplication::setPalette` rather than setting each widget individually. To change the headers you’ve circled, you can use the `QDockWidget::title` CSS selector, see the changes we made to basedockwidget.cpp [here](https://github.com/pencil2d/pencil/pull/1137/files#diff-7492f4200e327843f373f165e09a4b68). Also Windows 10 does appear to have some darkmode support, so you should try using that first: [https://www.cnet.com/how-to/how-to-enable-dark-mode-in-windows-10/](https://www.cnet.com/how-to/how-to-enable-dark-mode-in-windows-10/).
