client

Clone or download

Modified Files

--- 'a/src/main/java/com/stream_pi/client/window/dashboard/actiongridpane/ActionBox.java'
+++ b/src/main/java/com/stream_pi/client/window/dashboard/actiongridpane/ActionBox.java
@@ -183,22 +183,22 @@ public class ActionBox extends StackPane
{
getStyleClass().remove("action_box_icon_present");
getStyleClass().add("action_box_icon_not_present");
- setBackground(Background.EMPTY);
+ setBackground(null);
}
else
{
getStyleClass().add("action_box_icon_present");
getStyleClass().remove("action_box_icon_not_present");
-
+
setBackground(
- new Background(
- new BackgroundImage(new Image(
- new ByteArrayInputStream(iconByteArray), size, size, false, true
- ), BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.CENTER,
-
- new BackgroundSize(100, 100, true, true, true, false))
- )
+ new Background(
+ new BackgroundImage(new Image(
+ new ByteArrayInputStream(iconByteArray), size, size, false, false
+ ), BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.CENTER,
+
+ new BackgroundSize(size, size, false, false, true, false))
+ )
);
}
}
--- 'a/src/main/resources/com/stream_pi/client/style.css'
+++ b/src/main/resources/com/stream_pi/client/style.css
@@ -6,8 +6,8 @@
.action_box
{
-fx-border-width: 1px;
- -fx-shape: "M100,100 h200 a20,20 0 0 1 20,20 v200 a20,20 0 0 1 -20,20 h-200 a20,20 0 0 1 -20,-20 v-200 a20,20 0 0 1 20,-20 z";
-fx-border-color : grey;
+ -fx-shape : "M100,100 h200 a20,20 0 0 1 20,20 v200 a20,20 0 0 1 -20,20 h-200 a20,20 0 0 1 -20,-20 v-200 a20,20 0 0 1 20,-20 z";
}
.action_box_icon_present