[gnome-maps] mapView: Change route path width and color
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] mapView: Change route path width and color
- Date: Tue, 2 Sep 2014 15:46:55 +0000 (UTC)
commit 2570ed349f0055878ef7229346b0227889bdf249
Author: Dario Di Nucci <linkin88mail gmail com>
Date: Wed Jul 30 17:55:50 2014 +0200
mapView: Change route path width and color
The routing path now is blue and the width is set
to 5px.
https://bugzilla.gnome.org/show_bug.cgi?id=731068
src/mapView.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index c8d02eb..e760aac 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -90,7 +90,12 @@ const MapView = new Lang.Class({
},
_initLayers: function() {
- this._routeLayer = new Champlain.PathLayer({ stroke_width: 2.0 });
+ let strokeColor = new Clutter.Color({ red: 0,
+ blue: 255,
+ green: 0,
+ alpha: 100 });
+ this._routeLayer = new Champlain.PathLayer({ stroke_width: 5.0,
+ stroke_color: strokeColor });
this.view.add_layer(this._routeLayer);
let mode = Champlain.SelectionMode.SINGLE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]