summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-20 16:10:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-20 21:14:00 +0100
commitd798b2784f8aae25168555a6c8b1ccb3ffec79ea (patch)
tree292700c2ae501f75b44cf5aec50142d4316a5263 /vcl/unx/gtk3
parent36a186f28757eadb8fddac5887f5ebecebfe8229 (diff)
gtk4: hide frame for gtk4 to pretty things up
they were typically invisible in gtk3 and we mostly designed assuming that so it doesn't look great Change-Id: Iae44e3fd92b4c5ef7bea25174978477d75c03433 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128690 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r--vcl/unx/gtk3/gtkdata.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkdata.cxx b/vcl/unx/gtk3/gtkdata.cxx
index 4d65a9b2ef1b..53f897420299 100644
--- a/vcl/unx/gtk3/gtkdata.cxx
+++ b/vcl/unx/gtk3/gtkdata.cxx
@@ -459,6 +459,11 @@ static GtkStyleProvider* CreateStyleProvider()
"spinbutton.small-button, spinbutton.small-button entry, spinbutton.small-button button { "
"padding: 0; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0;"
"border-width: 0; min-height: 0; min-width: 0; }"
+#if GTK_CHECK_VERSION(4, 0, 0)
+ // we basically assumed during dialog design that the frame's were invisible, because
+ // they used to be in the default theme during gtk3
+ "frame { border-style: none; }"
+#endif
"notebook.overflow > header.top > tabs > tab:checked { "
"box-shadow: none; padding: 0 0 0 0; margin: 0 0 0 0;"
"border-image: none; border-image-width: 0 0 0 0;"