Change scroll bar color

Hello there!
Okular pdf viewer’s scrollbar slider is invisible. On hovering the mouse above it, the contrast barely changes.
Is there a way to change the scrollbar color to something more visible?
This probably isn’t exclusive to Okular, but to KDE apps, but I experienced the issue in Okular.
I have the default ‘Dr460nized’ KDE theme.

Video: Imgur: The magic of the Internet

Screenshots:
scrollbar_invisible1
scrollbar_invisible2

garuda-inxi:

System:
  Kernel: 6.5.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc available: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=aeb3c7e0-45af-4344-ba3f-05339ad86d76 rw rootflags=subvol=@
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off
  Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.10 info: latte-dock
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Gigabyte model: B550M DS3H AC v: x.x
    serial: <superuser required> UEFI: American Megatrends LLC. v: F15
    date: 07/29/2022
CPU:
  Info: model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 3713 high: 3800 min/max: 2200/4850 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 3663 2: 3800
    3: 3800 4: 3800 5: 3601 6: 3593 7: 3800 8: 3800 9: 3627 10: 3800 11: 3619
    12: 3800 13: 3800 14: 3632 15: 3665 16: 3618 bogomips: 121375
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1650 SUPER] vendor: ASUSTeK
    driver: nvidia v: 535.113.01 alternate: nouveau,nvidia_drm non-free: 535.xx+
    status: current (as of 2023-09) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 06:00.0 chip-ID: 10de:2187 class-ID: 0300
  Device-2: Lenovo FHD Webcam driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-3:3 chip-ID: 17ef:4831
    class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.2.1
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 80 s-size: 1219x343mm (47.99x13.50")
    s-diag: 1266mm (49.86")
  Monitor-1: DP-0 pos: primary,left res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
  Monitor-2: DVI-D-0 pos: right res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.54x13.23") diag: 686mm (27.01") modes: N/A
  Monitor-3: HDMI-0 size-res: N/A modes: N/A
  API: EGL v: 1.5 hw: drv: nvidia platforms: gbm: drv: nvidia
  API: OpenGL v: 4.6.0 vendor: nvidia v: 535.113.01 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce GTX 1650 SUPER/PCIe/SSE2
    memory: 3.91 GiB
  API: Vulkan v: 1.3.204 layers: 20 device: 0 type: discrete-gpu name: NVIDIA
    GeForce GTX 1650 SUPER driver: nvidia v: 535.113.01 device-ID: 10de:2187
    surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe (LLVM 16.0.6 256
    bits) driver: mesa llvmpipe v: 23.1.8-arch1.1 (LLVM 16.0.6)
    device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 06:00.1 chip-ID: 10de:1aeb class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 08:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Lenovo FHD Webcam driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-3:3 chip-ID: 17ef:4831
    class-ID: 0102 serial: <filter>
  API: ALSA v: k6.5.5-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.80 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0
    chip-ID: 8086:24fb class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Gigabyte driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 05:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-9:5 chip-ID: 8087:0aa7
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 4.2
    lmp-v: 8 status: discoverable: no pairing: no class-ID: 7c0104
Drives:
  Local Storage: total: 476.94 GiB used: 321.51 GiB (67.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Intel model: SSDPEKNW512G8
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 002C temp: 38.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 321.51 GiB (67.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 321.51 GiB (67.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 321.51 GiB (67.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 321.51 GiB (67.5%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 15.52 GiB used: 5.5 GiB (35.5%)
    priority: 100 comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 62.5 C mobo: 32.0 C gpu: nvidia temp: 41 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 27%
Info:
  Processes: 394 Uptime: 8d 9h 48m wakeups: 0 Memory: total: 16 GiB
  available: 15.52 GiB used: 7.3 GiB (47.0%) Init: systemd v: 254
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 16.0.6
  Packages: 2371 pm: nix-default pkgs: 0 pm: nix-sys pkgs: 0 pm: nix-usr
  pkgs: 0 pm: pacman pkgs: 2370 libs: 499
  tools: gnome-software,octopi,pamac,paru,yay pm: flatpak pkgs: 1 Shell: Zsh
  v: 5.9 running-in: dolphin inxi: 3.3.30
Garuda (2.6.16-1):
  System install date:     2022-01-29
  Last full system update: 2023-09-30
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio nvidia-dkms
  Windows dual boot:       No/Undetected
  Failed units:            

Thanks for the help!

This is probably related to Dark Themes.
You can try a Light Plasma Theme and see if it helps, normally the bar should either remain the same color (gray is seems) or be even darker.

However changing ONLY the scroll bar, that might require some skills.
However again, with Plasma 6 around Feb 2024 it will be possible to use Accent Colors and I think it affects the color of scroll bars too. Actually I can’t remember if Accent Coloring is already available in Plasma 5 but I know there will be important features released for that with Plasma 6.

Dark theme forever, baby :sunglasses:

I did find this but it doesn’t seem to affect the scrollbar.
I found an alternative fix is to darken the view/window background in Settings>Appearance>Global Theme>Colors>Sweet

Anyways, thanks for the help @FGD !

1 Like

You bet! :fire:

So it seems Accent Colors, at least now, don’t affect scrollbar, yes, glad you found a workaround!

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