1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-26 19:19:16 +02:00

Colored spar buoys

This commit is contained in:
2025-05-06 20:27:44 +02:00
parent 42f785d14b
commit 8323694f64
27 changed files with 28 additions and 6 deletions

View File

@ -773,7 +773,7 @@ void Style::defaultPointStyle(qreal ratio)
COLORSET(0x10204, "buoy", 6, -6);
COLORSET(0x10205, "buoy", 6, -6);
COLORSET(0x10206, "beacon", 0, -8);
_points[0x10207] = Point(QImage(":/marine/spar-buoy.png"), QPoint(2, -9));
COLORSET(0x10207, "spar-buoy", 2, -8);
COLORSET(0x10208, "buoy", 6, -6);
COLORSET(0x10209, "buoy", 6, -6);
COLORSET(0x1020a, "buoy", 6, -6);

View File

@ -157,8 +157,7 @@ public:
static bool isMarina(quint32 type)
{return type == 0x10703;}
static bool hasColorset(quint32 type)
{return (isBuoy(type)
&& !(type == 0x10207 || type == 0x1020d || type == 0x10216));}
{return (isBuoy(type) && !(type == 0x1020d || type == 0x10216));}
static QColor color(Light::Color c);