summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-04-09 12:05:18 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2023-04-09 12:07:58 +0200
commit7685a0a0e743cd862c5dc591975ea2bb8da57345 (patch)
treed4b322b33fcf3a9b49ddd3d5a7142aca8f27ae43 /kde-plasma/breeze-gtk
parentdev-libs/clhpp: remove all the Ruby bits (diff)
downloadgentoo-7685a0a0e743cd862c5dc591975ea2bb8da57345.tar.gz
gentoo-7685a0a0e743cd862c5dc591975ea2bb8da57345.tar.bz2
gentoo-7685a0a0e743cd862c5dc591975ea2bb8da57345.zip
kde-plasma/breeze-gtk: gtk3: restore old icon size for titlebutton
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=468203 gtk3: remove invalid icon size property ('-gtk-icon-size' is not a valid property name) See also: https://mail.kde.org/pipermail/distributions/2023-April/001353.html Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-plasma/breeze-gtk')
-rw-r--r--kde-plasma/breeze-gtk/breeze-gtk-5.27.4-r1.ebuild33
-rw-r--r--kde-plasma/breeze-gtk/files/breeze-gtk-5.27.4-blurry-big-gtk3-window-buttons.patch67
2 files changed, 100 insertions, 0 deletions
diff --git a/kde-plasma/breeze-gtk/breeze-gtk-5.27.4-r1.ebuild b/kde-plasma/breeze-gtk/breeze-gtk-5.27.4-r1.ebuild
new file mode 100644
index 000000000000..163b981dd563
--- /dev/null
+++ b/kde-plasma/breeze-gtk/breeze-gtk-5.27.4-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PVCUT=$(ver_cut 1-3)
+PYTHON_COMPAT=( python3_{9..11} )
+inherit ecm plasma.kde.org python-any-r1
+
+DESCRIPTION="Official GTK+ port of Plasma's Breeze widget style"
+HOMEPAGE="https://invent.kde.org/plasma/breeze-gtk"
+
+LICENSE="LGPL-2.1+"
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE=""
+
+BDEPEND="${PYTHON_DEPS}
+ dev-lang/sassc
+ $(python_gen_any_dep 'dev-python/pycairo[${PYTHON_USEDEP}]')
+ >=kde-plasma/breeze-${PVCUT}:5
+"
+
+PATCHES=( "${FILESDIR}/${P}-blurry-big-gtk3-window-buttons.patch" ) # KDE-bug 468203
+
+python_check_deps() {
+ python_has_version "dev-python/pycairo[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ python-any-r1_pkg_setup
+ ecm_pkg_setup
+}
diff --git a/kde-plasma/breeze-gtk/files/breeze-gtk-5.27.4-blurry-big-gtk3-window-buttons.patch b/kde-plasma/breeze-gtk/files/breeze-gtk-5.27.4-blurry-big-gtk3-window-buttons.patch
new file mode 100644
index 000000000000..505d4ee016a3
--- /dev/null
+++ b/kde-plasma/breeze-gtk/files/breeze-gtk-5.27.4-blurry-big-gtk3-window-buttons.patch
@@ -0,0 +1,67 @@
+From 49a595aaed62ce08cf6e173fa85165b1e847802d Mon Sep 17 00:00:00 2001
+From: Fushan Wen <qydwhotmail@gmail.com>
+Date: Fri, 7 Apr 2023 21:41:39 +0800
+Subject: [PATCH 1/2] gtk3: remove invalid icon size property
+
+'-gtk-icon-size' is not a valid property name
+---
+ src/gtk3/widgets/_dialogs.scss | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/src/gtk3/widgets/_dialogs.scss b/src/gtk3/widgets/_dialogs.scss
+index 3056fc8..4eb1082 100644
+--- a/src/gtk3/widgets/_dialogs.scss
++++ b/src/gtk3/widgets/_dialogs.scss
+@@ -57,13 +57,3 @@ filechooser {
+ border-bottom: 1px solid gtk("@borders");
+ }
+ }
+-
+-// Icon sizes
+-
+-.normal-icons {
+- -gtk-icon-size: 16px;
+-}
+-
+-.large-icons {
+- -gtk-icon-size: 32px;
+-}
+--
+2.40.0
+
+
+From bfe2ce620d395c943bb13a646295948b5bffbcc3 Mon Sep 17 00:00:00 2001
+From: Fushan Wen <qydwhotmail@gmail.com>
+Date: Fri, 7 Apr 2023 22:02:11 +0800
+Subject: [PATCH 2/2] gtk3: restore old icon size for titlebutton
+
+`background-size` results in different sizes on X11 and Wayland.
+
+BUG: 468203
+FIXED-IN: 5.27.5
+---
+ 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
+