[gnome-maps/gnome-3-20] printLayout: Change color of instructionWidget before printing
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/gnome-3-20] printLayout: Change color of instructionWidget before printing
- Date: Thu, 9 Jun 2016 19:59:28 +0000 (UTC)
commit a7b8377a208d51f376d48724d959ee00391ed054
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]