This commit is contained in:
Ly-sec 2025-09-12 22:20:48 +02:00
commit 5136af5d95
2 changed files with 325 additions and 275 deletions

View file

@ -53,32 +53,32 @@ ColumnLayout {
}
}
// ColumnLayout {
// spacing: Style.marginXXS * scaling
// Layout.fillWidth: true
ColumnLayout {
spacing: Style.marginXXS * scaling
Layout.fillWidth: true
// NLabel {
// label: "Dock Floating Distance"
// description: "Adjust the floating distance from the screen edge."
// }
NLabel {
label: "Dock Floating Distance"
description: "Adjust the floating distance from the screen edge."
}
// RowLayout {
// NSlider {
// Layout.fillWidth: true
// from: 0
// to: 4
// stepSize: 0.01
// value: Settings.data.dock.floatingRatio
// onMoved: Settings.data.dock.floatingRatio = value
// cutoutColor: Color.mSurface
// }
RowLayout {
NSlider {
Layout.fillWidth: true
from: 0
to: 4
stepSize: 0.01
value: Settings.data.dock.floatingRatio
onMoved: Settings.data.dock.floatingRatio = value
cutoutColor: Color.mSurface
}
// NText {
// text: Math.floor(Settings.data.dock.floatingRatio * 100) + "%"
// Layout.alignment: Qt.AlignVCenter
// Layout.leftMargin: Style.marginS * scaling
// color: Color.mOnSurface
// }
// }
// }
NText {
text: Math.floor(Settings.data.dock.floatingRatio * 100) + "%"
Layout.alignment: Qt.AlignVCenter
Layout.leftMargin: Style.marginS * scaling
color: Color.mOnSurface
}
}
}
}