feat: font pseudo-cirillico Russo One (OFL) incluso nel tema
This commit is contained in:
@@ -19,6 +19,12 @@ Rectangle {
|
||||
readonly property color panelBg: "#d9151517"
|
||||
readonly property color paper: "#f6f1e5"
|
||||
|
||||
// Font pseudo-cirillico (Russo One, OFL) incluso nel tema.
|
||||
FontLoader {
|
||||
id: themeFont
|
||||
source: "assets/fonts/RussoOne-Regular.ttf"
|
||||
}
|
||||
|
||||
// Utente selezionato dalla lista (quando il modello espone utenti).
|
||||
property string selectedUser: userModel.lastUser || ""
|
||||
|
||||
@@ -122,6 +128,7 @@ Rectangle {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: Qt.formatTime(new Date(), "HH:mm")
|
||||
color: root.cream
|
||||
font.family: themeFont.name
|
||||
font.pixelSize: Math.max(44, Math.min(root.width * 0.05, 88))
|
||||
font.bold: true
|
||||
font.letterSpacing: 4
|
||||
@@ -132,6 +139,7 @@ Rectangle {
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
text: root.italianDate(new Date())
|
||||
color: "#ef6a55"
|
||||
font.family: themeFont.name
|
||||
font.pixelSize: Math.max(13, Math.min(root.width * 0.014, 22))
|
||||
font.bold: true
|
||||
font.letterSpacing: 2
|
||||
@@ -202,6 +210,7 @@ Rectangle {
|
||||
Text {
|
||||
text: "ACCESSO"
|
||||
color: root.cream
|
||||
font.family: themeFont.name
|
||||
font.pixelSize: Math.max(20, Math.min(root.width * 0.024, 34))
|
||||
font.bold: true
|
||||
font.letterSpacing: 3
|
||||
@@ -210,6 +219,7 @@ Rectangle {
|
||||
Text {
|
||||
text: "INSERISCI LE CREDENZIALI"
|
||||
color: "#e85a48"
|
||||
font.family: themeFont.name
|
||||
font.pixelSize: Math.max(10, Math.min(root.width * 0.011, 15))
|
||||
font.bold: true
|
||||
font.letterSpacing: 1
|
||||
@@ -262,6 +272,7 @@ Rectangle {
|
||||
color: root.red
|
||||
font.bold: true
|
||||
font.letterSpacing: 1
|
||||
font.family: themeFont.name
|
||||
font.pixelSize: Math.max(11, Math.min(root.width * 0.012, 16))
|
||||
visible: text.length > 0
|
||||
wrapMode: Text.WordWrap
|
||||
@@ -282,6 +293,7 @@ Rectangle {
|
||||
color: root.paper
|
||||
font.bold: true
|
||||
font.letterSpacing: 3
|
||||
font.family: themeFont.name
|
||||
font.pixelSize: Math.max(14, Math.min(root.width * 0.015, 20))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user