From 0130afd26bdf07769161db7cba5f57d9584a50fb Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 5 Dec 2025 15:41:05 +0100 Subject: [PATCH] Notification: if bar is left/right, add proper offset ToastScreen: if bar is left/right, add proper offset --- Modules/Notification/Notification.qml | 4 ++-- Modules/Toast/ToastScreen.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index aa1c7ab02..fcf8af5fc 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -82,14 +82,14 @@ Variants { if (barPos !== "left") return 0; const floatMarginH = isFloating ? Settings.data.bar.marginHorizontal * Style.marginXL : 0; - return floatMarginH; + return Style.barHeight + floatMarginH; } readonly property int barOffsetRight: { if (barPos !== "right") return 0; const floatMarginH = isFloating ? Settings.data.bar.marginHorizontal * Style.marginXL : 0; - return floatMarginH; + return Style.barHeight + floatMarginH; } // Anchoring diff --git a/Modules/Toast/ToastScreen.qml b/Modules/Toast/ToastScreen.qml index d66d06ff0..1ab981b26 100644 --- a/Modules/Toast/ToastScreen.qml +++ b/Modules/Toast/ToastScreen.qml @@ -163,14 +163,14 @@ Item { if (barPos !== "left") return 0; const floatMarginH = isFloating ? Settings.data.bar.marginHorizontal * Style.marginXL : 0; - return floatMarginH; + return Style.barHeight + floatMarginH; } readonly property int barOffsetRight: { if (barPos !== "right") return 0; const floatMarginH = isFloating ? Settings.data.bar.marginHorizontal * Style.marginXL : 0; - return floatMarginH; + return Style.barHeight + floatMarginH; } // Anchoring