diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-02-07 17:31:49 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-02-07 17:31:49 +0200 |
| commit | 4bc6e40eb68feb5afebd38bceb2403929d54836d (patch) | |
| tree | dbd26847e198df32705c92075fb224bffe6602ed /.config/ags/widget/quicksettings/widgets/Volume.ts | |
| parent | b068be9188c99c44d80e175d13f30b6aa9124115 (diff) | |
| download | dotfiles-4bc6e40eb68feb5afebd38bceb2403929d54836d.tar.gz dotfiles-4bc6e40eb68feb5afebd38bceb2403929d54836d.zip | |
Changed some icon values
Diffstat (limited to '.config/ags/widget/quicksettings/widgets/Volume.ts')
| -rw-r--r-- | .config/ags/widget/quicksettings/widgets/Volume.ts | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.config/ags/widget/quicksettings/widgets/Volume.ts b/.config/ags/widget/quicksettings/widgets/Volume.ts index 6d18d1a..077439a 100644 --- a/.config/ags/widget/quicksettings/widgets/Volume.ts +++ b/.config/ags/widget/quicksettings/widgets/Volume.ts @@ -11,7 +11,18 @@ const VolumeIndicator = (type: Type = "speaker") => Widget.Button({ on_clicked: () => audio[type].is_muted = !audio[type].is_muted, child: Widget.Icon({ icon: audio[type].bind("icon_name") - .as(i => icon(i || "", icons.audio.mic.high)), + .as(i => icon(i || "", icons.audio.volume.medium)), + tooltipText: audio[type].bind("volume") + .as(vol => `Volume: ${Math.floor(vol * 100)}%`), + }), +}) + +const micIndicator = (type: Type = "microphone") => Widget.Button({ + vpack: "center", + on_clicked: () => audio[type].is_muted = !audio[type].is_muted, + child: Widget.Icon({ + icon: audio[type].bind("icon_name") + .as(i => icon(i || "", icons.audio.mic.medium)), tooltipText: audio[type].bind("volume") .as(vol => `Volume: ${Math.floor(vol * 100)}%`), }), @@ -51,7 +62,7 @@ export const Microhone = () => Widget.Box({ class_name: "slider horizontal", visible: audio.bind("recorders").as(a => a.length > 0), children: [ - VolumeIndicator("microphone"), + micIndicator("microphone"), VolumeSlider("microphone"), ], }) |
