This commit is contained in:
sankalp committed 2024-07-01 14:51:10 +05:45
1 parent 6b14451fe6
commit 1d69e6c2ce
17 files changed
+440 -189

No files matched your search

+11 -7
View File
@@ -3,7 +3,8 @@ import { Network } from "./network";
import { Bluetooth } from "./bluetooth";
import { Wallpapers } from "./wallpapers";
import { Info } from "./info";
import { Widget as WidgetType } from "types/widgets/widget";
import { Apps } from "./apps";
import { MaterialIcon } from "icons";
const hyprland = await Service.import("hyprland")
import Gtk from "gi://Gtk?version=3.0"
@@ -42,14 +43,15 @@ function Settings(cur_tab: string) {
"network": Page(Network(), "Network"),
"bluetooth": Page(Bluetooth(), "Bluetooth"),
"wallpaper": Page(Wallpapers(), "Wallpapers"),
"info": Page(Info(), "Info")
"info": Page(Info(), "Info"),
"apps": Page(Apps(), "Apps")
}
})
const Row = (name: string, label: string, icon: string = "image-missing") => Widget.Button({
on_clicked: () => { current_tab.setValue(name) },
child: Widget.Box({
children: [
Widget.Icon(icon),
MaterialIcon(icon),
Widget.Label(label)
]
}),
@@ -61,12 +63,14 @@ function Settings(cur_tab: string) {
class_name: "sidebar",
spacing: 2,
children: [
Row("network", "Network", "network-wireless-signal-excellent-symbolic"),
Row("bluetooth", "Bluetooth", "bluetooth-active-symbolic"),
Row("network", "Network", "signal_wifi_4_bar"),
Row("bluetooth", "Bluetooth", "bluetooth"),
Widget.Separator(),
Row("wallpaper", "Wallpapers", "folder-pictures-symbolic"),
Row("wallpaper", "Wallpapers", "image"),
Widget.Separator(),
Row("info", "Info", "dialog-information-symbolic"),
Row("apps", "Apps", "grid_view"),
Widget.Separator(),
Row("info", "Info", "info")
]
})
return Widget.Box({