feat(ags): add start of audio widget

This commit is contained in:
matt1432 2024-12-07 14:17:37 -05:00
commit 936e9aacb0
11 changed files with 214 additions and 17 deletions
nixosModules/ags/config/widgets/misc

View file

@ -13,6 +13,17 @@ export class ToggleButton extends astalify(Gtk.ToggleButton) {
}
}
@register()
export class RadioButton extends astalify(Gtk.RadioButton) {
constructor(props: ConstructProps<
RadioButton,
Gtk.RadioButton.ConstructorProps
> = {}) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
super(props as any);
}
}
@register()
export class ListBox extends astalify(Gtk.ListBox) {
override get_children() {
@ -22,7 +33,18 @@ export class ListBox extends astalify(Gtk.ListBox) {
constructor(props: ConstructProps<
ListBox,
Gtk.ListBox.ConstructorProps
>) {
> = {}) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
super(props as any);
}
}
@register()
export class ProgressBar extends astalify(Gtk.ProgressBar) {
constructor(props: ConstructProps<
ProgressBar,
Gtk.ProgressBar.ConstructorProps
> = {}) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
super(props as any);
}