Skip to content

Commit 6748179

Browse files
committed
[GTK] Reduce button.toggle padding on GTK 4
Add css file for gtk4 and start accomodating content in it.
1 parent 4862ef8 commit 6748179

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
button.toggle {
2+
padding: 0px;
3+
}

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,9 @@ private void overrideThemeValues () {
787787
if (GTK.GTK_VERSION >= OS.VERSION(3, 24, 5)) {
788788
combinedCSS.append(load.apply("/org/eclipse/swt/internal/gtk/swt_theming_fixes_gtk_3_24_5.css", true));
789789
}
790+
if (GTK.GTK4) {
791+
combinedCSS.append(load.apply("/org/eclipse/swt/internal/gtk/swt_theming_fixes_gtk_4_0_0.css", true));
792+
}
790793
}
791794

792795
// Load CSS from user-defined CSS file.

0 commit comments

Comments
 (0)