Skip to content

Commit a512ad6

Browse files
committed
[GTK4] Fix scrollbar warnings when using Breeze theme
Trying to open e.g. a shell (or any widget with a scrollbar) produces the following warning: > GtkGizmo (...) (slider) reported min height -2, but sizes must be >= 0 This is a bug with the KDE theme: https://bugs.kde.org/show_bug.cgi?id=486766 More specifically, the theme is reporting the wrong size for the scroll-bar (6px, as opposed to 8px). To fix this, adjust the CSS theme to define a minimum size for the slider. To reproduce, run Snippet1 with GTK4 and the Breeze theme.
1 parent a641cdb commit a512ad6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/swt_theming_fixes_gtk_4_0_0.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ button.toggle {
44
button {
55
min-height: 0px;
66
min-width: 0px;
7+
}
8+
9+
scrollbar slider {
10+
min-height: 8px;
11+
min-width: 8px;
712
}

0 commit comments

Comments
 (0)