style: change cursor to pointer on hover

This commit is contained in:
tux
2025-06-18 04:42:26 +05:30
parent 7936ece744
commit 3e38dab8b9
4 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import { Variable, bind } from "astal";
import { Gtk } from "astal/gtk4";
import { Gdk, Gtk } from "astal/gtk4";
import { ButtonProps } from "astal/gtk4/widget";
import AstalHyprland from "gi://AstalHyprland";
@@ -30,6 +30,7 @@ const Workspace = ({ ws, ...props }: WsButtonProps) => {
valign={Gtk.Align.CENTER}
halign={Gtk.Align.CENTER}
onClicked={() => ws.focus()}
cursor={Gdk.Cursor.new_from_name("pointer", null)}
{...props}
/>
);