# Plugin: Style Sheet Loader Extension

**URL:** <https://krita-artists.org/t/plugin-style-sheet-loader-extension/62955>\
**Category:** Plugins and Scripts\
**Created:** [April 15, 2023, 4:30am UTC](https://krita-artists.org/t/plugin-style-sheet-loader-extension/62955 "2023-04-15T04:30:55Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![Kracov](https://krita-artists.org/user_avatar/krita-artists.org/kracov/32/21091_2.png) [@Kracov](https://krita-artists.org/u/Kracov)\
**Post date:** [January 31, 2025, 3:04pm UTC](https://krita-artists.org/t/plugin-style-sheet-loader-extension/62955/30 "2025-01-31T15:04:54Z")

</div>

Okay here is the code. This is how to change the color of the scrollbars of the canvas. I found if from here: [Changing the color of scroll bars - #2 by freyalupen](https://krita-artists.org/t/changing-the-color-of-scroll-bars/89060/2)  
They don’t specify a format to save it as. Besides, the Scripter only lets you save the file as a .py python script. I guess I could PM that person how they managed to get Stylesheet loader to load a .py script which seems impossible at the moment.

```auto
from krita import *

stylesheet = \
"""
QScrollBar {
    background: #00ff00;
}
QScrollBar::handle {
    background: #0000ff;
}
"""

qApp.setStyleSheet(stylesheet)

```

---

_[View the full topic](https://krita-artists.org/t/plugin-style-sheet-loader-extension/62955)._
