diff options
| -rw-r--r-- | modules/notifications/Notification.qml | 2 | ||||
| -rw-r--r-- | services/Colours.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 080ee7b..73bfce2 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -450,7 +450,7 @@ StyledRect { required property var modelData radius: Appearance.rounding.full - color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3secondary : Colours.tPalette.m3surfaceContainerHigh + color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3secondary : Colours.layer(Colours.palette.m3surfaceContainerHigh, 2) Layout.preferredWidth: actionText.width + Appearance.padding.normal * 2 Layout.preferredHeight: actionText.height + Appearance.padding.small * 2 diff --git a/services/Colours.qml b/services/Colours.qml index eab898e..568fc1f 100644 --- a/services/Colours.qml +++ b/services/Colours.qml @@ -33,7 +33,7 @@ Singleton { const wallLuminance = getLuminance(wallColour); const luminance = getLuminance(c); - const offset = (!light || layer == 1 ? 1 : -layer / 2) * (light ? 0.2 : 0.3) * (1 - transparency.base) * (1 + wallLuminance * (light ? 3 : 2.5)); + const offset = (!light || layer == 1 ? 1 : -layer / 2) * (light ? 0.2 : 0.3) * (1 - transparency.base) * (1 + wallLuminance * (light ? (layer == 1 ? 3 : 1) : 2.5)); const scale = (luminance + offset) / luminance; const r = Math.max(0, Math.min(1, c.r * scale)); const g = Math.max(0, Math.min(1, c.g * scale)); |