diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-06 19:30:48 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-03-06 19:30:48 +0100 |
| commit | 16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15 (patch) | |
| tree | 51e39719158102da5e23491acb90e68950d19a50 /accounts/gkleen@sif/shell/quickshell/Bar.qml | |
| parent | 72abd9db7c907fc1a6ef7bf8d2483649aa3bc949 (diff) | |
| download | nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar.gz nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar.bz2 nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.tar.xz nixos-16a7fb7e8cfb9a682e411891c0cb81e0aa0a1b15.zip | |
niri: screenshare indicators
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Bar.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Bar.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml index 54ac2d3c..e8bd6245 100644 --- a/accounts/gkleen@sif/shell/quickshell/Bar.qml +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml | |||
| @@ -32,8 +32,14 @@ PanelWindow { | |||
| 32 | implicitHeight: 21 | 32 | implicitHeight: 21 |
| 33 | color: "transparent" | 33 | color: "transparent" |
| 34 | 34 | ||
| 35 | property bool haveScreenshare: Array.from(NiriService.casts).some(cast => cast.target.Output?.name == bar.screen.name) | ||
| 36 | |||
| 35 | Rectangle { | 37 | Rectangle { |
| 36 | color: bar.haveMaximizedWindow ? "black" : Qt.rgba(0, 0, 0, 0.75) | 38 | color: { |
| 39 | if (bar.haveScreenshare) | ||
| 40 | return bar.haveMaximizedWindow ? Qt.rgba(0.2, 0, 0, 1) : Qt.rgba(0.2, 0, 0, 0.75); | ||
| 41 | return bar.haveMaximizedWindow ? "black" : Qt.rgba(0, 0, 0, 0.75); | ||
| 42 | } | ||
| 37 | anchors.fill: parent | 43 | anchors.fill: parent |
| 38 | // bottomLeftRadius: 8 | 44 | // bottomLeftRadius: 8 |
| 39 | // bottomRightRadius: 8 | 45 | // bottomRightRadius: 8 |
