mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
48 lines
1.0 KiB
QML
48 lines
1.0 KiB
QML
pragma ComponentBehavior: Bound
|
|
import qs
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import Quickshell.Services.Pipewire
|
|
|
|
WindowDialog {
|
|
id: root
|
|
property bool isSink: true
|
|
backgroundHeight: 700
|
|
|
|
WindowDialogTitle {
|
|
text: root.isSink ? Translation.tr("Audio output") : Translation.tr("Audio input")
|
|
}
|
|
|
|
VolumeDialogContent {
|
|
isSink: root.isSink
|
|
}
|
|
|
|
WindowDialogSeparator {
|
|
Layout.leftMargin: 0
|
|
Layout.rightMargin: 0
|
|
}
|
|
|
|
WindowDialogButtonRow {
|
|
DialogButton {
|
|
buttonText: Translation.tr("Details")
|
|
onClicked: {
|
|
Quickshell.execDetached(["bash", "-c", `${Config.options.apps.volumeMixer}`]);
|
|
GlobalStates.sidebarRightOpen = false;
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
DialogButton {
|
|
buttonText: Translation.tr("Done")
|
|
onClicked: root.dismiss()
|
|
}
|
|
}
|
|
}
|