refaktor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import "../../../colors"
|
||||
import "../../../config"
|
||||
|
||||
Item { // Kana_Try
|
||||
id: kanaVoicing
|
||||
@@ -96,6 +96,7 @@ Item { // Kana_Try
|
||||
text: "Im Spiel - Runde: " + kanaVoicing.roundNum
|
||||
anchors.centerIn: parent
|
||||
font.pixelSize: parent.height * 0.6
|
||||
font.family: Config.font
|
||||
color: Colors.primary
|
||||
}
|
||||
}
|
||||
@@ -116,6 +117,7 @@ Item { // Kana_Try
|
||||
text: typeof kanaVoicing.currentKana.hira === "undefined" ? "" : kanaVoicing.currentKana.hira
|
||||
anchors.centerIn: parent
|
||||
font.pixelSize: Math.min(parent.width / text.length * 1.2, parent.height * 0.8)
|
||||
font.family: Config.jfont
|
||||
color: Colors.primary
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user