From c1510b547645de5e8f70f6be99a0ba894b797241 Mon Sep 17 00:00:00 2001 From: ATMDA Date: Wed, 12 Nov 2025 14:51:22 -0500 Subject: notifs/toasts: reworked notifications and toasts and how they display and work together. see pull request comment. --- modules/utilities/toasts/ToastItem.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'modules/utilities') diff --git a/modules/utilities/toasts/ToastItem.qml b/modules/utilities/toasts/ToastItem.qml index f475500..477a23c 100644 --- a/modules/utilities/toasts/ToastItem.qml +++ b/modules/utilities/toasts/ToastItem.qml @@ -28,14 +28,13 @@ StyledRect { border.width: 1 border.color: { - let colour = Colours.palette.m3outlineVariant; if (root.modelData.type === Toast.Success) - colour = Colours.palette.m3success; + return Colours.palette.m3success; if (root.modelData.type === Toast.Warning) - colour = Colours.palette.m3secondaryContainer; + return Colours.palette.m3secondaryContainer; if (root.modelData.type === Toast.Error) - colour = Colours.palette.m3error; - return Qt.alpha(colour, 0.3); + return Colours.palette.m3error; + return Colours.palette.m3outlineVariant; } Elevation { -- cgit v1.2.3-freya