Narrow scrollbars in KiCad on Linux/KDE

Hello. I have large 4K display. I had to scale icons in Preferences first. But what still annoys me is narrow scrollbars.

Had similar problem with other applications, e.g. Gwenview. Solved by modifying
.config/gtk-3.0/gtk.css.
But it has no effect on width of scrollbars in KiCad.

Tried googling around already. No luck :roll_eyes:

KiCad uses gtk2. If you find corresponding config it might work.

Hello, thanks for poiting out that KiCad uses gtk2.

So I just wrote this in ~/.config/gtk-2.0/gtkrc and in ~/.config/gtkrc:

style “myscrollbar”
{
GtkScrollbar::slider-width=40
}
class “GtkScrollbar” style “myscrollbar”

restarted PC and same problem…though it helped few people with GTK-2 apps. Not this case :neutral_face:

SOLVED !

I tried running kicad binary with the use of strace tool to obtain list of gtk2 configuration files that it attempts to read.

strace -o trace ./kicad

found out that ~/.config/gtk-2.0/gtkrc and ~/.config/gtkrc are not opened at all,
but figured out that I need to put it in file named ~/.config/gtkrc-2.0. gtkrc-2.0 is file NOT a directory.

KiCad is now usable on my large 4K display, large icons, wide scrollbar. Nice.

Hope this helps someone else, too !

4 Likes

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