|
42 | 42 | import org.jackhuang.hmcl.ui.Controllers; |
43 | 43 | import org.jackhuang.hmcl.ui.FXUtils; |
44 | 44 | import org.jackhuang.hmcl.ui.SVG; |
| 45 | +import org.jackhuang.hmcl.ui.SVGContainer; |
45 | 46 | import org.jackhuang.hmcl.ui.construct.*; |
46 | 47 | import org.jackhuang.hmcl.ui.decorator.DecoratorPage; |
47 | 48 | import org.jackhuang.hmcl.util.*; |
@@ -440,15 +441,21 @@ private static final class AddonItem extends StackPane { |
440 | 441 | switch (dataItem.versionType()) { |
441 | 442 | case Alpha: |
442 | 443 | content.addTag(i18n("addon.channel.alpha")); |
443 | | - graphicPane.getChildren().setAll(SVG.ALPHA_CIRCLE.createIcon(24)); |
| 444 | + SVGContainer alphaIcon = SVG.ALPHA_CIRCLE.createIcon(24); |
| 445 | + alphaIcon.lookup(".svg").setStyle("-fx-fill: #ff496e;"); |
| 446 | + graphicPane.getChildren().setAll(alphaIcon); |
444 | 447 | break; |
445 | 448 | case Beta: |
446 | 449 | content.addTag(i18n("addon.channel.beta")); |
447 | | - graphicPane.getChildren().setAll(SVG.BETA_CIRCLE.createIcon(24)); |
| 450 | + SVGContainer betaIcon = SVG.BETA_CIRCLE.createIcon(24); |
| 451 | + betaIcon.lookup(".svg").setStyle("-fx-fill: #ffa347;"); |
| 452 | + graphicPane.getChildren().setAll(betaIcon); |
448 | 453 | break; |
449 | 454 | case Release: |
450 | 455 | content.addTag(i18n("addon.channel.release")); |
451 | | - graphicPane.getChildren().setAll(SVG.RELEASE_CIRCLE.createIcon(24)); |
| 456 | + SVGContainer releaseIcon = SVG.RELEASE_CIRCLE.createIcon(24); |
| 457 | + releaseIcon.lookup(".svg").setStyle("-fx-fill: #1bd96a;"); |
| 458 | + graphicPane.getChildren().setAll(releaseIcon); |
452 | 459 | break; |
453 | 460 | } |
454 | 461 |
|
|
0 commit comments