mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
32 lines
592 B
QML
32 lines
592 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Widgets
|
|
import "../../widgets" as Widgets
|
|
import "../.."
|
|
|
|
Widgets.IconButton {
|
|
required property var bar;
|
|
|
|
id: root;
|
|
implicitSize: 20;
|
|
padding: 2;
|
|
source: "root:/resources/control/controls-button.svg";
|
|
onClicked: {
|
|
if (controlLoader.item.visible) {
|
|
controlLoader.item.hide();
|
|
} else {
|
|
controlLoader.item.show(-root.mapFromGlobal(0, 0).x, bar.height);
|
|
}
|
|
}
|
|
|
|
LazyLoader {
|
|
id: controlLoader;
|
|
loading: true;
|
|
|
|
ControlPanel {
|
|
id: controlPanel;
|
|
anchor.window: bar;
|
|
}
|
|
}
|
|
}
|
|
|