mirror of
https://github.com/Sn3akyy1/lucid.git
synced 2026-11-19 21:27:56 +03:00
c0ebc5c3bc
- Tray: both looks rebuilt in Material You, every app in a slot of its own or three stacked with a count; a click opens the tray, each app a row with its menu opening in place - Pointer: Bibata Modern's shapes drawn from source in the palette's colours, fading with it, the tilt card, and the shell drawing the pointer itself in drags - Clock's engine in the shell (Alarms, ClockLink): alarms ring with the app closed and always post Snooze and Stop - Lumen: network drives (Connect to server, shares, Nearby); Lens: videos - Bar: Content size, notch edges as quarter ellipses up to 64 px, frosted and lit on hover; fixes across the dock, desktop, widgets, LucidShot and Settings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
62 lines
1.6 KiB
QML
62 lines
1.6 KiB
QML
import QtQuick
|
|
import qs
|
|
|
|
// one row of a grouped list, the way Lucid Settings draws them: the group's
|
|
// outer corners round large, the corners meeting a neighbour small, 3dp apart.
|
|
// the content goes inside; `raised` is a row opened up, a step lighter
|
|
Rectangle {
|
|
id: gr
|
|
|
|
property bool first: true
|
|
property bool last: true
|
|
property bool hoverable: true
|
|
property bool raised: false
|
|
readonly property int outer: Theme.rad(26)
|
|
readonly property int inner: Theme.dp(6)
|
|
readonly property bool hovered: hover.hovered
|
|
default property alias content: holder.data
|
|
|
|
topLeftRadius: gr.first ? gr.outer : gr.inner
|
|
topRightRadius: gr.first ? gr.outer : gr.inner
|
|
bottomLeftRadius: gr.last ? gr.outer : gr.inner
|
|
bottomRightRadius: gr.last ? gr.outer : gr.inner
|
|
color: Theme.withBlur(gr.raised ? Theme.bgHigh : Theme.bgTile)
|
|
|
|
// pointer feedback only, as SettingRow's: it never takes a click
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
topLeftRadius: gr.topLeftRadius
|
|
topRightRadius: gr.topRightRadius
|
|
bottomLeftRadius: gr.bottomLeftRadius
|
|
bottomRightRadius: gr.bottomRightRadius
|
|
color: Theme.text
|
|
opacity: hover.hovered && gr.hoverable ? Theme.stateHover * 0.5 : 0
|
|
|
|
Behavior on opacity {
|
|
NumberAnimation {
|
|
duration: Theme.durQuick
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
HoverHandler {
|
|
id: hover
|
|
}
|
|
|
|
Item {
|
|
id: holder
|
|
|
|
anchors.fill: parent
|
|
}
|
|
|
|
Behavior on color {
|
|
ColorAnimation {
|
|
duration: Theme.durShort
|
|
}
|
|
|
|
}
|
|
|
|
}
|