根据版本类型调整下载项图标 (#3306)
This commit is contained in:
@@ -381,8 +381,6 @@ public class DownloadPage extends Control implements DecoratorPage {
|
|||||||
|
|
||||||
{
|
{
|
||||||
StackPane graphicPane = new StackPane();
|
StackPane graphicPane = new StackPane();
|
||||||
graphicPane.getChildren().setAll(SVG.RELEASE_CIRCLE_OUTLINE.createIcon(Theme.blackFill(), 24, 24));
|
|
||||||
|
|
||||||
TwoLineListItem content = new TwoLineListItem();
|
TwoLineListItem content = new TwoLineListItem();
|
||||||
HBox.setHgrow(content, Priority.ALWAYS);
|
HBox.setHgrow(content, Priority.ALWAYS);
|
||||||
content.setTitle(dataItem.getName());
|
content.setTitle(dataItem.getName());
|
||||||
@@ -390,11 +388,16 @@ public class DownloadPage extends Control implements DecoratorPage {
|
|||||||
|
|
||||||
switch (dataItem.getVersionType()) {
|
switch (dataItem.getVersionType()) {
|
||||||
case Alpha:
|
case Alpha:
|
||||||
|
content.getTags().add(i18n("version.game.snapshot"));
|
||||||
|
graphicPane.getChildren().setAll(SVG.ALPHA_CIRCLE_OUTLINE.createIcon(Theme.blackFill(), 24, 24));
|
||||||
|
break;
|
||||||
case Beta:
|
case Beta:
|
||||||
content.getTags().add(i18n("version.game.snapshot"));
|
content.getTags().add(i18n("version.game.snapshot"));
|
||||||
|
graphicPane.getChildren().setAll(SVG.BETA_CIRCLE_OUTLINE.createIcon(Theme.blackFill(), 24, 24));
|
||||||
break;
|
break;
|
||||||
case Release:
|
case Release:
|
||||||
content.getTags().add(i18n("version.game.release"));
|
content.getTags().add(i18n("version.game.release"));
|
||||||
|
graphicPane.getChildren().setAll(SVG.RELEASE_CIRCLE_OUTLINE.createIcon(Theme.blackFill(), 24, 24));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user