mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 17:21:00 +00:00
Increased opacity of boat tail when it is not selected.
This commit is contained in:
1 parent
32dfb22474
commit
9c471a54eb
1 file changed
+2
+2
@@ -152,6 +152,7 @@ public class RaceMap extends AbstractCompositeComponent<RaceMapSettings> impleme
|
||||
private static final Color LOWLIGHTED_TAIL_COLOR = new RGBColor(200, 200, 200);
|
||||
public static final String GET_RACE_MAP_DATA_CATEGORY = "getRaceMapData";
|
||||
public static final String GET_WIND_DATA_CATEGORY = "getWindData";
|
||||
private static final double LOWLIGHTED_TAIL_OPACITY = 0.3;
|
||||
|
||||
private static final String COMPACT_HEADER_STYLE = "compactHeader";
|
||||
public static final Color WATER_COLOR = new RGBColor(0, 67, 125);
|
||||
@@ -2745,6 +2746,7 @@ public class RaceMap extends AbstractCompositeComponent<RaceMapSettings> impleme
|
||||
options.setStrokeColor(competitorSelection.getColor(competitor, raceIdentifier).getAsHtml());
|
||||
} else {
|
||||
options.setStrokeColor(LOWLIGHTED_TAIL_COLOR.getAsHtml());
|
||||
options.setStrokeOpacity(LOWLIGHTED_TAIL_OPACITY);
|
||||
}
|
||||
if (isHighlighted) {
|
||||
options.setStrokeWeight(2);
|
||||
|
||||
Reference in new issue
Block a user