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

View file

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

View file

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

View file

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

View file

@ -80,7 +80,7 @@ ColumnLayout {
NToggle { NToggle {
label: "Show Active Window" 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 checked: Settings.data.bar.showActiveWindow
onToggled: checked => { onToggled: checked => {
Settings.data.bar.showActiveWindow = checked Settings.data.bar.showActiveWindow = checked
@ -88,7 +88,7 @@ ColumnLayout {
} }
NToggle { 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." description: "Display the app icon next to the title of the currently focused window."
checked: Settings.data.bar.showActiveWindowIcon checked: Settings.data.bar.showActiveWindowIcon
onToggled: checked => { onToggled: checked => {