# How to modify Slicer's style

**URL:** <https://discourse.slicer.org/t/how-to-modify-slicers-style/25300>\
**Category:** Development\
**Created:** [September 16, 2022, 8:39am UTC](https://discourse.slicer.org/t/how-to-modify-slicers-style/25300 "2022-09-16T08:39:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![miniminic](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miniminic/32/16647_2.png) [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Post date:** [September 16, 2022, 8:39am UTC](https://discourse.slicer.org/t/how-to-modify-slicers-style/25300/1 "2022-09-16T08:39:11Z")

</div>

I want to change the style of the whole Slice person, I guess Slicer should have a QSS file, or change the style in a unified place

---

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [September 16, 2022, 4:07pm UTC](https://discourse.slicer.org/t/how-to-modify-slicers-style/25300/2 "2022-09-16T16:07:38Z")

</div>

While Slicer does not currently use QSS for styling (QStyles are used), you can still apply stylesheets to the slicer app through Python.

> [@New Developer Feature - StyleTester](https://discourse.slicer.org/t/new-developer-feature-styletester/15509):
>
> We’ve added a new utility module to the SlicerSandbox extension, [StyleTester](https://github.com/PerkLab/SlicerSandbox/tree/master/StyleTester). StyleTester allows you to test modifying the appearance of the Slicer GUI using [Qt Style Sheets](https://doc.qt.io/qt-5/stylesheet.html). Qt Style Sheets provide an very powerful method for customizing every aspect of the appearance of a Qt-based application like Slicer. QSS code can be entered into the editor, or loaded from / saved to .qss files. The module provides a set of example widgets that can be used to view effects of stylesheets on the most wi…

> <https://github.com/PerkLab/SlicerSandbox/blob/0039772ccfff02dd59bf376d463094d480992fcb/StyleTester/StyleTester.py#L123>

---

<div class="post-metadata">

**Author:** ![miniminic](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/miniminic/32/16647_2.png) [@miniminic](https://discourse.slicer.org/u/miniminic)\
**Post date:** [September 17, 2022, 6:15am UTC](https://discourse.slicer.org/t/how-to-modify-slicers-style/25300/3 "2022-09-17T06:15:01Z")

</div>

But after you restart the program, the style goes back to the default
