Canvas Scroll Bars Contrast

Is there a way to increase the contrast for the slider on the canvas scroll bars? I’ve tried all the themes and still have a problem seeing the sliders on the bars. I’m running Krita on Linux Mint 21 Cinnamon. Thanks.

Hello @thumper33 and welcome to the forum :slight_smile:

I believe that it isn’t possible and this has been asked before.
If I remember correctly, it’s built into the Qt library and not the sort of thing that can be changed.

Try going to scripter and typing this

from krita import *

qwin = Krita.instance().activeWindow().qwindow()
qwin.setStyleSheet('''
QScrollBar {
    background: #000000;
    border: 100px solid #FF0000;
}
''')

If that works for you, you can package it into a plugin(automated way) or put it on a shortcut via ten scripts to use once every time you launch(manual way)

2 Likes

This works! Thank you so much.

There’s a plugin to load stylesheets (that have been saved into a file) on startup: Plugin: Style Sheet Loader Extension

2 Likes

This script works from the scripting window and with the ‘ten scripts’ feature, but when I create a plugin named scrollfix in the pykrita directory and then try to access it from the Python Plugin Manager, the script name is ghosted and hovering over it returns the following problem with line 3 of the script. “AttributeError ‘NoneType’ object has no attribute ‘qwindow’ Could not import scrollfix. Module not loaded”.

I’m new to krita plugins, but I think I created the appropriate folder and files in the pykrita directry as krita is finding the script on startup. Is there a fix? Thanks for your help.

You are probably loading it in init before the window is loaded, try this instead then which would change all windows, not just the main one if you want to do it from init:

from krita import *

qApp.setStyleSheet('''
QScrollBar {
    background: #000000;
    border: 100px solid #FF0000;
}
''')

Perfect! It works great. I can even adjust the hex colors to get the exact look I want. Thanks.

I had the same problem when I first started using Krita. I settled on a different theme that improved the situation but still not perfect. Being able to (easily) change the colors of those sliders would be a welcome improvement. Especially for those of us with limited programming skills lol I’m talking about “all” the sliders including the dockers

What I posted changes the scrollbars of everything, including the dockers

If you don’t have the programming skills, one can just use a plugin that someone else already made, freyalupen for example suggested one that lets you load up stylesheets and just add:

QScrollBar {
    background: #000000;
    border: 100px solid #FF0000;
}

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.