follow up for theming

This commit is contained in:
Craig Raw 2021-12-15 14:28:31 +02:00
parent aff872eea0
commit 86ef129c1b
3 changed files with 10 additions and 0 deletions

View file

@ -419,6 +419,7 @@ public class TransactionDiagram extends GridPane {
if(sum > 0 && !curve.getStyleClass().contains("input-dashed-line")) { if(sum > 0 && !curve.getStyleClass().contains("input-dashed-line")) {
long radius = Math.round((double)inputs.get(numUtxos-i).getValue() * (RELATIVE_SIZE_MAX_RADIUS - 1) / sum) + 1; long radius = Math.round((double)inputs.get(numUtxos-i).getValue() * (RELATIVE_SIZE_MAX_RADIUS - 1) / sum) + 1;
Circle circle = new Circle(curve.getStartX(), curve.getStartY(), radius); Circle circle = new Circle(curve.getStartX(), curve.getStartY(), radius);
circle.getStyleClass().add("size-indicator");
group.getChildren().add(circle); group.getChildren().add(circle);
} }
} }
@ -493,6 +494,7 @@ public class TransactionDiagram extends GridPane {
if(sum > 0) { if(sum > 0) {
long radius = Math.min(RELATIVE_SIZE_MAX_RADIUS, Math.round((double)values.get(numOutputs-i) * (RELATIVE_SIZE_MAX_RADIUS - 1) / sum) + 1); long radius = Math.min(RELATIVE_SIZE_MAX_RADIUS, Math.round((double)values.get(numOutputs-i) * (RELATIVE_SIZE_MAX_RADIUS - 1) / sum) + 1);
Circle circle = new Circle(curve.getEndX(), curve.getEndY(), radius); Circle circle = new Circle(curve.getEndX(), curve.getEndY(), radius);
circle.getStyleClass().add("size-indicator");
group.getChildren().add(circle); group.getChildren().add(circle);
} }
} }

View file

@ -210,6 +210,10 @@
-fx-text-fill: lightgray; -fx-text-fill: lightgray;
} }
.root #transactionDiagram .size-indicator {
-fx-fill: lightgray;
}
.root .progress-indicator.progress-timer.warn > .determinate-indicator > .indicator { .root .progress-indicator.progress-timer.warn > .determinate-indicator > .indicator {
-fx-background-color: -fx-box-border, radial-gradient(center 50% 50%, radius 50%, #e06c75 70%, derive(-fx-control-inner-background, -9%) 100%); -fx-background-color: -fx-box-border, radial-gradient(center 50% 50%, radius 50%, #e06c75 70%, derive(-fx-control-inner-background, -9%) 100%);
} }

View file

@ -85,6 +85,10 @@
-fx-stroke-width: 1px; -fx-stroke-width: 1px;
} }
#transactionDiagram .size-indicator {
-fx-fill: -fx-text-base-color;
}
#transactionDiagram .input-dashed-line { #transactionDiagram .input-dashed-line {
-fx-stroke-dash-array: 5px 5px; -fx-stroke-dash-array: 5px 5px;
} }