[mate-desktop] 01/01: debian/patches: Add 0001_fix_font_color.patch. Fix font-color for dark themes (LP: #1706947)

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Fri Mar 30 16:08:24 UTC 2018


This is an automated email from the git hooks/post-receive script.

flexiondotorg-guest pushed a commit to branch master
in repository mate-desktop.

commit 7e2b02b0243df5820f038bdea8940ee1c290c2a7
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Fri Mar 30 17:08:17 2018 +0100

    debian/patches: Add 0001_fix_font_color.patch. Fix font-color for dark themes (LP: #1706947)
---
 debian/patches/0001_fix_font_color.patch | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/0001_fix_font_color.patch b/debian/patches/0001_fix_font_color.patch
new file mode 100644
index 0000000..f0bb86a
--- /dev/null
+++ b/debian/patches/0001_fix_font_color.patch
@@ -0,0 +1,32 @@
+Author: raveit65 <mate at raveit.de>
+Description: Fix font-color for dark themes
+
+--- a/libmate-desktop/mate-rr-labeler.c
++++ b/libmate-desktop/mate-rr-labeler.c
+@@ -380,7 +380,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA *
+ 	GtkWidget *widget;
+ 	char *str;
+ 	char *display_name;
+-	GdkColor black = { 0, 0, 0, 0 };
++	GdkRGBA black = { 0, 0, 0, 1.0 };
+ 	int x,y;
+ 
+ 	window = gtk_window_new (GTK_WINDOW_POPUP);
+@@ -421,7 +421,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkRGBA *
+ 	 * theme's colors, since the label is always shown against a light
+ 	 * pastel background.  See bgo#556050
+ 	 */
+-	gtk_widget_modify_fg (widget, gtk_widget_get_state_flags (widget), &black);
++	gtk_widget_override_color (widget, gtk_widget_get_state_flags (widget), &black);
+ 
+ 	gtk_container_add (GTK_CONTAINER (window), widget);
+ 
+@@ -519,7 +519,7 @@ mate_rr_labeler_hide (MateRRLabeler *labeler)
+  * mate_rr_labeler_get_rgba_for_output:
+  * @labeler: A #MateRRLabeler
+  * @output: Output device (i.e. monitor) to query
+- * @rgba_out: (out): Color of selected monitor.
++ * @color_out: (out): Color of selected monitor.
+  *
+  * Get the color used for the label on a given output (monitor).
+  */
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0bfc4fa
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001_fix_font_color.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-desktop.git



More information about the pkg-mate-commits mailing list