Settings: completed migration of old settings on startup

This commit is contained in:
LemmyCook 2025-09-07 22:55:28 -04:00
parent 517c7c97d4
commit 5a1231a17e
4 changed files with 83 additions and 50 deletions

View file

@ -12,11 +12,6 @@ RowLayout {
id: root
property ShellScreen screen
property real scaling: 1.0
readonly property real minWidth: 160
readonly property real maxWidth: 400
Layout.alignment: Qt.AlignVCenter
spacing: Style.marginS * scaling
visible: getTitle() !== ""
// Widget properties passed from Bar.qml for per-instance settings
property string widgetId: ""
@ -38,6 +33,12 @@ RowLayout {
readonly property bool showIcon: (widgetSettings.showIcon !== undefined) ? widgetSettings.showIcon : widgetMetadata.showIcon
readonly property real minWidth: 160
readonly property real maxWidth: 400
Layout.alignment: Qt.AlignVCenter
spacing: Style.marginS * scaling
visible: getTitle() !== ""
function getTitle() {
return CompositorService.focusedWindowTitle !== "(No active window)" ? CompositorService.focusedWindowTitle : ""
}

View file

@ -29,7 +29,7 @@ ColumnLayout {
}
NCheckbox {
label: "Show date next to time"
label: "Show date"
checked: valueShowDate
onToggled: checked => valueShowDate = checked
}