Reverted the labeled NSlider, which tends to trigger hard crashes when opening the settings

This commit is contained in:
quadbyte 2025-08-12 23:46:35 -04:00
parent 25c9217b6b
commit 050877bcb0
4 changed files with 123 additions and 192 deletions

View file

@ -10,13 +10,15 @@ import qs.Widgets
NLoader {
id: root
readonly property real scaling: Scaling.scale(screen)
content: Component {
NPanel {
id: panel
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
readonly property real scaling: Scaling.scale(screen)
property int currentTabIndex: 0
property var tabsModel: [{
"label": "General",
@ -74,8 +76,8 @@ NLoader {
border.color: Colors.backgroundTertiary
border.width: Math.max(1, Style.borderMedium * scaling)
layer.enabled: true
width: (screen.width / 2) * scaling
height: (screen.height / 2) * scaling
width: (screen.width * 0.5) * scaling
height: (screen.height * 0.5) * scaling
anchors.centerIn: parent
MouseArea {

View file

@ -116,20 +116,20 @@ ColumnLayout {
}
// Wallpaper Interval
NSlider {
label: "Wallpaper Interval"
description: "How often to change wallpapers automatically (in seconds)"
valueSuffix: "s"
from: 10
to: 900
stepSize: 10
value: Settings.data.wallpaper.randomInterval
onPressedChanged: function (pressed, value) {
Settings.data.wallpaper.randomInterval = Math.round(value)
}
cutoutColor: Colors.backgroundPrimary
Layout.fillWidth: true
}
// NSlider {
// label: "Wallpaper Interval"
// description: "How often to change wallpapers automatically (in seconds)"
// valueSuffix: "s"
// from: 10
// to: 900
// stepSize: 10
// value: Settings.data.wallpaper.randomInterval
// onPressedChanged: function (pressed, value) {
// Settings.data.wallpaper.randomInterval = Math.round(value)
// }
// cutoutColor: Colors.backgroundPrimary
// Layout.fillWidth: true
// }
}
NDivider {
@ -229,36 +229,36 @@ ColumnLayout {
}
// Transition FPS
NSlider {
label: "Transition FPS"
description: "Frames per second for transition animations"
valueSuffix: " FPS"
from: 30
to: 500
stepSize: 5
value: Settings.data.wallpaper.swww.transitionFps
onPressedChanged: function (pressed, value) {
Settings.data.wallpaper.swww.transitionFps = Math.round(value)
}
cutoutColor: Colors.backgroundPrimary
Layout.fillWidth: true
}
// NSlider {
// label: "Transition FPS"
// description: "Frames per second for transition animations"
// valueSuffix: " FPS"
// from: 30
// to: 500
// stepSize: 5
// value: Settings.data.wallpaper.swww.transitionFps
// onPressedChanged: function (pressed, value) {
// Settings.data.wallpaper.swww.transitionFps = Math.round(value)
// }
// cutoutColor: Colors.backgroundPrimary
// Layout.fillWidth: true
// }
// Transition Duration
NSlider {
label: "Transition Duration"
description: "Duration of transition animations in seconds"
valueSuffix: "s"
from: 0.25
to: 10
stepSize: 0.05
value: Settings.data.wallpaper.swww.transitionDuration
onPressedChanged: function (pressed, value) {
Settings.data.wallpaper.swww.transitionDuration = value
}
cutoutColor: Colors.backgroundPrimary
Layout.fillWidth: true
}
// NSlider {
// label: "Transition Duration"
// description: "Duration of transition animations in seconds"
// valueSuffix: "s"
// from: 0.25
// to: 10
// stepSize: 0.05
// value: Settings.data.wallpaper.swww.transitionDuration
// onPressedChanged: function (pressed, value) {
// Settings.data.wallpaper.swww.transitionDuration = value
// }
// cutoutColor: Colors.backgroundPrimary
// Layout.fillWidth: true
// }
}
}
}