summaryrefslogtreecommitdiff
path: root/modules/notifications/Content.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-15 18:08:45 +1000
commit96429160c30ba5f6dcd25c8e6a181221195c41d8 (patch)
tree6f95bac8f3056abae67c04ae612b574ce1c37286 /modules/notifications/Content.qml
parentinternal: properly fix beat detector (diff)
downloadcaelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.gz
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.tar.bz2
caelestia-shell-96429160c30ba5f6dcd25c8e6a181221195c41d8.zip
feat: user config file
Config file at `~/.config/caelestia/shell.json`
Diffstat (limited to 'modules/notifications/Content.qml')
-rw-r--r--modules/notifications/Content.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/notifications/Content.qml b/modules/notifications/Content.qml
index a64ccb9..6983b95 100644
--- a/modules/notifications/Content.qml
+++ b/modules/notifications/Content.qml
@@ -14,7 +14,7 @@ Item {
anchors.bottom: parent.bottom
anchors.right: parent.right
- implicitWidth: NotifsConfig.sizes.width + padding * 2
+ implicitWidth: Config.notifs.sizes.width + padding * 2
implicitHeight: {
const count = list.count;
if (count === 0)
@@ -29,19 +29,19 @@ Item {
const panel = Visibilities.panels[screen];
if (visibilities && panel) {
if (visibilities.osd) {
- const h = panel.osd.y - BorderConfig.rounding * 2;
+ const h = panel.osd.y - Config.border.rounding * 2;
if (height > h)
height = h;
}
if (visibilities.session) {
- const h = panel.session.y - BorderConfig.rounding * 2;
+ const h = panel.session.y - Config.border.rounding * 2;
if (height > h)
height = h;
}
}
- return Math.min((screen?.height ?? 0) - BorderConfig.thickness * 2, height + padding * 2);
+ return Math.min((screen?.height ?? 0) - Config.border.thickness * 2, height + padding * 2);
}
ClippingWrapperRectangle {
@@ -108,7 +108,7 @@ Item {
Anim {
target: notif
property: "x"
- to: (notif.x >= 0 ? NotifsConfig.sizes.width : -NotifsConfig.sizes.width) * 2
+ to: (notif.x >= 0 ? Config.notifs.sizes.width : -Config.notifs.sizes.width) * 2
duration: Appearance.anim.durations.normal
easing.bezierCurve: Appearance.anim.curves.emphasized
}