修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 Layout.fillWidth: true
font.pixelSize: 18 font.pixelSize: 18
color: "#E4D5A0"
readOnly: true readOnly: true
selectByKeyboard: true selectByKeyboard: true

View File

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

View File

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

View File

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