diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-09 18:10:11 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-09 18:10:11 +1000 |
| commit | 3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3 (patch) | |
| tree | 3db97d474787e33b5182ac40824e66df61a85ec1 | |
| parent | dashboard: fix cover art rounding (diff) | |
| download | caelestia-shell-3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3.tar.gz caelestia-shell-3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3.tar.bz2 caelestia-shell-3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3.zip | |
notifs: fix actions colour when transp
Also more colour adjustments
| -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)); |