[QuickActions] Prep
This commit is contained in:
parent
994d1ac1b4
commit
3d74676f6d
@ -1,4 +1,4 @@
|
|||||||
import { App } from "astal/gtk3"
|
import { App } from "astal/gtk4"
|
||||||
import style from "./style.scss"
|
import style from "./style.scss"
|
||||||
import Bar from "./widget/Bar"
|
import Bar from "./widget/Bar"
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
// "checkJs": true,
|
// "checkJs": true,
|
||||||
// "allowJs": true,
|
// "allowJs": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"jsxImportSource": "astal/gtk3",
|
"jsxImportSource": "astal/gtk4",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { App, Astal, Gtk, Gdk } from "astal/gtk3"
|
import { App, Astal, Gtk, Gdk } from "astal/gtk4"
|
||||||
import { Variable } from "astal"
|
import { Variable } from "astal"
|
||||||
|
|
||||||
const time = Variable("").poll(1000, "date")
|
const time = Variable("").poll(1000, "date")
|
||||||
@ -7,25 +7,30 @@ export default function Bar(gdkmonitor: Gdk.Monitor) {
|
|||||||
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor
|
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor
|
||||||
|
|
||||||
return <window
|
return <window
|
||||||
className="Bar"
|
visible
|
||||||
|
cssClasses={["Bar"]}
|
||||||
gdkmonitor={gdkmonitor}
|
gdkmonitor={gdkmonitor}
|
||||||
exclusivity={Astal.Exclusivity.EXCLUSIVE}
|
exclusivity={Astal.Exclusivity.EXCLUSIVE}
|
||||||
anchor={TOP | LEFT | RIGHT}
|
anchor={TOP | LEFT | RIGHT}
|
||||||
application={App}>
|
application={App}>
|
||||||
<centerbox>
|
<centerbox cssName="centerbox">
|
||||||
<button
|
<button
|
||||||
onClicked="echo hello"
|
onClicked="echo hello"
|
||||||
|
hexpand
|
||||||
halign={Gtk.Align.CENTER}
|
halign={Gtk.Align.CENTER}
|
||||||
>
|
>
|
||||||
Welcome to AGS!
|
Welcome to AGS!
|
||||||
</button>
|
</button>
|
||||||
<box />
|
<box />
|
||||||
<button
|
<menubutton
|
||||||
onClicked={() => print("hello")}
|
hexpand
|
||||||
halign={Gtk.Align.CENTER}
|
halign={Gtk.Align.CENTER}
|
||||||
>
|
>
|
||||||
<label label={time()} />
|
<label label={time()} />
|
||||||
</button>
|
<popover>
|
||||||
|
<Gtk.Calendar />
|
||||||
|
</popover>
|
||||||
|
</menubutton>
|
||||||
</centerbox>
|
</centerbox>
|
||||||
</window>
|
</window>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user