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
33
shell/bar/control/Button.qml
Normal file
33
shell/bar/control/Button.qml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
import Quickshell
|
||||
import QtQuick
|
||||
import "../../widgets/" as Widgets
|
||||
|
||||
Widgets.IconButton {
|
||||
id: root
|
||||
required property var bar
|
||||
required property var screen
|
||||
|
||||
implicitSize: 20
|
||||
source: "root:/resources/general/nixos.svg"
|
||||
padding: 2
|
||||
|
||||
onClicked: {
|
||||
if (controlPanel.visible) {
|
||||
controlPanel.hide();
|
||||
} else {
|
||||
controlPanel.show();
|
||||
}
|
||||
}
|
||||
|
||||
ControlPanel {
|
||||
id: controlPanel
|
||||
|
||||
anchor {
|
||||
window: root.screen
|
||||
|
||||
onAnchoring: {
|
||||
anchor.rect = mapToItem(root.screen.contentItem, 0, root.screen.height, width, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue