Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.jackhuang.hmcl.ui.Controllers;
import org.jackhuang.hmcl.ui.FXUtils;
import org.jackhuang.hmcl.ui.SVG;
import org.jackhuang.hmcl.ui.SVGContainer;
import org.jackhuang.hmcl.ui.construct.*;
import org.jackhuang.hmcl.ui.decorator.DecoratorPage;
import org.jackhuang.hmcl.util.*;
Expand Down Expand Up @@ -440,15 +441,21 @@ private static final class AddonItem extends StackPane {
switch (dataItem.versionType()) {
case Alpha:
content.addTag(i18n("addon.channel.alpha"));
graphicPane.getChildren().setAll(SVG.ALPHA_CIRCLE.createIcon(24));
SVGContainer alphaIcon = SVG.ALPHA_CIRCLE.createIcon(24);
alphaIcon.lookup(".svg").setStyle("-fx-fill: #ff496e;");
graphicPane.getChildren().setAll(alphaIcon);
Comment thread
KSSJW marked this conversation as resolved.
Outdated
break;
case Beta:
content.addTag(i18n("addon.channel.beta"));
graphicPane.getChildren().setAll(SVG.BETA_CIRCLE.createIcon(24));
SVGContainer betaIcon = SVG.BETA_CIRCLE.createIcon(24);
betaIcon.lookup(".svg").setStyle("-fx-fill: #ffa347;");
graphicPane.getChildren().setAll(betaIcon);
break;
case Release:
content.addTag(i18n("addon.channel.release"));
graphicPane.getChildren().setAll(SVG.RELEASE_CIRCLE.createIcon(24));
SVGContainer releaseIcon = SVG.RELEASE_CIRCLE.createIcon(24);
releaseIcon.lookup(".svg").setStyle("-fx-fill: #1bd96a;");
graphicPane.getChildren().setAll(releaseIcon);
break;
}

Expand Down
Loading