mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 18:30:46 +02:00
ported some quickshell stuff from rivendell-hyprdots
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick.Layouts
|
||||
import "../launcher" as Launcher
|
||||
|
||||
MouseArea {
|
||||
id: root
|
||||
|
||||
implicitWidth: 26
|
||||
implicitHeight: 26
|
||||
|
||||
acceptedButtons: Qt.LeftButton
|
||||
|
||||
Image {
|
||||
id: img
|
||||
anchors.fill: parent
|
||||
source: "../assets/chi-ro.png"
|
||||
smooth: false
|
||||
scale: Launcher.Controller.isOpen ? 0.8 : 1
|
||||
Behavior on scale {
|
||||
NumberAnimation {
|
||||
duration: 70
|
||||
}
|
||||
}
|
||||
}
|
||||
MultiEffect {
|
||||
source: img
|
||||
anchors.fill: img
|
||||
blur: 1.0
|
||||
brightness: 0.3
|
||||
blurEnabled: true
|
||||
}
|
||||
|
||||
onPressed: () => {
|
||||
Launcher.Controller.isOpen = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user