DimDesktop: removed in favor of nice curvy corners on panels

This commit is contained in:
ItsLemmy
2025-10-31 10:53:59 -04:00
parent 81edc14e63
commit 066d6f2e2f
7 changed files with 2 additions and 49 deletions
-1
View File
@@ -57,7 +57,6 @@
},
"general": {
"avatarImage": "",
"dimDesktop": true,
"showScreenCorners": false,
"forceBlackScreenCorners": false,
"scaleRatio": 1,
-1
View File
@@ -182,7 +182,6 @@ Singleton {
// general
property JsonObject general: JsonObject {
property string avatarImage: ""
property bool dimDesktop: true
property bool showScreenCorners: false
property bool forceBlackScreenCorners: false
property real scaleRatio: 1.0
+1 -1
View File
@@ -67,7 +67,7 @@ NBox {
temp = Math.round(temp)
return `${temp}°${suffix}`
}
pointSize: showLocation ? Style.fontSizeXL : Style.fontSizeXL * 1.6
pointSize: showLocation ? Style.fontSizeXL : Style.fontSizeXL * 1.6
font.weight: Style.fontWeightBold
}
@@ -19,13 +19,6 @@ ColumnLayout {
description: I18n.tr("settings.user-interface.section.description")
}
NToggle {
label: I18n.tr("settings.user-interface.dim-desktop.label")
description: I18n.tr("settings.user-interface.dim-desktop.description")
checked: Settings.data.general.dimDesktop
onToggled: checked => Settings.data.general.dimDesktop = checked
}
NToggle {
label: I18n.tr("settings.user-interface.tooltips.label")
description: I18n.tr("settings.user-interface.tooltips.description")
@@ -11,11 +11,9 @@ ColumnLayout {
property real selectedScaleRatio: 1.0
property string selectedBarPosition: "top"
property bool selectedDimDesktop: true
signal scaleRatioChanged(real ratio)
signal barPositionChanged(string position)
signal dimDesktopChanged(bool dim)
spacing: Style.marginM
@@ -214,32 +212,6 @@ ColumnLayout {
anchors.centerIn: parent
}
}
ColumnLayout {
Layout.fillWidth: true
spacing: 2
NText {
text: I18n.tr("settings.user-interface.dim-desktop.label")
pointSize: Style.fontSizeL
font.weight: Style.fontWeightBold
color: Color.mOnSurface
}
NText {
text: I18n.tr("settings.user-interface.dim-desktop.description")
pointSize: Style.fontSizeS
color: Color.mOnSurfaceVariant
wrapMode: Text.WordWrap
Layout.fillWidth: true
}
}
NToggle {
checked: selectedDimDesktop
onToggled: function (checked) {
selectedDimDesktop = checked
dimDesktopChanged(checked)
}
}
}
// Divider
-9
View File
@@ -30,7 +30,6 @@ NPanel {
property string selectedWallpaper: ""
property real selectedScaleRatio: 1.0
property string selectedBarPosition: "top"
property bool selectedDimDesktop: true
panelContent: Component {
Item {
@@ -199,7 +198,6 @@ NPanel {
id: step2
selectedScaleRatio: root.selectedScaleRatio
selectedBarPosition: root.selectedBarPosition
selectedDimDesktop: root.selectedDimDesktop
onScaleRatioChanged: function (ratio) {
root.selectedScaleRatio = ratio
root.applyUISettings()
@@ -208,10 +206,6 @@ NPanel {
root.selectedBarPosition = position
root.applyUISettings()
}
onDimDesktopChanged: function (dim) {
root.selectedDimDesktop = dim
root.applyUISettings()
}
}
// Step 3: Dock Setup
@@ -384,7 +378,6 @@ NPanel {
Settings.data.general.scaleRatio = selectedScaleRatio
Settings.data.bar.position = selectedBarPosition
Settings.data.general.dimDesktop = selectedDimDesktop
Settings.data.setupCompleted = true
Settings.saveImmediate()
@@ -406,7 +399,6 @@ NPanel {
function applyUISettings() {
Settings.data.general.scaleRatio = selectedScaleRatio
Settings.data.bar.position = selectedBarPosition
Settings.data.general.dimDesktop = selectedDimDesktop
}
Component.onCompleted: {
@@ -415,7 +407,6 @@ NPanel {
if (Settings && Settings.data) {
selectedScaleRatio = Settings.data.general.scaleRatio
selectedBarPosition = Settings.data.bar.position
selectedDimDesktop = Settings.data.general.dimDesktop
selectedWallpaperDirectory = Settings.data.wallpaper.directory || Settings.defaultWallpapersDirectory
}
}
+1 -2
View File
@@ -169,8 +169,7 @@ Loader {
}
}
visible: true
color: Settings.data.general.dimDesktop ? Qt.alpha(Color.mShadow, dimmingOpacity) : Color.transparent
color: Color.transparent
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "noctalia-panel"