forked from QubesOS/qubes-desktop-linux-xfce4-xfwm4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0003-Qubes-decoration-black-hack.patch
37 lines (33 loc) · 1.36 KB
/
0003-Qubes-decoration-black-hack.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From fd8380aa0389bc3501917d90994f3cc291b8a026 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?=
Date: Sat, 16 May 2020 11:43:36 +0200
Subject: [PATCH] Qubes decoration: black hack
Authors:
@marmarek
Original work done in:
- QubesOS/qubes-desktop-linux-xfce4
- QubesOS/qubes-desktop-linux-xfce4-xfwm4
---
src/mypixmap.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mypixmap.c b/src/mypixmap.c
index f60413770..52b55ac3e 100644
--- a/src/mypixmap.c
+++ b/src/mypixmap.c
@@ -615,7 +615,12 @@ pixbuf_create_from_xpm (gpointer handle, xfwmColorSymbol *color_sym, gboolean ov
1.0*color->green/0xFFFF,
1.0*color->blue/0xFFFF,
&h, &s, &v);
- gtk_hsv_to_rgb(override_h, override_s, v, &new_r, &new_g, &new_b);
+ /* Special case for black label, otherwise it is the same as gray -
+ * see #2120 */
+ if (override_h == 0.0 && override_s == 0.0 && override_v == 0.0)
+ gtk_hsv_to_rgb(override_h, override_s, v * 0.2, &new_r, &new_g, &new_b);
+ else
+ gtk_hsv_to_rgb(override_h, override_s, v, &new_r, &new_g, &new_b);
color->red = new_r*0xFFFF;
color->green = new_g*0xFFFF;
color->blue = new_b*0xFFFF;
--
2.25.4