diff options
author | Jason Wray <jason@mapbox.com> | 2016-02-18 17:28:04 -0500 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2016-02-18 19:27:49 -0500 |
commit | 21ce6fbdf96e80272fa0893640f7da85497aa9aa (patch) | |
tree | aa51931fcf4687c14b6c5f949104cb56765d239c /platform/osx/src/MGLMapView.mm | |
parent | 390057b5691f69f4b2f2f9eeb9e654990adb9e80 (diff) | |
download | qtlocation-mapboxgl-21ce6fbdf96e80272fa0893640f7da85497aa9aa.tar.gz |
[osx] Set default polyline and polygon color to the selected menu item color
Fixes #3927
Diffstat (limited to 'platform/osx/src/MGLMapView.mm')
-rw-r--r-- | platform/osx/src/MGLMapView.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm index de65e0496d..ec3fb7eb35 100644 --- a/platform/osx/src/MGLMapView.mm +++ b/platform/osx/src/MGLMapView.mm @@ -1987,14 +1987,14 @@ public: - (mbgl::Color)strokeColorForShapeAnnotation:(MGLShape *)annotation { NSColor *color = (_delegateHasStrokeColorsForShapeAnnotations ? [self.delegate mapView:self strokeColorForShapeAnnotation:annotation] - : [NSColor blackColor]); + : [NSColor selectedMenuItemColor]); return MGLColorObjectFromNSColor(color); } - (mbgl::Color)fillColorForPolygonAnnotation:(MGLPolygon *)annotation { NSColor *color = (_delegateHasFillColorsForShapeAnnotations ? [self.delegate mapView:self fillColorForPolygonAnnotation:annotation] - : [NSColor blueColor]); + : [NSColor selectedMenuItemColor]); return MGLColorObjectFromNSColor(color); } |