There were a couple previous threads about this but I found them to be vague and confusing. Hoping to demystify the solution.
I want to change the color of the horizontal and vertical scroll bars for the canvas area. I use them often enough but the contrast between the little bars and the background makes them difficult to see. There is a way to change the color of those little blocks but the explanation previously given confused me.
Is there anyone that can describe the process in layman’s terms. I have programming experience but that’s from a long time ago lolol. I should be able to understand technical jargon but a step-by-step explanation would make things a lot clearer I think. Thanks in advance!
You can test with this code in Tools->Scripts->Scripter:
from krita import *
stylesheet = \
"""
QScrollBar {
background: #00ff00;
}
QScrollBar::handle {
background: #0000ff;
}
"""
qApp.setStyleSheet(stylesheet)
It should make all of Krita’s scrollbars’ backgrounds green, and handles blue.
Note that according to Qt’s docs, all properties must be set, so you can’t only have the “handle” part or it won’t work. See Qt Style Sheets Examples | Qt Widgets 5.15.16 for more info and examples.
You can tweak the colors, then save the style sheet as a text file and use my Style Sheet Loader Extension to have it load automatically on startup.
Ahh perfect ok I see it working. I’ll play around with the color settings.
Thanks so much!