forked from Shinonome/dots-hyprland
vol mixer: remove debug print, add tooltip
This commit is contained in:
@@ -9,14 +9,19 @@ import { setupCursorHover } from '../../.widgetutils/cursorhover.js';
|
|||||||
import { AnimatedSlider } from '../../.commonwidgets/cairo_slider.js';
|
import { AnimatedSlider } from '../../.commonwidgets/cairo_slider.js';
|
||||||
|
|
||||||
const appVolume = (stream) => {
|
const appVolume = (stream) => {
|
||||||
console.log(stream)
|
// console.log(stream)
|
||||||
return Box({
|
return Box({
|
||||||
className: 'sidebar-volmixer-stream spacing-h-10',
|
className: 'sidebar-volmixer-stream spacing-h-10',
|
||||||
children: [
|
children: [
|
||||||
Icon({
|
Icon({
|
||||||
className: 'sidebar-volmixer-stream-appicon',
|
className: 'sidebar-volmixer-stream-appicon',
|
||||||
vpack: 'center',
|
vpack: 'center',
|
||||||
icon: stream.stream.name.toLowerCase(),
|
tooltipText: stream.stream.name,
|
||||||
|
setup: (self) => {
|
||||||
|
self.hook(stream, (self) => {
|
||||||
|
self.icon = stream.stream.name.toLowerCase();
|
||||||
|
})
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
Box({
|
Box({
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user