Support copying the UUID of the account (#2364)

This commit is contained in:
Burning_TNT
2023-07-08 23:00:19 +08:00
committed by GitHub
parent 4d88c2b1bb
commit 80b53119ed
4 changed files with 12 additions and 0 deletions

View File

@@ -167,6 +167,15 @@ public class AccountListItemSkin extends SkinBase<AccountListItem> {
spinnerUpload.getStyleClass().add("small-spinner-pane");
right.getChildren().add(spinnerUpload);
JFXButton btnCopyUUID = new JFXButton();
SpinnerPane spinnerCopyUUID = new SpinnerPane();
spinnerCopyUUID.getStyleClass().add("small-spinner-pane");
btnCopyUUID.setOnMouseClicked(e -> FXUtils.copyText(skinnable.getAccount().getUUID().toString()));
btnCopyUUID.setGraphic(SVG.copy(Theme.blackFillBinding(), -1, -1));
runInFX(() -> FXUtils.installFastTooltip(btnCopyUUID, i18n("account.copy_uuid")));
spinnerCopyUUID.setContent(btnCopyUUID);
right.getChildren().add(spinnerCopyUUID);
JFXButton btnRemove = new JFXButton();
btnRemove.setOnMouseClicked(e -> skinnable.remove());
btnRemove.getStyleClass().add("toggle-icon4");

View File

@@ -89,6 +89,7 @@ account.login.refresh.microsoft.hint=Because the account authorization is invali
account.logout=Logout
account.register=Register
account.manage=Account List
account.copy_uuid=Copy the UUID of the account.
account.methods=Login Type
account.methods.authlib_injector=authlib-injector
account.methods.microsoft=Microsoft Account

View File

@@ -90,6 +90,7 @@ account.login.refresh.microsoft.hint=因為賬戶授權失效,你需要重新
account.logout=登出
account.register=註冊
account.manage=帳戶列表
account.copy_uuid=複製該賬戶的 UUID。
account.methods=登入方式
account.methods.authlib_injector=authlib-injector 登入
account.methods.microsoft=微軟帳戶

View File

@@ -91,6 +91,7 @@ account.login.refresh.microsoft.hint=因为账户授权失效,你需要重新
account.logout=登出
account.register=注册
account.manage=帐户列表
account.copy_uuid=复制该账户的 UUID。
account.methods=登录方式
account.methods.authlib_injector=外置登录 (authlib-injector)
account.methods.microsoft=微软帐户