Welp. I managed to make the scrollbar handle more distinctive, but my test.qss does
work only when setting Calibre User interface style to System Default, in Look and Feel preferences.
That white on green handle was achieved using
this qss styling. (corresponding attached file: test1.qss)
Then, after seeing
this thread, I merged the previous scrollbar styling with the
custom dark theme mentioned.
That's almost exactly what I needed to achieve, but some elements in this custom dark theme, like padding and border sizes don't fit Calibre UI as perfectly as the built-in dark color palette. (corresponding attached file: test.qss)
If I set Calibre Interface settings in Look and feel to "calibre style", the external qss gets overriden. So I end up in the same situation as before, as seen above. :\
Notes on what I had to to, running Calibre from source:
- location of qss file: one level above the /src directory
- code placement in gui2/__init__.py:
Code:
def __init__(self, args=(), force_calibre_style=False, override_program_name=None, headless=False, color_prefs=gprefs, windows_app_uid=None):
if not args:
args = sys.argv[:1]
args += ['-stylesheet', 'test.qss']
I also looked in palette.py to see if I could make Calibre not override my qss file when using the built-in dark theme, so that I could get the result seen in the second pic but wasn't able to figure that out.