ported some quickshell stuff from rivendell-hyprdots

This commit is contained in:
Tomas Rivera
2026-03-10 16:22:35 +01:00
parent 4b442dd121
commit b9e3f35abe
80 changed files with 4462 additions and 9 deletions
+31
View File
@@ -0,0 +1,31 @@
import QtQuick
import Quickshell
import QtQuick.Layouts
import "../"
MouseArea {
id: root
implicitWidth: 26
implicitHeight: 26
hoverEnabled: true
acceptedButtons: Qt.LeftButton
Image {
anchors.fill: parent
source: `../assets/${Globals.isDarkTheme ? "sun" : "moon"}.png`
smooth: false
scale: root.containsMouse ? 0.9 : 1
Behavior on scale {
NumberAnimation {
duration: 70
}
}
}
onPressed: () => {
Globals.isDarkTheme = !Globals.isDarkTheme;
}
}