NPill: using monospace font

This commit is contained in:
ItsLemmy 2025-09-14 07:27:14 -04:00
parent e6372a2473
commit 80b4dad199
3 changed files with 3 additions and 2 deletions

View file

@ -82,6 +82,7 @@ Item {
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenterOffset: openLeftward ? -6 * scaling : 6 * scaling // Adjust based on opening direction
text: root.text
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeXXS * scaling
font.weight: Style.fontWeightBold
color: Color.mOnSurface

View file

@ -76,7 +76,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter
NVerticalText {
NTextVertical {
id: textItem
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter

View file

@ -16,9 +16,9 @@ Column {
model: root.text.split("")
NText {
text: modelData
font.family: Settings.data.ui.fontFixed
font.pointSize: root.fontSize
font.weight: root.fontWeight
font.family: Settings.data.ui.fontDefault
color: root.color
horizontalAlignment: Text.AlignHCenter
}