NHeader: use label instead of title (matches NLabel)

This commit is contained in:
LemmyCook 2025-09-14 10:24:09 -04:00
parent 2a262999ce
commit c09a93af48
15 changed files with 43 additions and 59 deletions

View file

@ -10,7 +10,7 @@ ColumnLayout {
id: root id: root
NHeader { NHeader {
title: "Audio Settings" label: "Audio Settings"
description: "Configure system audio, devices, and media player preferences." description: "Configure system audio, devices, and media player preferences."
} }
@ -164,7 +164,7 @@ ColumnLayout {
spacing: Style.marginS * scaling spacing: Style.marginS * scaling
NHeader { NHeader {
title: "Audio Devices" label: "Audio Devices"
} }
// ------------------------------- // -------------------------------
@ -236,7 +236,7 @@ ColumnLayout {
spacing: Style.marginL * scaling spacing: Style.marginL * scaling
NHeader { NHeader {
title: "Media Player" label: "Media Player"
} }
// Preferred player // Preferred player
@ -358,7 +358,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Audio Visualizer" label: "Audio Visualizer"
} }
// AudioService Visualizer section // AudioService Visualizer section

View file

@ -11,7 +11,7 @@ ColumnLayout {
id: root id: root
NHeader { NHeader {
title: "Bar Settings" label: "Bar Settings"
description: "Configure bar appearance, positioning, and monitor settings." description: "Configure bar appearance, positioning, and monitor settings."
} }
@ -86,7 +86,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Background Opacity" label: "Background Opacity"
description: "Adjust the background opacity of the bar." description: "Adjust the background opacity of the bar."
} }
@ -210,7 +210,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Monitor Configuration" label: "Monitor Configuration"
description: "Choose which monitors should display the bar." description: "Choose which monitors should display the bar."
} }
@ -244,9 +244,8 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Widgets Positioning" label: "Widgets Positioning"
description: "Drag and drop widgets to reorder them within each section, or use the add/remove buttons to manage widgets." description: "Drag and drop widgets to reorder them within each section, or use the add/remove buttons to manage widgets."
bottomMargin: 0
} }
// Bar Sections // Bar Sections

View file

@ -11,7 +11,7 @@ ColumnLayout {
spacing: 0 spacing: 0
NHeader { NHeader {
title: "Color Schemes" label: "Color Schemes"
description: "Choose and customize color schemes for your interface." description: "Choose and customize color schemes for your interface."
} }
@ -157,7 +157,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Predefined Color Schemes" label: "Predefined Color Schemes"
description: "To use these color schemes, you must turn off Matugen. With Matugen enabled, colors are automatically generated from your wallpaper." description: "To use these color schemes, you must turn off Matugen. With Matugen enabled, colors are automatically generated from your wallpaper."
} }

View file

@ -219,11 +219,8 @@ ColumnLayout {
spacing: Style.marginS * scaling spacing: Style.marginS * scaling
Layout.fillWidth: true Layout.fillWidth: true
NText { NHeader {
text: "Brightness" label: "Brightness"
font.pointSize: Style.fontSizeXXL * scaling
font.weight: Style.fontWeightBold
color: Color.mSecondary
} }
// Brightness Step Section // Brightness Step Section
@ -258,19 +255,9 @@ ColumnLayout {
spacing: Style.marginXS * scaling spacing: Style.marginXS * scaling
Layout.fillWidth: true Layout.fillWidth: true
NText { NHeader {
text: "Night Light" label: "Night Light"
font.pointSize: Style.fontSizeXXL * scaling description: "Reduce blue light emission to help you sleep better and reduce eye strain."
font.weight: Style.fontWeightBold
color: Color.mSecondary
}
NText {
text: "Reduce blue light emission to help you sleep better and reduce eye strain."
font.pointSize: Style.fontSizeM * scaling
color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap
Layout.fillWidth: true
} }
} }

View file

@ -12,7 +12,7 @@ ColumnLayout {
width: root.width width: root.width
NHeader { NHeader {
title: "Dock Settings" label: "Dock Settings"
description: "Configure dock behavior, appearance, and monitor settings." description: "Configure dock behavior, appearance, and monitor settings."
} }
@ -55,7 +55,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Monitor Configuration" label: "Monitor Configuration"
description: "Choose which monitors should display the dock." description: "Choose which monitors should display the dock."
} }
@ -88,7 +88,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Background Opacity" label: "Background Opacity"
description: "Adjust the background opacity." description: "Adjust the background opacity."
} }
@ -123,7 +123,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Dock Floating Distance" label: "Dock Floating Distance"
description: "Adjust the floating distance from the screen edge." description: "Adjust the floating distance from the screen edge."
} }

View file

