parent
9c01cbd74c
commit
936e9aacb0
11 changed files with 214 additions and 17 deletions
nixosModules/ags/config/widgets/on-screen-display
|
@ -1,9 +1,9 @@
|
|||
import { bind, timeout } from 'astal';
|
||||
import { register } from 'astal/gobject';
|
||||
import { App, Astal, astalify, Gtk, Widget, type ConstructProps } from 'astal/gtk3';
|
||||
import { App, Astal, Gtk, Widget } from 'astal/gtk3';
|
||||
|
||||
import AstalWp from 'gi://AstalWp';
|
||||
|
||||
import { ProgressBar } from '../misc/subclasses';
|
||||
import PopupWindow from '../misc/popup-window';
|
||||
import Brightness from '../../services/brightness';
|
||||
|
||||
|
@ -12,17 +12,6 @@ declare global {
|
|||
function popup_osd(osd: string): void;
|
||||
}
|
||||
|
||||
@register()
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const HIDE_DELAY = 2000;
|
||||
const transition_duration = 300;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue