使用 subtitle 显示预览更新提示 (#5019)
This commit is contained in:
@@ -51,8 +51,9 @@ public class OptionToggleButton extends StackPane {
|
|||||||
Label titleLabel = new Label();
|
Label titleLabel = new Label();
|
||||||
titleLabel.textProperty().bind(title);
|
titleLabel.textProperty().bind(title);
|
||||||
Label subtitleLabel = new Label();
|
Label subtitleLabel = new Label();
|
||||||
subtitleLabel.setMouseTransparent(true);
|
|
||||||
subtitleLabel.setWrapText(true);
|
subtitleLabel.setWrapText(true);
|
||||||
|
subtitleLabel.setMouseTransparent(true);
|
||||||
|
subtitleLabel.getStyleClass().add("subtitle");
|
||||||
subtitleLabel.textProperty().bind(subtitle);
|
subtitleLabel.textProperty().bind(subtitle);
|
||||||
pane.setCenter(left);
|
pane.setCenter(left);
|
||||||
left.setAlignment(Pos.CENTER_LEFT);
|
left.setAlignment(Pos.CENTER_LEFT);
|
||||||
|
|||||||
@@ -210,8 +210,8 @@ public final class SettingsPage extends ScrollPane {
|
|||||||
{
|
{
|
||||||
OptionToggleButton previewPane = new OptionToggleButton();
|
OptionToggleButton previewPane = new OptionToggleButton();
|
||||||
previewPane.setTitle(i18n("update.preview"));
|
previewPane.setTitle(i18n("update.preview"));
|
||||||
|
previewPane.setSubtitle(i18n("update.preview.subtitle"));
|
||||||
previewPane.selectedProperty().bindBidirectional(config().acceptPreviewUpdateProperty());
|
previewPane.selectedProperty().bindBidirectional(config().acceptPreviewUpdateProperty());
|
||||||
FXUtils.installFastTooltip(previewPane, i18n("update.preview.tooltip"));
|
|
||||||
|
|
||||||
ObjectProperty<UpdateChannel> updateChannel = selectedItemPropertyFor(updateChannelGroup, UpdateChannel.class);
|
ObjectProperty<UpdateChannel> updateChannel = selectedItemPropertyFor(updateChannelGroup, UpdateChannel.class);
|
||||||
updateChannel.set(UpdateChannel.getChannel());
|
updateChannel.set(UpdateChannel.getChannel());
|
||||||
|
|||||||
@@ -1538,7 +1538,7 @@ update.latest=This is the latest version
|
|||||||
update.no_browser=Cannot open in system browser. But we copied the link to your clipboard, and you can open it manually.
|
update.no_browser=Cannot open in system browser. But we copied the link to your clipboard, and you can open it manually.
|
||||||
update.tooltip=Update
|
update.tooltip=Update
|
||||||
update.preview=Preview HMCL releases early
|
update.preview=Preview HMCL releases early
|
||||||
update.preview.tooltip=Enable this option to receive new versions of HMCL early for testing before their official release.
|
update.preview.subtitle=Enable this option to receive new versions of HMCL early for testing before their official release.
|
||||||
|
|
||||||
version=Games
|
version=Games
|
||||||
version.name=Instance Name
|
version.name=Instance Name
|
||||||
|
|||||||
@@ -1526,7 +1526,7 @@ update.latest=هذا هو أحدث إصدار
|
|||||||
update.no_browser=لا يمكن الفتح في متصفح النظام. ولكننا نسخنا الرابط إلى الحافظة الخاصة بك، ويمكنك فتحه يدويًا.
|
update.no_browser=لا يمكن الفتح في متصفح النظام. ولكننا نسخنا الرابط إلى الحافظة الخاصة بك، ويمكنك فتحه يدويًا.
|
||||||
update.tooltip=تحديث
|
update.tooltip=تحديث
|
||||||
update.preview=معاينة إصدارات HMCL مبكرًا
|
update.preview=معاينة إصدارات HMCL مبكرًا
|
||||||
update.preview.tooltip=قم بتفعيل هذا الخيار لاستلام إصدارات جديدة من HMCL مبكرًا للاختبار قبل إصدارها الرسمي.
|
update.preview.subtitle=قم بتفعيل هذا الخيار لاستلام إصدارات جديدة من HMCL مبكرًا للاختبار قبل إصدارها الرسمي.
|
||||||
|
|
||||||
version=الألعاب
|
version=الألعاب
|
||||||
version.name=اسم النسخة
|
version.name=اسم النسخة
|
||||||
|
|||||||
@@ -1447,7 +1447,7 @@ update.latest=Esta es la última versión.
|
|||||||
update.no_browser=No se puede abrir en el navegador del sistema. Pero, hemos copiado el enlace a su portapapeles y puede abrirlo manualmente.
|
update.no_browser=No se puede abrir en el navegador del sistema. Pero, hemos copiado el enlace a su portapapeles y puede abrirlo manualmente.
|
||||||
update.tooltip=Actualización
|
update.tooltip=Actualización
|
||||||
update.preview=Vista previa de actualizaciones anticipadas
|
update.preview=Vista previa de actualizaciones anticipadas
|
||||||
update.preview.tooltip=Activa esta opción para recibir nuevas versiones del lanzador antes de su lanzamiento oficial para probarlas
|
update.preview.subtitle=Activa esta opción para recibir nuevas versiones del lanzador antes de su lanzamiento oficial para probarlas
|
||||||
|
|
||||||
version=Juegos
|
version=Juegos
|
||||||
version.name=Nombre de instancia
|
version.name=Nombre de instancia
|
||||||
|
|||||||
@@ -1322,7 +1322,7 @@ update.latest=目前版本為最新版本
|
|||||||
update.no_browser=無法開啟瀏覽器。網址已經複製到剪貼簿了,你可以手動複製網址開啟頁面。
|
update.no_browser=無法開啟瀏覽器。網址已經複製到剪貼簿了,你可以手動複製網址開啟頁面。
|
||||||
update.tooltip=更新
|
update.tooltip=更新
|
||||||
update.preview=提前測試 HMCL 預覽版本
|
update.preview=提前測試 HMCL 預覽版本
|
||||||
update.preview.tooltip=啟用此選項,你將可以提前取得 HMCL 的新版本,以便在正式發布前進行測試。
|
update.preview.subtitle=啟用此選項,你將可以提前取得 HMCL 的新版本,以便在正式發布前進行測試。
|
||||||
|
|
||||||
version=遊戲
|
version=遊戲
|
||||||
version.name=遊戲實例名稱
|
version.name=遊戲實例名稱
|
||||||
|
|||||||
@@ -1332,7 +1332,7 @@ update.latest=当前版本为最新版本
|
|||||||
update.no_browser=无法打开浏览器。网址已经复制到剪贴板,你可以手动粘贴网址打开页面。
|
update.no_browser=无法打开浏览器。网址已经复制到剪贴板,你可以手动粘贴网址打开页面。
|
||||||
update.tooltip=更新
|
update.tooltip=更新
|
||||||
update.preview=提前预览 HMCL 版本
|
update.preview=提前预览 HMCL 版本
|
||||||
update.preview.tooltip=启用此选项,你将可以提前获取 HMCL 的新版本,以便在正式发布前进行测试。
|
update.preview.subtitle=启用此选项,你将可以提前获取 HMCL 的新版本,以便在正式发布前进行测试。
|
||||||
|
|
||||||
version=游戏
|
version=游戏
|
||||||
version.name=游戏实例名称
|
version.name=游戏实例名称
|
||||||
|
|||||||
Reference in New Issue
Block a user