修ui小bug
This commit is contained in:
notify 2023-12-12 19:22:18 +08:00 committed by GitHub
parent 8710c1f14f
commit 82a1c5f5d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 6 deletions

View File

@ -24,6 +24,7 @@ Flickable {
Layout.fillWidth: true
font.pixelSize: 18
color: "#E4D5A0"
readOnly: true
selectByKeyboard: true

View File

@ -26,7 +26,10 @@ Item {
}
ColumnLayout {
Text { text: Backend.translate(gname) }
Text {
color: "#E4D5A0"
text: Backend.translate(gname)
}
GridLayout {
columns: 6

View File

@ -33,8 +33,8 @@ ListView {
font.pixelSize: 16
TapHandler {
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.NoButton
gesturePolicy: TapHandler.WithinBounds
// acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.NoButton
// gesturePolicy: TapHandler.WithinBounds
onTapped: root.currentIndex = index;
}
}

View File

@ -66,7 +66,7 @@ Item {
anchors.top: parent.top
anchors.left: parent.left
anchors.margins: 8
general: general
general: _general
}
ColumnLayout {
@ -76,7 +76,7 @@ Item {
text: {
const win = winner.split("+").indexOf(role) !== -1;
const winStr = win ? Backend.translate("Game Win") : Backend.translate("Game Lose");
return "<b>" + Backend.translate(general) + "</b> " + Backend.translate(role) + " " + winStr;
return "<b>" + Backend.translate(_general) + "</b> " + Backend.translate(role) + " " + winStr;
}
font.pixelSize: 20
textFormat: Text.RichText
@ -148,7 +148,7 @@ Item {
repDate: t,
playerName: name,
gameMode: mode,
general: general,
_general: general,
role: role,
winner: winner,
})