feat: fontbuilder to streamline font styling
This commit is contained in:
@@ -112,7 +112,7 @@ Scope {
|
||||
|
||||
MaterialIcon {
|
||||
anchors.fill: parent
|
||||
font.pointSize: 64
|
||||
fontStyle: Tokens.font.icon.size(64).build()
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: "security"
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
@@ -129,8 +129,7 @@ Scope {
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
Layout.preferredWidth: Math.min(600, contentWidth)
|
||||
font.bold: true
|
||||
font.pointSize: 16
|
||||
font: Tokens.font.title.builders.medium.weight(Font.Bold).build()
|
||||
text: polkitAgent.flow?.message ?? ""
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
@@ -139,8 +138,7 @@ Scope {
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
Layout.preferredWidth: Math.min(600, contentWidth)
|
||||
color: Colors.tPalette.m3onSurfaceVariant
|
||||
font.bold: true
|
||||
font.pointSize: 12
|
||||
font: Tokens.font.title.builders.small.weight(Font.Bold).build()
|
||||
text: polkitAgent.flow?.supplementaryMessage || "No Additional Information"
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
@@ -155,6 +153,7 @@ Scope {
|
||||
placeholderText: polkitAgent.flow?.failed ? " Incorrect Password" : " Input Password"
|
||||
placeholderTextColor: polkitAgent.flow?.failed ? Colors.palette.m3onError : Colors.tPalette.m3onSurfaceVariant
|
||||
selectByMouse: true
|
||||
font: Tokens.font.body.small
|
||||
|
||||
background: CustomRect {
|
||||
color: (polkitAgent.flow?.failed && passInput.text === "") ? Colors.palette.m3error : Colors.tPalette.m3surfaceVariant
|
||||
@@ -342,8 +341,7 @@ Scope {
|
||||
visible: panelWindow.visible
|
||||
|
||||
Behavior on color {
|
||||
CAnim {
|
||||
}
|
||||
CAnim {}
|
||||
}
|
||||
|
||||
anchors {
|
||||
|
||||
Reference in New Issue
Block a user