From 4bc6e40eb68feb5afebd38bceb2403929d54836d Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 7 Feb 2025 17:31:49 +0200 Subject: Changed some icon values --- .config/ags/widget/quicksettings/widgets/Volume.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to '.config/ags') 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"), ], }) -- cgit v1.2.3