@ -10,7 +10,7 @@ ColumnLayout {
id: root id: root
NHeader { NHeader {
title: "Profile" label: "Profile"
description: "Configure your user profile and avatar settings." description: "Configure your user profile and avatar settings."
} }
@ -54,7 +54,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "User Interface" label: "User Interface"
} }
NToggle { NToggle {
@ -135,7 +135,7 @@ ColumnLayout {
spacing: Style.marginL * scaling spacing: Style.marginL * scaling
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Screen Corners" label: "Screen Corners"
} }
NToggle { NToggle {
@ -184,8 +184,9 @@ ColumnLayout {
ColumnLayout { ColumnLayout {
spacing: Style.marginL * scaling spacing: Style.marginL * scaling
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Fonts" label: "Fonts"
} }
// Font configuration section // Font configuration section

View file

@ -11,7 +11,7 @@ ColumnLayout {
width: root.width width: root.width
NHeader { NHeader {
title: "System Hooks" label: "System Hooks"
description: "Configure commands to be executed when system events occur." description: "Configure commands to be executed when system events occur."
} }

View file

@ -9,7 +9,7 @@ ColumnLayout {
id: root id: root
NHeader { NHeader {
title: "Launcher Settings" label: "Launcher Settings"
description: "Configure the application launcher panel behavior and appearance." description: "Configure the application launcher panel behavior and appearance."
} }

View file

@ -12,7 +12,7 @@ ColumnLayout {
spacing: Style.marginL * scaling spacing: Style.marginL * scaling
NHeader { NHeader {
title: "Network Settings" label: "Network Settings"
description: "Configure Wi-Fi and Bluetooth connectivity options." description: "Configure Wi-Fi and Bluetooth connectivity options."
} }

View file

@ -28,7 +28,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "General Settings" label: "General Settings"
} }
NToggle { NToggle {
@ -51,7 +51,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Monitor Configuration" label: "Monitor Configuration"
description: "Choose which monitors should display notifications." description: "Choose which monitors should display notifications."
} }
@ -85,7 +85,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Notification Duration" label: "Notification Duration"
description: "Configure how long notifications stay visible based on their urgency level." description: "Configure how long notifications stay visible based on their urgency level."
} }

View file

@ -11,7 +11,7 @@ ColumnLayout {
spacing: Style.marginL * scaling spacing: Style.marginL * scaling
NHeader { NHeader {
title: "Screen Recorder" label: "Screen Recorder"
description: "Configure screen recording settings and output options." description: "Configure screen recording settings and output options."
} }
@ -59,7 +59,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Video Settings" label: "Video Settings"
} }
// Source // Source
@ -205,7 +205,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Audio Settings" label: "Audio Settings"
} }
// Audio Source // Audio Source

View file

@ -13,7 +13,7 @@ ColumnLayout {
spacing: Style.marginL * scaling spacing: Style.marginL * scaling
NHeader { NHeader {
title: "Wallpaper Selector" label: "Wallpaper Selector"
description: "Browse and select wallpapers from your configured directory." description: "Browse and select wallpapers from your configured directory."
} }
@ -48,7 +48,7 @@ ColumnLayout {
// Current wallpaper display // Current wallpaper display
NHeader { NHeader {
title: "Current Wallpaper" label: "Current Wallpaper"
} }
Rectangle { Rectangle {
@ -83,7 +83,7 @@ ColumnLayout {
// Wallpaper grid // Wallpaper grid
NHeader { NHeader {
title: "Wallpaper Selector" label: "Wallpaper Selector"
description: "Click on a wallpaper to set it as your current wallpaper." description: "Click on a wallpaper to set it as your current wallpaper."
} }
} }

View file

@ -11,7 +11,7 @@ ColumnLayout {
id: root id: root
NHeader { NHeader {
title: "Wallpaper Management" label: "Wallpaper Management"
description: "Configure wallpaper settings, automation, and appearance options." description: "Configure wallpaper settings, automation, and appearance options."
} }
@ -95,7 +95,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Look & Feel" label: "Look & Feel"
} }
// Fill Mode // Fill Mode
@ -192,7 +192,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Automation" label: "Automation"
} }
// Random Wallpaper // Random Wallpaper

View file

@ -9,7 +9,7 @@ ColumnLayout {
id: root id: root
NHeader { NHeader {
title: "Weather & Location" label: "Weather & Location"
description: "Configure weather display and location settings." description: "Configure weather display and location settings."
} }
@ -63,7 +63,7 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NHeader { NHeader {
title: "Weather" label: "Weather"
} }
NToggle { NToggle {

View file

@ -5,19 +5,17 @@ import qs.Commons
ColumnLayout { ColumnLayout {
id: root id: root
property string title: "" property string label: ""
property string description: "" property string description: ""
property real bottomMargin: Style.marginL * scaling
spacing: Style.marginXXS * scaling spacing: Style.marginXXS * scaling
Layout.fillWidth: true Layout.fillWidth: true
NText { NText {
text: root.title text: root.label
font.pointSize: Style.fontSizeXXL * scaling font.pointSize: Style.fontSizeXXL * scaling
font.weight: Style.fontWeightBold font.weight: Style.fontWeightBold
color: Color.mSecondary color: Color.mSecondary
Layout.bottomMargin: Style.marginS * scaling
visible: root.title !== "" visible: root.title !== ""
} }
@ -27,7 +25,6 @@ ColumnLayout {
color: Color.mOnSurfaceVariant color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
Layout.fillWidth: true Layout.fillWidth: true
Layout.bottomMargin: root.bottomMargin
visible: root.description !== "" visible: root.description !== ""
} }
} }