diff --git a/Modules/SettingsPanel/Tabs/DisplayTab.qml b/Modules/SettingsPanel/Tabs/DisplayTab.qml index f360e1c..b43fc72 100644 --- a/Modules/SettingsPanel/Tabs/DisplayTab.qml +++ b/Modules/SettingsPanel/Tabs/DisplayTab.qml @@ -414,4 +414,10 @@ ColumnLayout { } visible: Settings.data.nightLight.enabled } + + NDivider { + Layout.fillWidth: true + Layout.topMargin: Style.marginXL * scaling + Layout.bottomMargin: Style.marginXL * scaling + } } diff --git a/Modules/SettingsPanel/Tabs/NotificationTab.qml b/Modules/SettingsPanel/Tabs/NotificationTab.qml index 8adddae..3900555 100644 --- a/Modules/SettingsPanel/Tabs/NotificationTab.qml +++ b/Modules/SettingsPanel/Tabs/NotificationTab.qml @@ -180,4 +180,10 @@ ColumnLayout { } } } + + NDivider { + Layout.fillWidth: true + Layout.topMargin: Style.marginXL * scaling + Layout.bottomMargin: Style.marginXL * scaling + } } diff --git a/Modules/SettingsPanel/Tabs/WeatherTab.qml b/Modules/SettingsPanel/Tabs/WeatherTab.qml index dbf9f5f..68676f7 100644 --- a/Modules/SettingsPanel/Tabs/WeatherTab.qml +++ b/Modules/SettingsPanel/Tabs/WeatherTab.qml @@ -75,4 +75,10 @@ ColumnLayout { onToggled: checked => Settings.data.location.useFahrenheit = checked } } + + NDivider { + Layout.fillWidth: true + Layout.topMargin: Style.marginXL * scaling + Layout.bottomMargin: Style.marginXL * scaling + } } diff --git a/Modules/Toast/ToastScreen.qml b/Modules/Toast/ToastScreen.qml index c839452..a2e0eca 100644 --- a/Modules/Toast/ToastScreen.qml +++ b/Modules/Toast/ToastScreen.qml @@ -16,9 +16,9 @@ Loader { // Local queue for this screen only property var messageQueue: [] property bool isShowingToast: false - + // If true, immediately show new toasts - property bool replaceOnNew: true + property bool replaceOnNew: true Connections { target: ScalingService @@ -47,15 +47,15 @@ Loader { function enqueueToast(toastData) { if (replaceOnNew && isShowingToast) { // Cancel current toast and clear queue for latest toast - messageQueue = [] // Clear existing queue + messageQueue = [] // Clear existing queue messageQueue.push(toastData) - + // Hide current toast immediately if (item) { hideTimer.stop() - item.hideToast() // Need to add this method to PanelWindow + item.hideToast() // Need to add this method to PanelWindow } - + // Process new toast after a brief delay isShowingToast = false quickSwitchTimer.restart() @@ -65,10 +65,10 @@ Loader { processQueue() } } - + Timer { id: quickSwitchTimer - interval: 50 // Brief delay for smooth transition + interval: 50 // Brief delay for smooth transition onTriggered: root.processQueue() } @@ -127,10 +127,10 @@ Loader { function showToast(message, description, type, duration) { toastItem.show(message, description, type, duration) } - + // Add method to immediately hide toast function hideToast() { - toastItem.hideImmediately() + toastItem.hideImmediately() } SimpleToast { @@ -140,4 +140,4 @@ Loader { onHidden: root.onToastHidden() } } -} \ No newline at end of file +}