This commit is contained in:
end-4
2024-03-14 20:00:22 +07:00
parent d1ec61193e
commit 5fc36cdc01
2 changed files with 36 additions and 33 deletions
+13 -10
View File
@@ -48,14 +48,7 @@ export default () => {
children: [
Widget.Box({ hexpand: true, }),
barTray,
separatorDot,
barStatusIcons,
],
}),
]
});
return Widget.EventBox({
Widget.EventBox({
onScrollUp: () => {
if (!Audio.speaker) return;
if (Audio.speaker.volume <= 0.09) Audio.speaker.volume += 0.01;
@@ -78,11 +71,21 @@ export default () => {
execAsync('playerctl previous').catch(print)
}),
child: Widget.Box({
homogeneous: false,
children: [
separatorDot,
barStatusIcons,
],
}),
}),
],
}),
]
});
return Widget.Box({
children: [
actualContent,
Widget.Box({ className: 'bar-corner-spacing' }),
]
})
});
}
+2 -2
View File
@@ -13,8 +13,8 @@ const SysTrayItem = (item) => Button({
setup: (self) => self
.hook(item, (self) => self.tooltipMarkup = item['tooltip-markup'])
,
onClicked: btn => item.menu.popup_at_widget(btn, Gravity.SOUTH, Gravity.NORTH, null),
onSecondaryClick: btn => item.menu.popup_at_widget(btn, Gravity.SOUTH, Gravity.NORTH, null),
onPrimaryClick: (_, event) => item.activate(event),
onSecondaryClick: (btn, event) => item.menu.popup_at_widget(btn, Gravity.SOUTH, Gravity.NORTH, null),
});
export const Tray = (props = {}) => {