Skip to content

Commit a40feb9

Browse files
committed
Use download icons for version switch buttons
1 parent 24350fb commit a40feb9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

launcher/src/main/java/net/modtale/launcher/ui/library/LibraryProjectRenderer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ private Node versionSection(LibraryDetailModel model) {
185185
}
186186
});
187187

188-
Button switchButton = primaryButton("Switch");
188+
Button switchButton = primaryButton("");
189+
switchButton.setAccessibleText("Switch version");
190+
switchButton.setTooltip(new Tooltip("Switch version"));
189191
switchButton.setGraphic(LauncherIcons.icon(LauncherIcons.Glyph.DOWNLOAD, 14));
190192
switchButton.setOnAction(event -> {
191193
LibraryVersionChoice choice = versions.getValue();

launcher/src/main/java/net/modtale/launcher/ui/library/LibraryWorldRenderer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ private Node versionControls(LibraryWorldProjectModel model) {
370370
.findFirst()
371371
.ifPresentOrElse(versions::setValue, () -> versions.setValue(choices.getFirst()));
372372

373-
Button switchButton = primaryButton("Switch");
373+
Button switchButton = primaryButton("");
374+
switchButton.setAccessibleText("Switch version");
375+
switchButton.setTooltip(new Tooltip("Switch version"));
374376
switchButton.setGraphic(LauncherIcons.icon(LauncherIcons.Glyph.DOWNLOAD, 13));
375377
switchButton.setOnAction(event -> {
376378
LibraryVersionChoice choice = versions.getValue();

0 commit comments

Comments
 (0)