[gnome-maps] printLayout: Change color of instructionWidget before printing



commit 5057a2fb198eb807ddc724d31aef638042cdad82
Author: Nayan Deshmukh <nayan26deshmukh gmail com>
Date:   Tue Apr 19 19:07:39 2016 +0530

    printLayout: Change color of instructionWidget before printing
    
    Set font color of intructionWidget to black manually to avoid
    printing in lighter font colors according to the theme
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765255

 data/gnome-maps.css |    4 ++++
 src/printLayout.js  |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-maps.css b/data/gnome-maps.css
index 0f7c8ce..7639f47 100644
--- a/data/gnome-maps.css
+++ b/data/gnome-maps.css
@@ -81,3 +81,7 @@
 .maps-check-in GtkTextView {
     font-size: large;
 }
+
+.printing-text {
+    color: rgb(0, 0, 0);
+}
diff --git a/src/printLayout.js b/src/printLayout.js
index b89d9aa..3d6da1c 100644
--- a/src/printLayout.js
+++ b/src/printLayout.js
@@ -211,6 +211,7 @@ const PrintLayout = new Lang.Class({
             lines: 2
         });
 
+        instructionWidget.get_style_context().add_class('printing-text');
         instructionWidget.width_request = width;
         instructionWidget.height_request = height;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]