add slide-in applet dock with collapsible cards, edge trigger, and bar module toggle
This commit is contained in:
parent
6fd36c812f
commit
c22eb51dcd
14 changed files with 689 additions and 14 deletions
|
|
@ -216,10 +216,13 @@ PanelWindow {
|
|||
}
|
||||
}
|
||||
|
||||
// Power
|
||||
// Power + Dock
|
||||
M.BarGroup {
|
||||
rightEdge: true
|
||||
M.BatteryModule {}
|
||||
M.DockModule {
|
||||
visible: S.Modules.dock.enable
|
||||
}
|
||||
M.PowerModule {
|
||||
visible: S.Modules.power.enable
|
||||
}
|
||||
|
|
|
|||
15
shell/modules/DockModule.qml
Normal file
15
shell/modules/DockModule.qml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import QtQuick
|
||||
import "." as M
|
||||
import "../services" as S
|
||||
import "../dock" as D
|
||||
|
||||
M.BarModule {
|
||||
id: root
|
||||
tooltip: D.DockState.open ? "Close dock" : "Open dock"
|
||||
onTapped: D.DockState.toggle()
|
||||
|
||||
M.BarIcon {
|
||||
icon: D.DockState.open ? "\uDB80\uDD8B" : "\uDB80\uDD89"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ BluetoothModule 1.0 BluetoothModule.qml
|
|||
ClockModule 1.0 ClockModule.qml
|
||||
CpuModule 1.0 CpuModule.qml
|
||||
DiskModule 1.0 DiskModule.qml
|
||||
DockModule 1.0 DockModule.qml
|
||||
GpuModule 1.0 GpuModule.qml
|
||||
HoverPanel 1.0 HoverPanel.qml
|
||||
IdleInhibitorModule 1.0 IdleInhibitorModule.qml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue