diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-05 21:47:30 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-05 21:47:30 +1000 |
| commit | 017b1b4ce017600953f35a528660cca1f67dc86a (patch) | |
| tree | 45f82a1f7a7a4319107e94797e67f2dd4f2669a6 /modules/bar/Content.qml | |
| parent | popouts: battery add perf degradation warning (diff) | |
| download | caelestia-shell-017b1b4ce017600953f35a528660cca1f67dc86a.tar.gz caelestia-shell-017b1b4ce017600953f35a528660cca1f67dc86a.tar.bz2 caelestia-shell-017b1b4ce017600953f35a528660cca1f67dc86a.zip | |
feat: network popout
Also qstr dashboard performance pane labels
Diffstat (limited to 'modules/bar/Content.qml')
| -rw-r--r-- | modules/bar/Content.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/bar/Content.qml b/modules/bar/Content.qml index 1032050..2531f4d 100644 --- a/modules/bar/Content.qml +++ b/modules/bar/Content.qml @@ -14,12 +14,18 @@ StyledRect { function checkPopout(y: real): var { const aw = activeWindow.child; const awy = activeWindow.y + aw.y; + const n = statusIconsInner.network; + const ny = statusIcons.y + statusIconsInner.y + n.y; const b = statusIconsInner.battery; const by = statusIcons.y + statusIconsInner.y + b.y; if (y >= awy && y <= awy + aw.implicitHeight) { Popouts.currentName = "activewindow"; Popouts.currentCenter = Qt.binding(() => activeWindow.y + aw.y + aw.implicitHeight / 2); Popouts.hasCurrent = true; + } else if (y >= ny && y <= ny + n.implicitHeight) { + Popouts.currentName = "network"; + Popouts.currentCenter = Qt.binding(() => statusIcons.y + statusIconsInner.y + n.y + n.implicitHeight / 2); + Popouts.hasCurrent = true; } else if (y >= by && y <= by + b.implicitHeight) { Popouts.currentName = "battery"; Popouts.currentCenter = Qt.binding(() => statusIcons.y + statusIconsInner.y + b.y + b.implicitHeight / 2); |