QuickSettings: minor layout tweaks

This commit is contained in:
ItsLemmy
2025-10-09 21:29:07 -04:00
parent b2c5c71116
commit 789354464d
12 changed files with 8 additions and 23 deletions
+3 -3
View File
@@ -84,7 +84,7 @@ NBox {
anchors.fill: parent
values: CavaService.values
fillColor: Color.mPrimary
opacity: MediaService.trackArtUrl !== "" ? 0.4 : 0.8
opacity: MediaService.trackArtUrl !== "" ? 0.5 : 0.8
}
}
@@ -94,7 +94,7 @@ NBox {
anchors.fill: parent
values: CavaService.values
fillColor: Color.mPrimary
opacity: MediaService.trackArtUrl !== "" ? 0.4 : 0.8
opacity: MediaService.trackArtUrl !== "" ? 0.5 : 0.8
}
}
@@ -104,7 +104,7 @@ NBox {
anchors.fill: parent
values: CavaService.values
fillColor: Color.mPrimary
opacity: MediaService.trackArtUrl !== "" ? 0.4 : 0.8
opacity: MediaService.trackArtUrl !== "" ? 0.5 : 0.8
}
}
}
+1 -1
View File
@@ -106,7 +106,7 @@ NBox {
id: grid
Layout.fillWidth: true
columns: (Settings.data.controlCenter.quickSettingsStyle === "compact") ? 4 : 3
columnSpacing: Style.marginM * scaling
columnSpacing: Style.marginS * scaling
rowSpacing: Style.marginS * scaling
Repeater {
+1 -1
View File
@@ -10,7 +10,7 @@ import qs.Widgets
NPanel {
id: root
preferredWidth: 360
preferredWidth: 400
preferredHeight: topHeight + midHeight + bottomHeight + Math.round(Style.marginL * 4)
panelKeyboardFocus: true
@@ -9,8 +9,6 @@ NQuickSetting {
property real scaling: 1.0
text: I18n.tr("quickSettings.bluetooth.label.enabled")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
icon: BluetoothService.enabled ? "bluetooth" : "bluetooth-off"
tooltipText: I18n.tr("quickSettings.bluetooth.tooltip.action")
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
@@ -9,8 +9,6 @@ NQuickSetting {
property real scaling: 1.0
text: I18n.tr("quickSettings.keepAwake.label.enabled")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
icon: IdleInhibitorService.isInhibited ? "keep-awake-on" : "keep-awake-off"
hot: IdleInhibitorService.isInhibited
tooltipText: I18n.tr("quickSettings.keepAwake.tooltip.action")
@@ -10,8 +10,6 @@ NQuickSetting {
enabled: ProgramCheckerService.wlsunsetAvailable
text: I18n.tr("quickSettings.nightLight.label.enabled")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
icon: Settings.data.nightLight.enabled ? (Settings.data.nightLight.forced ? "nightlight-forced" : "nightlight-on") : "nightlight-off"
hot: !Settings.data.nightLight.enabled || Settings.data.nightLight.forced
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
@@ -9,8 +9,6 @@ NQuickSetting {
property real scaling: 1.0
text: Settings.data.notifications.doNotDisturb ? I18n.tr("quickSettings.notifications.label.disabled") : I18n.tr("quickSettings.notifications.label.enabled")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
icon: Settings.data.notifications.doNotDisturb ? "bell-off" : "bell"
hot: Settings.data.notifications.doNotDisturb
tooltipText: I18n.tr("quickSettings.notifications.tooltip.action")
@@ -13,8 +13,6 @@ NQuickSetting {
enabled: hasPP
text: hasPP ? PowerProfileService.getName() : I18n.tr("quickSettings.powerProfile.label.unavailable")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
icon: PowerProfileService.getIcon()
hot: !PowerProfileService.isDefault()
tooltipText: I18n.tr("quickSettings.powerProfile.tooltip.action")
@@ -11,8 +11,6 @@ NQuickSetting {
enabled: ProgramCheckerService.gpuScreenRecorderAvailable
icon: "camera-video"
text: ScreenRecorderService.isRecording ? I18n.tr("quickSettings.screenRecorder.label.recording") : I18n.tr("quickSettings.screenRecorder.label.stopped")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
hot: ScreenRecorderService.isRecording
tooltipText: I18n.tr("quickSettings.screenRecorder.tooltip.action")
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
@@ -11,8 +11,6 @@ NQuickSetting {
enabled: Settings.data.wallpaper.enabled
icon: "wallpaper-selector"
text: I18n.tr("quickSettings.wallpaperSelector.label")
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
tooltipText: I18n.tr("quickSettings.wallpaperSelector.tooltip.action")
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
-2
View File
@@ -43,8 +43,6 @@ NQuickSetting {
return connected ? I18n.tr("quickSettings.wifi.label.wifi") : I18n.tr("quickSettings.wifi.label.disconnected")
}
fontSize: Style.fontSizeS * scaling
fontWeight: Style.fontWeightMedium
style: Settings.data.controlCenter.quickSettingsStyle || "modern"
tooltipText: I18n.tr("quickSettings.wifi.tooltip.action")
onClicked: PanelService.getPanel("wifiPanel")?.toggle(this)
+3 -2
View File
@@ -17,7 +17,7 @@ Rectangle {
property string style: "modern" // "modern", "classic", or "compact"
// Styling properties
property real fontSize: Style.fontSizeS * scaling
property real fontSize: (style === "classic") ? Style.fontSizeXS * scaling : Style.fontSizeS * scaling
property int fontWeight: Style.fontWeightMedium
property real iconSize: Style.fontSizeL * scaling
property real cornerRadius: Style.radiusM * scaling
@@ -171,7 +171,7 @@ Rectangle {
}
}
// Text content
// Modern - Text content
NText {
Layout.alignment: Qt.AlignHCenter
visible: root.text !== ""
@@ -245,6 +245,7 @@ Rectangle {
}
}
// Classic - Text content
NText {
visible: root.text !== ""
text: root.text