NPill: using monospace font
This commit is contained in:
parent
e6372a2473
commit
80b4dad199
3 changed files with 3 additions and 2 deletions
|
|
@ -82,6 +82,7 @@ Item {
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.horizontalCenterOffset: openLeftward ? -6 * scaling : 6 * scaling // Adjust based on opening direction
|
anchors.horizontalCenterOffset: openLeftward ? -6 * scaling : 6 * scaling // Adjust based on opening direction
|
||||||
text: root.text
|
text: root.text
|
||||||
|
font.family: Settings.data.ui.fontFixed
|
||||||
font.pointSize: Style.fontSizeXXS * scaling
|
font.pointSize: Style.fontSizeXXS * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Color.mOnSurface
|
color: Color.mOnSurface
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ Item {
|
||||||
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
NVerticalText {
|
NTextVertical {
|
||||||
id: textItem
|
id: textItem
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ Column {
|
||||||
model: root.text.split("")
|
model: root.text.split("")
|
||||||
NText {
|
NText {
|
||||||
text: modelData
|
text: modelData
|
||||||
|
font.family: Settings.data.ui.fontFixed
|
||||||
font.pointSize: root.fontSize
|
font.pointSize: root.fontSize
|
||||||
font.weight: root.fontWeight
|
font.weight: root.fontWeight
|
||||||
font.family: Settings.data.ui.fontDefault
|
|
||||||
color: root.color
|
color: root.color
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue