vcl/unx/gtk3/gtkdata.cxx | 5 +++++ 1 file changed, 5 insertions(+) New commits: commit d798b2784f8aae25168555a6c8b1ccb3ffec79ea Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Jan 20 16:10:49 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Jan 20 21:14:00 2022 +0100
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 <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> 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;"