From 7c5d08eb3f38242e9c406585f05b366e8e1f9dae Mon Sep 17 00:00:00 2001 From: lucy Date: Tue, 27 Jan 2026 00:55:56 +0100 Subject: [PATCH] move things around, steal things from noctalia and new settings --- modules/notifications/Notification.qml | 2 +- settings/Settings.qml | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index b86d4eb..4d2dac6 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -17,7 +17,7 @@ Variants { bottom: true } margins { - top: Settings.config.barHeight + Settings.config.margins + 10 + top: Settings.config.floating ? Settings.config.barHeight + Settings.config.margins + 10 : Settings.config.barHeight + 10 right: 10 left: 10 } diff --git a/settings/Settings.qml b/settings/Settings.qml index 17637b5..ddf4479 100644 --- a/settings/Settings.qml +++ b/settings/Settings.qml @@ -7,26 +7,25 @@ import Quickshell.Io Singleton { id: root property alias config: settingsAdapter - property alias currentWall: settingsAdapter.currentWall - + onConfigChanged: { + settingsView.writeAdapter(); + } FileView { id: settingsView path: "/home/lucy/.config/quickshell/settings/config.json" watchChanges: true onFileChanged: reload() - - onAdapterUpdated: writeAdapter() adapter: JsonAdapter { id: settingsAdapter property var margins: 20 property var currentWall: "" - property var barHeight: 20 + property var barHeight: 30 property var font: "" property var fontSize: 14 property var rounding: 10 property var wallDir: "file:///home/lucy/.walls/" - property bool floating: false + property bool floating: true property int paddingTop: 10 property int paddingSides: 10 property var generateScheme: true