mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
Initial commit
This commit is contained in:
commit
05cd51b54e
148 changed files with 10112 additions and 0 deletions
35
.stversions/bar/volume/Button~20250509-203451.qml
Normal file
35
.stversions/bar/volume/Button~20250509-203451.qml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import QtQuick
|
||||
import Quickshell
|
||||
import "../../widgets/" as Widgets
|
||||
import "../.."
|
||||
|
||||
|
||||
Widgets.IconButton {
|
||||
required property var bar;
|
||||
|
||||
id: iconButton
|
||||
implicitSize: 20
|
||||
source: "root:/resources/volume/volume-full.svg"
|
||||
padding: 2
|
||||
|
||||
onClicked:{
|
||||
if (volumeControl.visible) {
|
||||
volumeControl.hide()
|
||||
}
|
||||
else {
|
||||
volumeControl.show()
|
||||
}
|
||||
}
|
||||
|
||||
ControlPanel {
|
||||
id: volumeControl
|
||||
|
||||
anchor {
|
||||
window: bar
|
||||
|
||||
onAnchoring: {
|
||||
anchor.rect = mapToItem(bar.contentItem, 0, bar.height, width , 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue