mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-24 14:38:45 +00:00
bug2823: some fixes on the styling on race board page. Removed degree from true north indicator.
This commit is contained in:
+2
-4
@@ -89,7 +89,6 @@ body {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
cursor: pointer;
|
||||
background-size: 75%;
|
||||
margin-right: 5px;
|
||||
margin-left: 5px;
|
||||
margin-top: 5px;
|
||||
@@ -104,12 +103,10 @@ body {
|
||||
position: absolute;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
background-size: 66.6666%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
|
||||
.zoomInButton {
|
||||
@@ -264,7 +261,6 @@ body {
|
||||
height: 30px;
|
||||
cursor: pointer;
|
||||
background-image: resourceUrl("moreIcon");
|
||||
background-size: 75%;
|
||||
margin: 10px;
|
||||
}
|
||||
:fullscreen .moreOptionsButton {
|
||||
@@ -288,6 +284,8 @@ body {
|
||||
|
||||
.trueNorthIndicatorPanel {
|
||||
margin-top: 10px;
|
||||
padding-top: 7px;
|
||||
height: 57px;
|
||||
}
|
||||
|
||||
.estimatedDuration {
|
||||
|
||||
+3
-3
@@ -50,11 +50,11 @@ public interface RaceMapResources extends ClientBundle {
|
||||
@MimeType("image/svg+xml")
|
||||
DataResource plusIcon();
|
||||
|
||||
@Source("com/sap/sailing/gwt/ui/client/images/more.svg")
|
||||
@MimeType("image/svg+xml")
|
||||
@Source("com/sap/sailing/gwt/ui/client/images/more.png")
|
||||
@MimeType("image/png")
|
||||
DataResource moreIcon();
|
||||
|
||||
@Source("com/sap/sailing/gwt/ui/client/images/SAP_RV_Settings.png")
|
||||
@Source("com/sap/sailing/gwt/ui/client/images/settings.png")
|
||||
@MimeType("image/png")
|
||||
DataResource settingsIcon();
|
||||
|
||||
|
||||
-14
@@ -3,9 +3,7 @@ package com.sap.sailing.gwt.ui.client.shared.racemap;
|
||||
import com.google.gwt.canvas.client.Canvas;
|
||||
import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.event.dom.client.ClickHandler;
|
||||
import com.google.gwt.i18n.client.NumberFormat;
|
||||
import com.google.gwt.user.client.ui.FlowPanel;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
import com.sap.sailing.gwt.ui.client.StringMessages;
|
||||
import com.sap.sse.gwt.client.shared.settings.DummyOnSettingsStoredCallback;
|
||||
|
||||
@@ -22,7 +20,6 @@ public class TrueNorthIndicatorPanel extends FlowPanel {
|
||||
private final StringMessages stringMessages;
|
||||
|
||||
private final RaceMapImageManager raceMapResources;
|
||||
private final Label textLabel;
|
||||
private final RaceMap map;
|
||||
|
||||
private Canvas canvas;
|
||||
@@ -49,9 +46,6 @@ public class TrueNorthIndicatorPanel extends FlowPanel {
|
||||
toggle();
|
||||
}
|
||||
});
|
||||
textLabel = new Label("");
|
||||
textLabel.addStyleName(this.raceMapStyle.raceMapIndicatorPanelTextLabel());
|
||||
add(textLabel);
|
||||
}
|
||||
|
||||
public void toggle() {
|
||||
@@ -80,14 +74,6 @@ public class TrueNorthIndicatorPanel extends FlowPanel {
|
||||
String title = stringMessages.rotatedFromTrueNorth(Math.round(mappedTrueNorthDeg)) + '\n' +
|
||||
stringMessages.clickToToggleWindUp();
|
||||
canvas.setTitle(title);
|
||||
NumberFormat numberFormat = NumberFormat.getFormat("0.0");
|
||||
final double windDirection;
|
||||
if (mappedTrueNorthDeg >= 0) {
|
||||
windDirection = 360 - mappedTrueNorthDeg;
|
||||
} else {
|
||||
windDirection = mappedTrueNorthDeg * -1;
|
||||
}
|
||||
textLabel.setText(mappedTrueNorthDeg == 0 ? "N" : numberFormat.format(windDirection) + "°");
|
||||
if (!isVisible()) {
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 503 B |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 5.6 KiB |
Reference in New Issue
Block a user