feat(ags4): add cursors
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-01-06 10:05:16 -05:00
parent 6b097eb53f
commit 2fe182cc45

View file

@ -1,9 +1,9 @@
import { App, Astal, Gtk } from 'astal/gtk4'; import { App, Astal, Gdk, Gtk } from 'astal/gtk4';
import { Variable } from 'astal'; import { Variable } from 'astal';
import Kompass from 'gi://Kompass'; import Kompass from 'gi://Kompass';
import { Box, Button, Calendar, CenterBox, Label, MenuButton, Popover, Window } from './subclasses'; import { Box, Calendar, CenterBox, Label, MenuButton, Popover, Window } from './subclasses';
const { EXCLUSIVE } = Astal.Exclusivity; const { EXCLUSIVE } = Astal.Exclusivity;
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor; const { TOP, LEFT, RIGHT } = Astal.WindowAnchor;
@ -31,11 +31,12 @@ export default () => {
application={App} application={App}
> >
<CenterBox cssName="centerbox"> <CenterBox cssName="centerbox">
<Kompass.Tray /> <Kompass.Tray cursor={Gdk.Cursor.new_from_name('pointer', null)} />
{styledBox} {styledBox}
<MenuButton <MenuButton
cursor={Gdk.Cursor.new_from_name('pointer', null)}
hexpand hexpand
halign={CENTER} halign={CENTER}
> >