Rename bar.js file to index.js and fix styling for switches and media progress bar.

This commit is contained in:
Jas Singh
2024-07-02 01:57:17 -07:00
parent 3cf2d73d57
commit fee85b255c
15 changed files with 58 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
const battery = await Service.import("battery");
import { closeAllMenus } from "../bar.js";
import { closeAllMenus } from "../index.js";
const BatteryLabel = () => {
const isVis = Variable(battery.available);

View File

@@ -1,5 +1,5 @@
const bluetooth = await Service.import('bluetooth')
import { closeAllMenus } from "../bar.js";
import { closeAllMenus } from "../index.js";
const Bluetooth = () => {
const btIcon = Widget.Label({

View File

@@ -1,4 +1,4 @@
import { closeAllMenus } from "../bar.js";
import { closeAllMenus } from "../index.js";
const date = Variable("", {
poll: [1000, 'date "+󰃭 %a %b %d  %I:%M:%S %p"'],

View File

@@ -1,5 +1,5 @@
const mpris = await Service.import("mpris");
import { closeAllMenus } from "../bar.js";
import { closeAllMenus } from "../index.js";
const Media = () => {
const activePlayer = Variable(mpris.players[0]);

View File

@@ -1,5 +1,5 @@
const network = await Service.import("network");
import { closeAllMenus } from "../bar.js";
import { closeAllMenus } from "../index.js";
import { globalMousePos } from "../../../globals.js";

View File

@@ -1,5 +1,5 @@
const audio = await Service.import("audio");
import { closeAllMenus } from "../bar.js";
import { closeAllMenus } from "../index.js";
import { globalMousePos } from "../../../globals.js";