This commit is contained in:
2026-03-29 13:16:40 -05:00
parent adcd560180
commit 7a15a983af
26 changed files with 685 additions and 423 deletions

View File

@@ -23,6 +23,19 @@ Item {
property int selected: 0
IpcHandler {
target: "dashboard"
function show() { root.visible = true; }
function hide() { root.visible = false; }
function toggle() { root.visible = !root.visible; }
}
Power {
id: power
visible: false
}
VFlyoutDown {
@@ -68,7 +81,7 @@ Item {
implicitHeight: 40
radius: root.radius
color: index == selected ? Pywal.colors.color13 : Pywal.colors.color4
//Launcher { anchors.centerIn: parent }
//LauncherButton { anchors.centerIn: parent }
Text {
font.pointSize: 14
text: switch(index) {
@@ -128,27 +141,29 @@ Item {
onNotification: (n) => {
n.tracked = !n.transient
n.closed.connect(() => { console.log("notif closed") })
}
}
Loader {
anchors.fill: parent
readonly property Component launcher: Launcher {}
readonly property Component launcher: LauncherButton {}
readonly property Component notifs: Notifications { server: nserver }
readonly property Component bt: Bluetooth {}
readonly property Component vol: Volume {}
readonly property Component bat: PowerMode {}
readonly property Component mon: Launcher {}
readonly property Component mon: LauncherButton {}
readonly property Component net: Launcher {}
readonly property Component mus: Launcher {}
readonly property Component net: LauncherButton {}
readonly property Component mus: LauncherButton {}
readonly property Component clk: Clock {}
readonly property Component wal: Launcher {}
readonly property Component wal: LauncherButton {}
sourceComponent: switch(selected) {
case 0:
@@ -191,7 +206,7 @@ Item {
radius: root.radius
property bool use: false
color: use ? Pywal.colors.color13 : Pywal.colors.color4
//Launcher { anchors.centerIn: parent }
//LauncherButton { anchors.centerIn: parent }
Text {
font.pointSize: 14
text: switch(index) {
@@ -235,6 +250,7 @@ Item {
case 6:
case 7:
case 8:
power.visible = true
default:
break;
}