FreeKill/Fk/ModMaker/UserInfo.qml
notify 7f718503bd
Misc (#184)
- 复活角色
- 将cancelable全改为默认true
- move私有牌堆的未知牌时不再显示错误
- 处理区牌增加大多数脚注
- 装备栏有宝物时压缩间距
- 使用虚拟牌时处理区有虚拟名字
- 带详细描述的选择框
- 武将一览界面显示技能语音、胜利语音、死亡语音
2023-06-10 02:18:51 +08:00

76 lines
1.4 KiB
QML

// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
ColumnLayout {
anchors.fill: parent
anchors.margins: 16
signal finished()
Text {
text: qsTr("help_text")
Layout.fillWidth: true
wrapMode: Text.WordWrap
}
RowLayout {
anchors.rightMargin: 8
spacing: 16
Text {
text: qsTr("username")
}
TextField {
id: userName
font.pixelSize: 18
text: modConfig.userName
Layout.fillWidth: true
onTextChanged: {
modConfig.userName = text;
modConfig.saveConf();
}
}
}
RowLayout {
anchors.rightMargin: 8
spacing: 16
Text {
text: qsTr("email")
}
TextField {
id: emailAddr
font.pixelSize: 18
Layout.fillWidth: true
text: modConfig.email
onTextChanged: {
modConfig.email = text;
modConfig.saveConf();
}
}
}
Text {
text: qsTr("key_help_text")
Layout.fillWidth: true
wrapMode: Text.WordWrap
textFormat: Text.RichText
onLinkActivated: Qt.openUrlExternally(link);
}
Button {
text: qsTr("copy pubkey")
Layout.fillWidth: true
onClicked: {
const key = "mymod/id_rsa.pub";
if (!Backend.exists(key)) {
ModBackend.initKey();
}
const pubkey = ModBackend.readFile(key);
Backend.copyToClipboard(pubkey);
toast.show(qsTr("pubkey copied"));
}
}
}