mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-22 09:32:38 +00:00
feat: update ags
This commit is contained in:
24
home/desktops/hyprland/ags/js/bar/buttons/OverviewButton.js
Normal file
24
home/desktops/hyprland/ags/js/bar/buttons/OverviewButton.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import App from "resource:///com/github/Aylur/ags/app.js";
|
||||
import PanelButton from "../PanelButton.js";
|
||||
import FontIcon from "../../misc/FontIcon.js";
|
||||
import { distroIcon } from "../../variables.js";
|
||||
import options from "../../options.js";
|
||||
|
||||
export default () =>
|
||||
PanelButton({
|
||||
class_name: "overview",
|
||||
window: "overview",
|
||||
on_clicked: () => App.toggleWindow("overview"),
|
||||
content: FontIcon({
|
||||
binds: [
|
||||
[
|
||||
"icon",
|
||||
options.bar.icon,
|
||||
"value",
|
||||
(v) => {
|
||||
return v === "distro-icon" ? distroIcon : v;
|
||||
},
|
||||
],
|
||||
],
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user