still broken but getting there

This commit is contained in:
kossLAN 2025-08-05 12:12:32 -04:00
parent 189144099b
commit 446d83ce2c
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
20 changed files with 143 additions and 1219 deletions

View file

@ -1,6 +1,6 @@
import QtQuick
import Quickshell.Widgets
import ".."
import qs
Item {
id: root
@ -9,8 +9,8 @@ Item {
property var padding: 0
property var radius: 20
property var activeRectangle: true
property var color: ShellSettings.colors["inverse_surface"]
property var activeColor: ShellSettings.colors["inverse_primary"]
property var color: ShellSettings.colors.inactive_translucent
property var activeColor: ShellSettings.colors.active_translucent
signal clicked
implicitWidth: implicitSize
@ -18,7 +18,7 @@ Item {
Rectangle {
id: iconBackground
color: ShellSettings.colors["primary"]
color: ShellSettings.colors.active_translucent
radius: root.radius
visible: iconButton.containsMouse && root.activeRectangle
anchors.fill: parent

View file

@ -1,5 +1,5 @@
import QtQuick
import ".."
import qs
MouseArea {
id: root
@ -7,7 +7,7 @@ MouseArea {
property real radius: width / 2
property bool checked: false
property var activeColor: ShellSettings.colors["primary"]
property var activeColor: ShellSettings.colors.active_translucent
property var inactiveColor: "transparent"
Rectangle {

View file

@ -1,6 +1,7 @@
import QtQuick
import Quickshell
import Quickshell.Widgets
import Quickshell.Hyprland
import ".."
PopupWindow {
@ -11,22 +12,42 @@ PopupWindow {
default property alias contentItem: container.children
function open() {
// root.anchor.rect.y = -root.implicitHeight;
root.visible = true;
grab.active = true;
// slideAnimation.start();
}
function hide() {
root.visible = false;
grab.active = false;
}
// PropertyAnimation {
// id: slideAnimation
// target: root.anchor.rect
// property: "y"
// from: -root.implicitHeight // Off-screen position
// to: 0 // On-screen position
// duration: 300 // Animation duration in milliseconds
// }
HyprlandFocusGrab {
id: grab
windows: [root]
onCleared: root.hide()
}
WrapperRectangle {
id: container
margin: 5
radius: 12
color: {
let base = ShellSettings.colors.surface;
return Qt.rgba(base.r, base.g, base.b, 0.15);
}
color: ShellSettings.colors.surface_translucent
border {
width: 1
color: {
let base = ShellSettings.colors.active;
return Qt.rgba(base.r, base.g, base.b, 0.05);
}
color: ShellSettings.colors.active_translucent
}
}
}