Skip to content

Commit

Permalink
Polyline/gon default line color
Browse files Browse the repository at this point in the history
  • Loading branch information
kasemir committed Mar 6, 2024
1 parent b43e99d commit 3658626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/dbwr/widgets/PolylineWidget.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019 Oak Ridge National Laboratory.
* Copyright (c) 2019-2024 Oak Ridge National Laboratory.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the LICENSE
* which accompanies this distribution
Expand Down Expand Up @@ -39,6 +39,9 @@ protected PolylineWidget(final ParentWidget parent, final Element xml, final Str
// Display Builder uses "line_color"
String color_prop = "line_color";
line_color = XMLUtil.getColor(xml, color_prop).orElse(null);
// Default for 2.0.0 and up
if (line_color == null && version.major >= 2)
line_color = "#00F";
if (line_color == null)
{ // Fall back to variations of BOY settings, then default
color_prop = "foreground_color";
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ view.jsp?cache=false&display=file:/Path/to/Display+Builder/01_main.bob
<hr>

<div id="versions">
2024-03-06 Support alpha for shape backgrounds<br>
2024-03-06 Support alpha for shape backgrounds. Polyline/gon default line color.<br>
2024-02-26 Version: Treat missing as 0.0.0<br>
2024-01-31 Group widget: Correct inset for style 'None' and fix colors for newly added example.<br>
2023-09-11 LED only displayed values above zero instead of non-zero, incl. negative. Byte monitor layout float calc<br>
Expand Down

0 comments on commit 3658626

Please sign in to comment.