Reduce the height of window titlebars

Related: https://issues.redhat.com/browse/RHEL-22483
This commit is contained in:
Matthias Clasen 2024-05-02 09:45:47 -04:00
parent 5ebe65b5e8
commit be440daf53
2 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,39 @@
From 0de96f4ca337566d6346af2b355f6c19e11ff11f Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Thu, 2 May 2024 09:40:28 -0400
Subject: [PATCH] theme: Reduce the height of titlebars
The height of our titlebars is geared towards headerbars that can
host controls. For a traditional title-only titlebar, a smaller
footprint is sufficient and frees up some valuable vertical space.
---
gtk/theme/Adwaita/_common.scss | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index b9db6041d5..a1e29dd04b 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1757,14 +1757,15 @@ headerbar {
}
&.default-decoration {
- min-height: 28px;
- padding: 4px;
+ padding: 0px 2px;
button.titlebutton {
- min-height: 26px;
- min-width: 26px;
+ min-height: 18px;
+ min-width: 18px;
margin: 0;
padding: 0;
+ min-height: 0;
+ min-width: 0;
}
}
--
2.44.0

View File

@ -19,7 +19,7 @@
Name: gtk3
Version: 3.24.31
Release: 2%{?dist}
Release: 3%{?dist}
Summary: GTK+ graphical user interface library
License: LGPLv2+
@ -35,6 +35,8 @@ Patch1: gtk3-3.24.31-meson.patch
Patch2: gtk3-3.24.31-meson-reftest.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2055013
Patch3: gtk3-3.24.31-treeview-a11y-leak-fix.patch
# https://issues.redhat.com/browse/RHEL-22483
Patch4: 0001-theme-Reduce-the-height-of-titlebars.patch
BuildRequires: pkgconfig(atk) >= %{atk_version}
BuildRequires: pkgconfig(atk-bridge-2.0)
@ -302,6 +304,9 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache &>/dev/null || :
%{_datadir}/installed-tests/
%changelog
* Thu May 02 2024 Matthias Clasen <mclasen@redhat.com> - 3.24.31-3
- Reduce the height of window titlebars
* Thu Feb 17 2022 David King <amigadave@amigadave.com> - 3.24.31-2
- Fix treeview a11y refcount leak (#2055013)