Added more configuration options

This commit is contained in:
Jas Singh
2024-07-20 16:21:52 -07:00
parent 29abe55008
commit a480400359
37 changed files with 368 additions and 417 deletions

View File

@@ -1,4 +1,5 @@
const network = await Service.import("network");
import options from "options";
import { openMenu } from "../utils.js";
const Network = () => {
@@ -22,7 +23,15 @@ const Network = () => {
}),
Widget.Label({
class_name: "bar-network-label",
label: network.bind("wired").as(() => " Wired"),
label: Utils.merge(
[network.bind("wired"), options.bar.network.label.bind("value")],
(_, showLabel) => {
if (showLabel) {
return " Wired";
}
return "";
},
),
}),
];