1 |
commit: 4bc14b426eba4f391cb1f1ba56f5b189983b7acf |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 22 17:46:03 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 23 14:59:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bc14b42 |
7 |
|
8 |
kde-plasma/breeze-gtk: Fix unneeded outline |
9 |
|
10 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=443626 |
11 |
Upstream commit 6834ee83d09b7c56fbe3d137b660db25484573f3 |
12 |
|
13 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
kde-plasma/breeze-gtk/breeze-gtk-5.23.3-r1.ebuild | 41 +++++++++++++++++ |
17 |
.../breeze-gtk-5.23.3-fix-unneeded-outline.patch | 52 ++++++++++++++++++++++ |
18 |
2 files changed, 93 insertions(+) |
19 |
|
20 |
diff --git a/kde-plasma/breeze-gtk/breeze-gtk-5.23.3-r1.ebuild b/kde-plasma/breeze-gtk/breeze-gtk-5.23.3-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 000000000000..93b076e2fed7 |
23 |
--- /dev/null |
24 |
+++ b/kde-plasma/breeze-gtk/breeze-gtk-5.23.3-r1.ebuild |
25 |
@@ -0,0 +1,41 @@ |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=8 |
30 |
+ |
31 |
+PVCUT=$(ver_cut 1-3) |
32 |
+PYTHON_COMPAT=( python3_{8..10} ) |
33 |
+inherit ecm kde.org python-any-r1 |
34 |
+ |
35 |
+DESCRIPTION="Official GTK+ port of Plasma's Breeze widget style" |
36 |
+HOMEPAGE="https://invent.kde.org/plasma/breeze-gtk" |
37 |
+ |
38 |
+LICENSE="LGPL-2.1+" |
39 |
+SLOT="5" |
40 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
41 |
+IUSE="" |
42 |
+ |
43 |
+BDEPEND="${PYTHON_DEPS} |
44 |
+ dev-lang/sassc |
45 |
+ $(python_gen_any_dep 'dev-python/pycairo[${PYTHON_USEDEP}]') |
46 |
+ >=dev-util/cmake-3.16 |
47 |
+ >=kde-plasma/breeze-${PVCUT}:5 |
48 |
+" |
49 |
+ |
50 |
+PATCHES=( "${FILESDIR}/${P}-fix-unneeded-outline.patch" ) # KDE-bug 443626 |
51 |
+ |
52 |
+python_check_deps() { |
53 |
+ has_version "dev-python/pycairo[${PYTHON_USEDEP}]" |
54 |
+} |
55 |
+ |
56 |
+pkg_setup() { |
57 |
+ python-any-r1_pkg_setup |
58 |
+ ecm_pkg_setup |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ local mycmakeargs=( |
63 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
64 |
+ ) |
65 |
+ ecm_src_configure |
66 |
+} |
67 |
|
68 |
diff --git a/kde-plasma/breeze-gtk/files/breeze-gtk-5.23.3-fix-unneeded-outline.patch b/kde-plasma/breeze-gtk/files/breeze-gtk-5.23.3-fix-unneeded-outline.patch |
69 |
new file mode 100644 |
70 |
index 000000000000..b835094140a5 |
71 |
--- /dev/null |
72 |
+++ b/kde-plasma/breeze-gtk/files/breeze-gtk-5.23.3-fix-unneeded-outline.patch |
73 |
@@ -0,0 +1,52 @@ |
74 |
+From 6834ee83d09b7c56fbe3d137b660db25484573f3 Mon Sep 17 00:00:00 2001 |
75 |
+From: Yaroslav Sidlovsky <zawertun@×××××.com> |
76 |
+Date: Thu, 18 Nov 2021 14:15:36 +0300 |
77 |
+Subject: [PATCH] Fixed toolbar buttons style, removing unneeded outline |
78 |
+ |
79 |
+BUG: 443626 |
80 |
+ |
81 |
+ |
82 |
+(cherry picked from commit 23ba2a8dc728cd7105e5994ed1d4dc143f7d69a1) |
83 |
+--- |
84 |
+ src/gtk3/widgets/_button.scss | 5 +++++ |
85 |
+ 1 file changed, 5 insertions(+) |
86 |
+ |
87 |
+diff --git a/src/gtk3/widgets/_button.scss b/src/gtk3/widgets/_button.scss |
88 |
+index 4bd0ce7..e7250ee 100644 |
89 |
+--- a/src/gtk3/widgets/_button.scss |
90 |
++++ b/src/gtk3/widgets/_button.scss |
91 |
+@@ -176,6 +176,7 @@ $_dot_color: gtk("@theme_button_decoration_focus"); |
92 |
+ |
93 |
+ @include button(normal); |
94 |
+ &.flat { |
95 |
++ @include button(undecorated); |
96 |
+ // to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set |
97 |
+ // to none, while it's added back in the hover state, so the button decoration will fade in on hover, but |
98 |
+ // it won't fade out when the pointer leave the button allocation area. To make the transition more evident |
99 |
+@@ -228,12 +229,15 @@ $_dot_color: gtk("@theme_button_decoration_focus"); |
100 |
+ } |
101 |
+ &.flat:backdrop { |
102 |
+ -gtk-icon-effect: none; |
103 |
++ @include button(undecorated); |
104 |
+ color: gtk("@theme_button_foreground_backdrop"); |
105 |
+ } |
106 |
+ &.flat:disabled { |
107 |
++ @include button(undecorated); |
108 |
+ color: gtk("@theme_button_foreground_insensitive"); |
109 |
+ } |
110 |
+ &.flat:backdrop:disabled { |
111 |
++ @include button(undecorated); |
112 |
+ color: gtk("@theme_button_foreground_backdrop_insensitive"); |
113 |
+ } |
114 |
+ &:disabled { |
115 |
+@@ -357,6 +361,7 @@ button { |
116 |
+ &.flat:backdrop, |
117 |
+ &.flat:disabled, |
118 |
+ &.flat:backdrop:disabled { |
119 |
++ @include button(undecorated); |
120 |
+ color: gtkalpha($button_color, 0.8); |
121 |
+ } |
122 |
+ &:disabled { |
123 |
+-- |
124 |
+GitLab |
125 |
+ |