[Marble-bugs] [marble] [Bug 311210] Bad default track rendering

Dennis Nienhüser earthwings at gentoo.org
Wed Apr 24 17:42:03 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=311210

Dennis Nienhüser <earthwings at gentoo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |task

--- Comment #1 from Dennis Nienhüser <earthwings at gentoo.org> ---
Tracks received by Marble from a GPS device are displayed using this style:

    GeoDataStyle style;
    GeoDataLineStyle lineStyle;
    QColor transparentRed = Oxygen::brickRed4;
    transparentRed.setAlpha( 200 );
    lineStyle.setColor( transparentRed );
    lineStyle.setWidth( 4 );
    style.setLineStyle(lineStyle);
    style.setStyleId("track");

GPXgpxTagHandler.cpp (in src/plugins/runner/gpx/handlers/) should setup a
similar style instead of the current one which looks like this:

    GeoDataStyle style;
    GeoDataLineStyle lineStyle;
    lineStyle.setColor( Oxygen::forestGreen4 );
    lineStyle.setWidth(2);
    style.setLineStyle(lineStyle);
    style.setStyleId("track");

My suggestion would be to reuse the red track style properties except for the
color itself which i'd choose slightly more saturated (possibly brickRed6) such
that an active track can be distinguished from one loaded from file.

Please do a similar approach for the route style in the same file.
RoutingLayer.cpp is where the active route is painted.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Marble-bugs mailing list