I'm trying to add a border to the ControlsFX SegmentedButton. When I change the background colors they keep the correct shape as shown in the above image.
Here is the CSS:
.segmented-button{
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
-fx-background-color: -color-background-light-purple;
}
.segmented-button:selected{
-fx-background-color: -color-heading-dark-blue;
-fx-text-fill: white;
}
But when I try to add a border, the shape is not adhered to. SegmentedButton with Border
Here is the CSS:
.segmented-button{
-fx-focus-color: transparent;
-fx-faint-focus-color: transparent;
-fx-background-color: -color-background-light-purple;
-fx-border-color: -color-heading-dark-blue;
-fx-border-width: 0.2;
}
Can someone please tell me how to add the border to keep the shape of each button within the SegmentedButton?