Bug 482272

Summary: Scrollbar style in Chromium and Chromium-derived apps/web views should be re-styled to match default Breeze scrollbar styling
Product: [Plasma] Breeze Reporter: Shubham Arora <shubhamarora>
Component: gtk themeAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: agrinev98, eifr0980, nate, uhhadd
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: scrollbar style issue

Description Shubham Arora 2024-03-03 06:25:01 UTC
Created attachment 166331 [details]
scrollbar style issue

SUMMARY
Scrollbar style doesn't match plasma default styling

STEPS TO REPRODUCE
1. Add web browser applet to desktop

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.7.0
Kernel Version: 6.7.4-arch1-1.1-g14 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800HS with Radeon Graphics
Memory: 14.9 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Flow X13 GV301RA
System Version: 1.0
Comment 1 Nate Graham 2024-03-05 17:18:23 UTC
I think this is because it's using the scrollbars provided by QTWebEngine, which is itself just Chromium, and those are the default Chromium scrollbars. You can also see the same styling in the Chromium app itself.

I guess we need for Breeze-GTK to re-style the Chromium scrollbars.
Comment 2 Artem Grinev 2024-03-05 17:44:14 UTC
(In reply to Nate Graham from comment #1)
> I think this is because it's using the scrollbars provided by QTWebEngine,
> which is itself just Chromium, and those are the default Chromium
> scrollbars. You can also see the same styling in the Chromium app itself.
> 
> I guess we need for Breeze-GTK to re-style the Chromium scrollbars.

I doubt Chromium scrollbars are customizable via GTK theming.
Comment 3 Nate Graham 2024-03-06 15:13:33 UTC
Then there's nothing we can do here. :(
Comment 4 Shubham Arora 2024-03-06 15:24:41 UTC
Can we inject custom css for scrollbar styling? Chromium supports this in css.
https://developer.chrome.com/docs/css-ui/scrollbar-styling
Comment 5 Nate Graham 2024-03-06 17:46:22 UTC
Interesting. Maybe doable in breeze-gtk after all which can apply custom CSS.