mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-04 03:46:57 -04:00
Remove some unnecessary tooltips (#3386)
* Remove some unnecessary tooltips These texts are basically fixed, and the problem of too long texts can be solved by revising the translation for different languages. Currently, for both Chinese and English, the i18n keys involved in this PR will not be partially obscured due to long text, so their tooltips are removed. * fix checkstyle
This commit is contained in:
parent
e051c212d1
commit
b08d2b0dc0
@ -36,7 +36,6 @@ import org.jackhuang.hmcl.ui.versions.VersionSettingsPage;
|
|||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import static org.jackhuang.hmcl.ui.versions.VersionPage.wrap;
|
import static org.jackhuang.hmcl.ui.versions.VersionPage.wrap;
|
||||||
import static org.jackhuang.hmcl.ui.FXUtils.runInFX;
|
|
||||||
import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
|
import static org.jackhuang.hmcl.util.i18n.I18n.i18n;
|
||||||
|
|
||||||
public class LauncherSettingsPage extends DecoratorAnimatedPage implements DecoratorPage, PageAware {
|
public class LauncherSettingsPage extends DecoratorAnimatedPage implements DecoratorPage, PageAware {
|
||||||
@ -76,7 +75,6 @@ public class LauncherSettingsPage extends DecoratorAnimatedPage implements Decor
|
|||||||
settingsItem.setTitle(i18n("settings.type.global.manage"));
|
settingsItem.setTitle(i18n("settings.type.global.manage"));
|
||||||
settingsItem.setLeftGraphic(wrap(SVG.GAMEPAD));
|
settingsItem.setLeftGraphic(wrap(SVG.GAMEPAD));
|
||||||
settingsItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(gameTab));
|
settingsItem.activeProperty().bind(tab.getSelectionModel().selectedItemProperty().isEqualTo(gameTab));
|
||||||
runInFX(() -> FXUtils.installFastTooltip(settingsItem, i18n("settings.type.global.manage")));
|
|
||||||
settingsItem.setOnAction(e -> tab.select(gameTab));
|
settingsItem.setOnAction(e -> tab.select(gameTab));
|
||||||
})
|
})
|
||||||
.addNavigationDrawerItem(javaItem -> {
|
.addNavigationDrawerItem(javaItem -> {
|
||||||
|
@ -91,13 +91,11 @@ public class GameListPage extends DecoratorAnimatedPage implements DecoratorPage
|
|||||||
installNewGameItem.setTitle(i18n("install.new_game"));
|
installNewGameItem.setTitle(i18n("install.new_game"));
|
||||||
installNewGameItem.setLeftGraphic(VersionPage.wrap(SVG.PLUS_CIRCLE_OUTLINE));
|
installNewGameItem.setLeftGraphic(VersionPage.wrap(SVG.PLUS_CIRCLE_OUTLINE));
|
||||||
installNewGameItem.setOnAction(e -> Versions.addNewGame());
|
installNewGameItem.setOnAction(e -> Versions.addNewGame());
|
||||||
runInFX(() -> FXUtils.installFastTooltip(installNewGameItem, i18n("install.new_game")));
|
|
||||||
})
|
})
|
||||||
.addNavigationDrawerItem(installModpackItem -> {
|
.addNavigationDrawerItem(installModpackItem -> {
|
||||||
installModpackItem.setTitle(i18n("install.modpack"));
|
installModpackItem.setTitle(i18n("install.modpack"));
|
||||||
installModpackItem.setLeftGraphic(VersionPage.wrap(SVG.PACK));
|
installModpackItem.setLeftGraphic(VersionPage.wrap(SVG.PACK));
|
||||||
installModpackItem.setOnAction(e -> Versions.importModpack());
|
installModpackItem.setOnAction(e -> Versions.importModpack());
|
||||||
runInFX(() -> FXUtils.installFastTooltip(installModpackItem, i18n("install.modpack")));
|
|
||||||
})
|
})
|
||||||
.addNavigationDrawerItem(refreshItem -> {
|
.addNavigationDrawerItem(refreshItem -> {
|
||||||
refreshItem.setTitle(i18n("button.refresh"));
|
refreshItem.setTitle(i18n("button.refresh"));
|
||||||
@ -108,7 +106,6 @@ public class GameListPage extends DecoratorAnimatedPage implements DecoratorPage
|
|||||||
globalManageItem.setTitle(i18n("settings.type.global.manage"));
|
globalManageItem.setTitle(i18n("settings.type.global.manage"));
|
||||||
globalManageItem.setLeftGraphic(VersionPage.wrap(SVG.GEAR_OUTLINE));
|
globalManageItem.setLeftGraphic(VersionPage.wrap(SVG.GEAR_OUTLINE));
|
||||||
globalManageItem.setOnAction(e -> modifyGlobalGameSettings());
|
globalManageItem.setOnAction(e -> modifyGlobalGameSettings());
|
||||||
runInFX(() -> FXUtils.installFastTooltip(globalManageItem, i18n("settings.type.global.manage")));
|
|
||||||
});
|
});
|
||||||
FXUtils.setLimitHeight(bottomLeftCornerList, 40 * 4 + 12 * 2);
|
FXUtils.setLimitHeight(bottomLeftCornerList, 40 * 4 + 12 * 2);
|
||||||
setLeft(pane, bottomLeftCornerList);
|
setLeft(pane, bottomLeftCornerList);
|
||||||
|
@ -244,7 +244,6 @@ public class VersionPage extends DecoratorAnimatedPage implements DecoratorPage
|
|||||||
versionSettingsItem.setLeftGraphic(wrap(SVG.GEAR_OUTLINE));
|
versionSettingsItem.setLeftGraphic(wrap(SVG.GEAR_OUTLINE));
|
||||||
versionSettingsItem.setActionButtonVisible(false);
|
versionSettingsItem.setActionButtonVisible(false);
|
||||||
versionSettingsItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.versionSettingsTab));
|
versionSettingsItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.versionSettingsTab));
|
||||||
runInFX(() -> FXUtils.installFastTooltip(versionSettingsItem, i18n("settings.game")));
|
|
||||||
versionSettingsItem.setOnAction(e -> control.tab.select(control.versionSettingsTab));
|
versionSettingsItem.setOnAction(e -> control.tab.select(control.versionSettingsTab));
|
||||||
|
|
||||||
AdvancedListItem installerListItem = new AdvancedListItem();
|
AdvancedListItem installerListItem = new AdvancedListItem();
|
||||||
@ -253,7 +252,6 @@ public class VersionPage extends DecoratorAnimatedPage implements DecoratorPage
|
|||||||
installerListItem.setLeftGraphic(wrap(SVG.CUBE));
|
installerListItem.setLeftGraphic(wrap(SVG.CUBE));
|
||||||
installerListItem.setActionButtonVisible(false);
|
installerListItem.setActionButtonVisible(false);
|
||||||
installerListItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.installerListTab));
|
installerListItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.installerListTab));
|
||||||
runInFX(() -> FXUtils.installFastTooltip(installerListItem, i18n("settings.tabs.installers")));
|
|
||||||
installerListItem.setOnAction(e -> control.tab.select(control.installerListTab));
|
installerListItem.setOnAction(e -> control.tab.select(control.installerListTab));
|
||||||
|
|
||||||
AdvancedListItem modListItem = new AdvancedListItem();
|
AdvancedListItem modListItem = new AdvancedListItem();
|
||||||
@ -262,7 +260,6 @@ public class VersionPage extends DecoratorAnimatedPage implements DecoratorPage
|
|||||||
modListItem.setLeftGraphic(wrap(SVG.PUZZLE));
|
modListItem.setLeftGraphic(wrap(SVG.PUZZLE));
|
||||||
modListItem.setActionButtonVisible(false);
|
modListItem.setActionButtonVisible(false);
|
||||||
modListItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.modListTab));
|
modListItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.modListTab));
|
||||||
runInFX(() -> FXUtils.installFastTooltip(modListItem, i18n("mods.manage")));
|
|
||||||
modListItem.setOnAction(e -> control.tab.select(control.modListTab));
|
modListItem.setOnAction(e -> control.tab.select(control.modListTab));
|
||||||
|
|
||||||
AdvancedListItem worldListItem = new AdvancedListItem();
|
AdvancedListItem worldListItem = new AdvancedListItem();
|
||||||
@ -271,7 +268,6 @@ public class VersionPage extends DecoratorAnimatedPage implements DecoratorPage
|
|||||||
worldListItem.setLeftGraphic(wrap(SVG.EARTH));
|
worldListItem.setLeftGraphic(wrap(SVG.EARTH));
|
||||||
worldListItem.setActionButtonVisible(false);
|
worldListItem.setActionButtonVisible(false);
|
||||||
worldListItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.worldListTab));
|
worldListItem.activeProperty().bind(control.tab.getSelectionModel().selectedItemProperty().isEqualTo(control.worldListTab));
|
||||||
runInFX(() -> FXUtils.installFastTooltip(worldListItem, i18n("world.manage")));
|
|
||||||
worldListItem.setOnAction(e -> control.tab.select(control.worldListTab));
|
worldListItem.setOnAction(e -> control.tab.select(control.worldListTab));
|
||||||
|
|
||||||
AdvancedListBox sideBar = new AdvancedListBox()
|
AdvancedListBox sideBar = new AdvancedListBox()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user