diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-09 22:22:47 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-09 22:22:47 +1000 |
| commit | e53c51782918d8daee43846b0c4a1493ee53b7c1 (patch) | |
| tree | 43b4254b310eea6a74dd7137917f8291e97817a1 /src | |
| parent | launcher: more padding for wallpapers (diff) | |
| download | caelestia-shell-e53c51782918d8daee43846b0c4a1493ee53b7c1.tar.gz caelestia-shell-e53c51782918d8daee43846b0c4a1493ee53b7c1.tar.bz2 caelestia-shell-e53c51782918d8daee43846b0c4a1493ee53b7c1.zip | |
sidebar: don't show speakers in streams header
Center streams header instead
Also fix init value
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/sidebar/modules/streams.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/sidebar/modules/streams.tsx b/src/modules/sidebar/modules/streams.tsx index 16812fd..18a9a58 100644 --- a/src/modules/sidebar/modules/streams.tsx +++ b/src/modules/sidebar/modules/streams.tsx @@ -83,16 +83,16 @@ export default () => { if (!audio) return <NoWp />; - const label = Variable(""); + const label = Variable(`${header(audio, "streams")} • ${header(audio, "recorders")}`); label.observe( - ["streams", "speakers", "recorders"].map(k => [audio, `notify::${k}`]), - () => `${header(audio, "streams")} • ${header(audio, "speakers")} • ${header(audio, "recorders")}` + ["streams", "recorders"].map(k => [audio, `notify::${k}`]), + () => `${header(audio, "streams")} • ${header(audio, "recorders")}` ); return ( <box vertical className="streams" onDestroy={() => label.drop()}> - <box className="header-bar"> + <box halign={Gtk.Align.CENTER} className="header-bar"> <label label={bind(label)} /> </box> <stack |