Fixed old imports I borked

This commit is contained in:
pascalyazid committed 2026-05-05 16:54:04 +02:00
1 parent 0575728c00
commit 293dff9e07
4 files changed
+15 -13

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import { Gtk } from "ags/gtk4" import { Gtk } from "ags/gtk4"
import AstalMpris from "gi://AstalMpris" import AstalMpris from "gi://AstalMpris?version=0.1"
import { createBinding, With, onCleanup } from "ags" import { createBinding, With, onCleanup } from "ags"
export default function Media() { export default function Media() {
+10 -8
View File
@@ -1,9 +1,9 @@
import { Gtk } from "ags/gtk4" import { Gtk } from "ags/gtk4"
import AstalNetwork from "gi://AstalNetwork" import AstalNetwork from "gi://AstalNetwork?version=0.1"
import AstalBluetooth from "gi://AstalBluetooth" import AstalBluetooth from "gi://AstalBluetooth?version=0.1"
import Wp from "gi://AstalWp" import AstalWp from "gi://AstalWp?version=0.1"
import { createBinding } from "ags" import { createBinding } from "ags"
import { execAsync } from "ags/process" import { execAsync, createSubprocess } from "ags/process"
function NetworkItem() { function NetworkItem() {
const network = AstalNetwork.Network.get_default() const network = AstalNetwork.Network.get_default()
@@ -69,7 +69,7 @@ function BluetoothItem() {
} }
function AudioSlider({ type }: { type: "speaker" | "microphone" }) { function AudioSlider({ type }: { type: "speaker" | "microphone" }) {
const wp = Wp.get_default() const wp = AstalWp.get_default()
const audio = wp?.audio const audio = wp?.audio
if (!audio) return <box /> if (!audio) return <box />
@@ -120,11 +120,13 @@ export default function QuickSettings() {
<BluetoothItem /> <BluetoothItem />
</box> </box>
<box orientation={Gtk.Orientation.VERTICAL} spacing={8}> <box orientation={Gtk.Orientation.VERTICAL} spacing={8}>
<label <button
label="Audio"
cssClasses={["qs-title"]} cssClasses={["qs-title"]}
halign={Gtk.Align.START} halign={Gtk.Align.START}
/> onClicked={() => execAsync(["/usr/bin/easyeffects"])}
>
<label label="Audio" halign={Gtk.Align.START} />
</button>
<AudioSlider type="speaker" /> <AudioSlider type="speaker" />
<AudioSlider type="microphone" /> <AudioSlider type="microphone" />
</box> </box>
+2 -2
View File
@@ -1,7 +1,7 @@
import { Gtk } from "ags/gtk4" import { Gtk } from "ags/gtk4"
import { createPoll } from "ags/time" import { createPoll } from "ags/time"
import AstalTray from "gi://AstalTray" import AstalTray from "gi://AstalTray?version=0.1"
import AstalBattery from "gi://AstalBattery" import AstalBattery from "gi://AstalBattery?version=0.1"
import { createBinding, For } from "ags" import { createBinding, For } from "ags"
export function Clock() { export function Clock() {
+2 -2
View File
@@ -1,7 +1,7 @@
import { Gtk } from "ags/gtk4" import { Gtk } from "ags/gtk4"
import GdkPixbuf from "gi://GdkPixbuf" import GdkPixbuf from "gi://GdkPixbuf?version=2.0"
import Gdk from "gi://Gdk" import Gdk from "gi://Gdk?version=4.0"
import { getWallpapers, setTheme } from "../theme" import { getWallpapers, setTheme } from "../theme"
// Global memory cache for textures, shared across all monitors! // Global memory cache for textures, shared across all monitors!