mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
put shell in subdir, and add nix package
This commit is contained in:
parent
c45c04e9ac
commit
f41ea4b1cb
100 changed files with 57 additions and 126 deletions
|
|
@ -1,50 +0,0 @@
|
|||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.Services.Pipewire
|
||||
import "../../widgets/" as Widgets
|
||||
import "../.."
|
||||
|
||||
WrapperRectangle {
|
||||
id: root
|
||||
color: ShellSettings.colors["surface_container"]
|
||||
radius: width / 2
|
||||
margin: 6
|
||||
|
||||
required property PwNode node
|
||||
property string text
|
||||
property Component button
|
||||
property Component icon
|
||||
|
||||
PwObjectTracker {
|
||||
id: tracker
|
||||
objects: [root.node]
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
Widgets.MaterialSlider {
|
||||
value: root.node.audio.volume ?? 0
|
||||
text: root.text
|
||||
icon: root.icon
|
||||
|
||||
onValueChanged: {
|
||||
// only allow changes when the node is ready other wise you will combust
|
||||
if (!root.node.ready)
|
||||
return;
|
||||
|
||||
root.node.audio.volume = value;
|
||||
}
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: buttonLoader
|
||||
sourceComponent: root.button
|
||||
|
||||
Layout.preferredWidth: this.height
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue