forked from pool/breeze-gtk
Accepting request 1077988 from home:fusionfuture:branches:KDE:Frameworks5
- Add patch to fix oversized titlebuttons in GTK3 apps (kde#468203) * 0001-gtk3-restore-old-icon-size-for-titlebutton.patch OBS-URL: https://build.opensuse.org/request/show/1077988 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/breeze-gtk?expand=0&rev=181
This commit is contained in:
parent
a4681b711a
commit
695b64e6b6
38
0001-gtk3-restore-old-icon-size-for-titlebutton.patch
Normal file
38
0001-gtk3-restore-old-icon-size-for-titlebutton.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From c5e757a198321208c6b1e99313652577c263ecc0 Mon Sep 17 00:00:00 2001
|
||||
From: Fushan Wen <qydwhotmail@gmail.com>
|
||||
Date: Fri, 7 Apr 2023 22:02:11 +0800
|
||||
Subject: [PATCH] gtk3: restore old icon size for titlebutton
|
||||
|
||||
`background-size` results in different sizes on X11 and Wayland.
|
||||
|
||||
BUG: 468203
|
||||
FIXED-IN: 5.27.5
|
||||
|
||||
|
||||
(cherry picked from commit bfe2ce620d395c943bb13a646295948b5bffbcc3)
|
||||
---
|
||||
src/gtk3/widgets/_window_decorations.scss | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/gtk3/widgets/_window_decorations.scss b/src/gtk3/widgets/_window_decorations.scss
|
||||
index aef28ca..6568e6b 100644
|
||||
--- a/src/gtk3/widgets/_window_decorations.scss
|
||||
+++ b/src/gtk3/widgets/_window_decorations.scss
|
||||
@@ -74,11 +74,11 @@ window {
|
||||
.titlebar {
|
||||
&.default-decoration button.titlebutton {
|
||||
padding: 1px;
|
||||
- min-height: 24px;
|
||||
- min-width: 24px;
|
||||
+ min-height: 18px;
|
||||
+ min-width: 18px;
|
||||
margin: 0;
|
||||
}
|
||||
- $titlebutton-size: 24px 24px;
|
||||
+ $titlebutton-size: 18px 18px;
|
||||
button.titlebutton {
|
||||
&:hover,
|
||||
&:active,
|
||||
--
|
||||
2.40.0
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 8 09:30:51 UTC 2023 - Fusion Future <qydwhotmail@gmail.com>
|
||||
|
||||
- Add patch to fix oversized titlebuttons in GTK3 apps (kde#468203)
|
||||
* 0001-gtk3-restore-old-icon-size-for-titlebutton.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 4 15:05:32 UTC 2023 - Fabian Vogt <fabian@ritter-vogt.de>
|
||||
|
||||
|
@ -30,6 +30,8 @@ Source: https://download.kde.org/stable/plasma/%{version}/breeze-gtk-%{v
|
||||
Source1: https://download.kde.org/stable/plasma/%{version}/breeze-gtk-%{version}.tar.xz.sig
|
||||
Source2: plasma.keyring
|
||||
%endif
|
||||
# PATCH-FIX-UPSTREAM kde#468203 https://invent.kde.org/plasma/breeze-gtk/-/commit/c5e757a198321208c6b1e99313652577c263ecc0
|
||||
Patch0: 0001-gtk3-restore-old-icon-size-for-titlebutton.patch
|
||||
BuildRequires: breeze5-style
|
||||
BuildRequires: cmake >= 3.16
|
||||
BuildRequires: extra-cmake-modules >= 5.98.0
|
||||
|
Loading…
Reference in New Issue
Block a user