Typography++

NText is now fontWeightRegular
Transformed a few Text into NText
Checked boldness
Improved DemoPanel scaling and look
This commit is contained in:
quadbyte 2025-08-10 22:59:42 -04:00
parent 6ce7c7d55d
commit c64d14319e
16 changed files with 584 additions and 180 deletions

View file

@ -18,6 +18,7 @@ Rectangle {
id: textItem
text: Time.time
anchors.centerIn: parent
font.weight: Style.fontWeightBold
}
MouseArea {

View file

@ -25,7 +25,7 @@ Rectangle {
color: root.hovering ? Colors.accentPrimary : "transparent"
Text {
NText {
anchors.centerIn: parent
anchors.horizontalCenterOffset: 0
anchors.verticalCenterOffset: 0

View file

@ -52,13 +52,12 @@ Item {
bottomLeftRadius: pillHeight * 0.5
anchors.verticalCenter: parent.verticalCenter
Text {
NText {
id: textItem
anchors.centerIn: parent
text: root.text
font.pointSize: Colors.fontSizeSmall * scaling
font.family: Settings.data.ui.fontFamily
font.weight: Font.Bold
font.weight: Style.fontWeightBold
color: textColor
visible: showPill
}

View file

@ -9,6 +9,6 @@ Text {
font.family: Settings.data.ui.fontFamily
font.pointSize: Style.fontSizeMedium * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightRegular
color: Colors.textPrimary
}

View file

@ -19,14 +19,14 @@ RowLayout {
spacing: 2 * scaling
Layout.fillWidth: true
Text {
NText {
text: label
font.pointSize: Style.fontSizeMedium * scaling
font.bold: true
font.weight: Style.fontWeightBold
color: Colors.textPrimary
}
Text {
NText {
text: description
font.pointSize: Style.fontSizeSmall * scaling
color: Colors.textSecondary

View file

@ -112,7 +112,6 @@ Window {
anchors.centerIn: parent
text: root.text
font.pointSize: Style.fontSizeMedium * scaling
font.weight: Style.fontWeightRegular
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.Wrap