mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
sideright: audio controls: guess icon name
This commit is contained in:
parent
56da459943
commit
bd8ae19490
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import Widget from 'resource:///com/github/Aylur/ags/widget.js';
|
|||
const { Box, Button, Icon, Label, Revealer, Scrollable, Slider, Stack } = Widget;
|
||||
import { MaterialIcon } from '../../.commonwidgets/materialicon.js';
|
||||
import { setupCursorHover } from '../../.widgetutils/cursorhover.js';
|
||||
import { iconExists } from '../../.miscutils/icons.js';
|
||||
import { iconExists, substitute } from '../../.miscutils/icons.js';
|
||||
|
||||
const AppVolume = (stream) => Box({
|
||||
className: 'sidebar-volmixer-stream spacing-h-10',
|
||||
|
|
@ -15,7 +15,7 @@ const AppVolume = (stream) => Box({
|
|||
tooltipText: stream.stream.name,
|
||||
setup: (self) => {
|
||||
self.hook(stream, (self) => {
|
||||
self.icon = stream.stream.name.toLowerCase();
|
||||
self.icon = substitute(stream.stream.name);
|
||||
})
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue