feat: split scss and rename widget folder to widgets

This commit is contained in:
tux
2025-06-09 00:41:04 +05:30
parent 9712b9e0ea
commit 72f9c24482
14 changed files with 123 additions and 119 deletions

21
widgets/bar/launcher.tsx Normal file
View File

@@ -0,0 +1,21 @@
import { App, Gtk } from "astal/gtk4";
import { Gio } from "astal";
import { Picture } from "../common";
import { WINDOW_NAME } from "../app-launcher";
export const Launcher = () => {
return (
<Gtk.ScrolledWindow heightRequest={40} widthRequest={40}>
<button
cssClasses={["launcher"]}
onClicked={() => App.toggle_window(WINDOW_NAME)}
>
<Picture
file={Gio.file_new_for_path("/home/tux/Wallpapers/avatar.png")}
contentFit={Gtk.ContentFit.CONTAIN}
overflow={Gtk.Overflow.HIDDEN}
/>
</button>
</Gtk.ScrolledWindow>
);
};