Settings: better option names. Replaced many font.bold by the proper syntax with Style. + Minor adjustments

This commit is contained in:
quadbyte 2025-08-20 20:53:05 -04:00
parent a240eb027c
commit 122e95955d
5 changed files with 13 additions and 14 deletions

View file

@ -236,7 +236,6 @@ NPanel {
rightPadding: 0
topPadding: 0
bottomPadding: 0
font.bold: true
Component.onCompleted: {
// Focus the search bar by default
Qt.callLater(() => {
@ -360,7 +359,7 @@ NPanel {
|| modelData.isCommand)
text: modelData.name ? modelData.name.charAt(0).toUpperCase() : "?"
font.pointSize: Style.fontSizeXXL * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
color: Color.mPrimary
}
@ -379,7 +378,7 @@ NPanel {
NText {
text: modelData.name || "Unknown"
font.pointSize: Style.fontSizeL * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
color: (appCardArea.containsMouse || isSelected) ? Color.mOnPrimary : Color.mOnSurface
elide: Text.ElideRight
Layout.fillWidth: true

View file

@ -43,7 +43,7 @@ NPanel {
NText {
text: "WiFi"
font.pointSize: Style.fontSizeL * scaling
font.bold: true
font.weight: Style.fontWeightBold
color: Color.mOnSurface
Layout.fillWidth: true
}

View file

@ -257,7 +257,7 @@ Loader {
text: Qt.formatDateTime(new Date(), "HH:mm")
font.family: Settings.data.ui.fontBillboard
font.pointSize: Style.fontSizeXXXL * 6 * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
font.letterSpacing: -2 * scaling
color: Color.mOnSurface
horizontalAlignment: Text.AlignHCenter
@ -425,7 +425,7 @@ Loader {
color: Color.mOnSurface
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeL * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
Layout.fillWidth: true
}
@ -445,7 +445,7 @@ Loader {
color: Color.mOnSurface
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeM * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
}
}
}
@ -471,7 +471,7 @@ Loader {
color: Color.mPrimary
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeL * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
}
NText {
@ -509,7 +509,7 @@ Loader {
color: Color.mPrimary
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeL * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
}
NText {
@ -640,7 +640,7 @@ Loader {
color: executeButtonArea.containsMouse ? Color.mOnPrimary : Color.mPrimary
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeM * scaling
font.weight: Font.Bold
font.weight: Style.fontWeightBold
}
MouseArea {

View file

@ -38,7 +38,7 @@ NPanel {
NText {
text: "Notification History"
font.pointSize: Style.fontSizeL * scaling
font.bold: true
font.weight: Style.fontWeightBold
color: Color.mOnSurface
Layout.fillWidth: true
}
@ -131,7 +131,7 @@ NPanel {
text: (summary || "No summary").substring(0, 100)
font.pointSize: Style.fontSizeM * scaling
font.weight: Font.Medium
color: notificationMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface
color: notificationMouseArea.containsMouse ? Color.mSurface : Color.mPrimary
wrapMode: Text.Wrap
width: parent.width - 60
maximumLineCount: 2

View file

@ -80,7 +80,7 @@ ColumnLayout {
NToggle {
label: "Show Active Window"
description: "Display the title of the currently focused window on the left side of the bar."
description: "Display the title of the currently focused window."
checked: Settings.data.bar.showActiveWindow
onToggled: checked => {
Settings.data.bar.showActiveWindow = checked
@ -88,7 +88,7 @@ ColumnLayout {
}
NToggle {
label: "Show App Icon Next To Active Window"
label: "Show Active Window's Icon"
description: "Display the app icon next to the title of the currently focused window."
checked: Settings.data.bar.showActiveWindowIcon
onToggled: checked => {