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")) {
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.getStyleClass().add("size-indicator");
group.getChildren().add(circle);
}
}
@ -493,6 +494,7 @@ public class TransactionDiagram extends GridPane {
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);
Circle circle = new Circle(curve.getEndX(), curve.getEndY(), radius);
circle.getStyleClass().add("size-indicator");
group.getChildren().add(circle);
}
}

View file

@ -210,6 +210,10 @@
-fx-text-fill: lightgray;
}
.root #transactionDiagram .size-indicator {
-fx-fill: lightgray;
}
.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%);
}

View file

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