Bug 459445

Summary: When a Listview or Treeview has checkboxes, unchecked checkboxes are invisible when their row is selected and all checkboxes have sharp corners
Product: [Plasma] Breeze Reporter: Patrick Silva <bugseforuns>
Component: gtk themeAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: major CC: agrinev98, nate, realkpavel, uhhadd
Priority: NOR Keywords: usability
Version First Reported In: 6.1.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Breeze gtk theme
Adwaita gtk theme

Description Patrick Silva 2022-09-20 14:59:46 UTC
Created attachment 152260 [details]
Breeze gtk theme

SUMMARY
Cannot reproduce with Adwaita gtk theme. Please compare the attached screenshots.

OBSERVED RESULT
Unchecked checkbox is invisible when its row is selected

EXPECTED RESULT
visible checkbox

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 1 Patrick Silva 2022-09-20 15:00:04 UTC
Created attachment 152261 [details]
Adwaita gtk theme
Comment 2 Kat Pavlu 2025-06-21 14:52:46 UTC
Hello,
Sorry it took so long for someone to look at this. I can't reproduce this on Plasma 6.4.0 (Fedora 42 KDE). Can you check if it's still happening on your side?
Comment 3 Patrick Silva 2025-06-21 20:36:55 UTC
The bug persists.

Operating System: Arch Linux 
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Graphics Platform: Wayland
Comment 4 Kat Pavlu 2025-06-22 08:33:26 UTC
(In reply to Patrick Silva from comment #3)
> The bug persists.
> 
> Operating System: Arch Linux 
> KDE Plasma Version: 6.4.0
> KDE Frameworks Version: 6.15.0
> Qt Version: 6.9.1
> Graphics Platform: Wayland

I can't reproduce this in an arch VM either. 

Fresh install, Plasma 6.4.0, Frameworks 6.15.0, Qt 6.9.1, wayland, Quod Libet, Breeze gtk theme.
Is there anything that could be specific about your system?
Comment 5 Kat Pavlu 2025-06-22 08:43:42 UTC
Update: I fugured it out. Steps to reproduce:
- install arch with Plasma in a VM (via archinstall)
- pacman -Syu quodlibet
- open Quod Libet plugin settings, bug is not present
- go to plasma theme settings
- change GTK theme to "default"
- apply
- check Quod Libet plugin settings, bug is not present
- back in Plasma theming settings, switch GTK theme back to Breeze
- check with Quod Libet again
- bug is present
Comment 6 Patrick Silva 2025-06-22 10:50:16 UTC
"Default" means "Adwaita", what is confusing, because the default gtk theme of Plasma is Breeze.
Comment 7 Kat Pavlu 2025-06-22 20:30:32 UTC
I tried hunting this down. 

It seems checkboxes ("checkbutton"s) are inheriting their colors (so they are the same color as the background) and also the zero corner radius from "%selected_items" in _base.scss.

I found that removing
"

	&:selected {
		&:focus,
		& {
			border-radius: $r;
			@extend %selected_items;
		}
	}
"
(_base.scss  lines 94-101)
fixes this, so making "view" inherit "%selected_items" this is somehow applying the changes to Checkbuttos too. But I am not sure if the inheritance in "view" is used anywhere else. The codebase seems very messy in this spot.

This snippet was in the project since the first commit. That commit seems to be a modified version of the adwaita theme, where it is also was part of the first commit in 2011. I frankly don't know what it does.