Commit graph

84 commits

Author SHA1 Message Date
196b71bf25 quickshell: stop discarding the tray menu on close
contextMenu nulled menuOpener.menu whenever it hid, throwing away the
loaded items. The only thing that refills them is the hover prefetch,
which fires on enter — and the cursor is already on the icon you just
clicked, so closing and reopening never re-triggered it. The reopen
re-fetched over DBus and the panel grew to its empty height, then
jumped when the items arrived. Moving to another widget and back
worked only because it produced a fresh hover-enter.

Keeping the handle assigned makes reopening the same item free, and
since assigning an unchanged QML property is a no-op it also covers
switching away and back. openFor() reassigns for a different item.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 14:58:54 +01:00
105066c7c4 quickshell: restore grow-from-origin dropdown animation
seedFromButton went back to snapping only long enough to place the
stub, then releasing so tY/tH/openW all animate out to target. Holding
the snap through the grow pinned the height to its final value, so
panels slid out already full height instead of growing from the icon.

With the seed gate fixed in the previous commit, the three paths are
the ones the top bar had: open from closed seeds a stub at the widget
and grows both axes, close shrinks back to that stub, and switching
between dropdowns skips the seed so the bindings just retarget and the
panel morphs from one shape into the next.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 14:50:54 +01:00
3136780cd4 quickshell: fix dropdown seed gate, drop the tray menu wait
Revert the wait-for-items delay: never block opening on the menu.

The actual bug was in the rotation. toggleDropdown gated seeding on
chrome.height < 0.5, correct when height was the growth axis, but the
growth axis is width now and chrome.height is tH — never 0 (200 by
default, 32 after shrinkToButton). So seedFromButton has not run since
the bar went vertical: the chrome never seeded at the clicked widget
and tH animated from whatever the previous dropdown left behind.

Gate now tests chrome.width. seedFromButton also holds snap for the
length of the grow instead of releasing it immediately, so the panel
expands along one axis at its content's real height, and content that
lands mid-grow is followed instantly rather than starting a second
animation.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 14:37:28 +01:00
60e39613d6 quickshell: open tray menus at full size, not empty-then-grown
The DBus menu populates asynchronously and Steam's is slow, so the
panel was sized from an empty body: menuItems.width is fixed, making
the width final immediately while fullHeight was only padding. The
panel shot out sideways, then lurched taller when the items arrived —
two motions instead of one.

contextMenu now loads the menu first and opens once it has items,
falling back to a 500ms timeout so a menu that never populates cannot
strand the click. Hovering a tray icon also prefetches its menu, which
covers the wait in practice since you cannot click without hovering.

Clicking the open menu's own icon still closes it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 14:29:47 +01:00
0a6a23aa8a quickshell: bury melt joints by a full corner radius
Panels buried only 8px into the bar while their corner radius was 24,
so 16px of rounded corner stuck out past the joint: the outline pinched
where the corner turned, then the fillet bulged back out. That is the
balloon at the connection point.

meltInto now tracks Theme.radius, so the whole corner ends up inside
the band it merges with and only straight edges reach the junction —
which is what smin is meant to fillet. Applies to the panel, toast and
launcher. meltK follows radius / 2 so the fillet scales with the one
rounding knob instead of drifting out of step.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 14:05:39 +01:00
b2e4e9863b ui: single rounding knob, fix balloon-shaped cards
New settings/ui.nix holds `radius` as the one source of truth. Theme
derives radiusCard/Small/Tiny from it and hyprland's decoration.rounding
reads the same value, so one number rescales the whole desktop —
previously the shell and the window corners were unrelated constants,
which is why doubling Theme.radius left windows at 8.

Cards were using the SAME radius as the panel containing them. Nested
corners need outer − gap; matching them makes the inner corner
over-round for its size, which is the inflated/balloon look. All nine
inner surfaces now use radiusCard (radius − panelGap). Invisible at
r=8, obvious at r=32.

Radius 32 -> 24.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:58:28 +01:00
a36a3f35b7 quickshell: 2x rounding again, card padding, session menu as a dropdown
Radii doubled a second time (32/24/16).

Dropdown panels were +16 on the cross axis while the shader insets 8
top and bottom, leaving the panel edge flush with the content (0
padding) against a 4px overhang on the growth axis. Now +24 with the
content offset 12, giving 4px above and below to match the right.

Session menu becomes a real BarDropdown instead of its own surface:
it shares the morphing chrome with the other bar menus, so switching
between it and e.g. volume glides rather than cross-fading. Drops its
dedicated SDF surface, shader uniform and mask region, and the power
button gains the same hover-to-switch the other widgets have. Moved
beside volDropdown so it sits after the component declaration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:50:27 +01:00
8c549e1422 quickshell: melt edge-adjacent panels into the frame, centre night icon
Panels near a frame band left a visible seam instead of merging. The
clamp now targets the frame's inner edge and the shader extends any
surface within snapDist 4px INTO the band, so the SDF fuses them into
one swollen shape — the launcher's launchBot trick, generalised to
dropdowns, the session menu and the toast.

Reverts the panelGap inset from the previous commit, which pushed in
the wrong direction.

qsIcon used anchors.verticalCenter and was centred only because the
cell was qsIcon.width; at barWidth it sat at x=0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:38:38 +01:00
2cf3004fc4 quickshell: fix bottom cluster pile-up, vertical workspace slide
trayArea kept anchors.verticalCenter from when it was a Row inside a
Row. A Column refuses to position ANY child when one sets a vertical
anchor ("Column will not function"), so volume/network/night-mode/
tray/power all fell to y=0 and stacked unclickably in the corner.

Workspace switch animation gets style = "slidevert" so it slides up/
down to match the vertical workspace column.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:31:12 +01:00
4717d1e08f quickshell: inset clamped panels from the frame, widen bottom cluster
A dropdown that hits the clamp landed exactly on frameWidth, fusing
into the frame band in the SDF and losing its rounded corner — that
is what the calendar was doing at the top. Clamp now insets by
panelGap at both ends.

Bottom cluster spacing 12 -> 16, separators 5 -> 10.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:22:51 +01:00
fdd44e64b2 quickshell: anchor calendar to the clock, space out the bottom cluster
Calendar was left on dropdownY: bar.height / 2 from the rotation, so
it opened at screen centre instead of next to the clock it comes from.
It now maps the clock's position like every other dropdown.

Bottom cluster reads as one clump: bumped its spacing to 12 to match
the top and split status icons / tray / power with separators.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:15:06 +01:00
33b729c560 quickshell: vertical left bar, 2x rounding, left-aligned surfaces
Bar moves from a horizontal top band to a vertical left column
(Theme.barHeight -> barWidth, 46px for the stacked HH/mm clock).
Every panel now grows rightward out of the bar instead of down:
the dropdown chrome's morph axis, the SDF surface geometry and the
session menu all swap x/y. The launcher is the one surface left at
bottom-centre, as asked.

New: NixOS snowflake at the top (recoloured to the accent with the
tray's hidden-Image + ColorOverlay trick), vertical workspace dots
whose focused pill grows on height, an inline OSD slot in the gap
between the two clusters, and a power button in the bottom-left
that opens the session menu.

Dropped the flush-to-far-edge dropdown special case — clamped
tracking plus the SDF melt already covers it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:09:49 +01:00
efd1331823 quickshell: native volume/brightness OSD, drop swayosd + wob
Sixth surface in the SDF chrome shader, melting out of the bottom
frame. Volume is reactive via Pipewire so the OSD also fires for
pavucontrol/mixer changes; brightness routes through a new osd IPC
handler since sysfs backlight only notifies via POLLPRI.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 12:35:44 +01:00
34234ab9e9 quickshell: cache:false on wallpaper images (stale after soft reload)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 12:59:22 +01:00
8efcc4d30c desktop: replace ly with greetd autologin + boot-locked quickshell
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 17:03:26 +01:00
1158a36d1a quickshell: uniform panelGap token + card-style notifications/toast
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 14:05:05 +01:00
0342cbe59a quickshell: quick-settings — night light with sunset auto, brightness + kbd backlight sliders
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 13:26:08 +01:00
9239f60549 lockscreen: fix PAM never instantiating (moved out of WlSessionLock)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 12:09:52 +01:00
57d4ea4e0f lockscreen: fix enter key, add confirm button
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 11:20:23 +01:00
bedb11930f lockscreen: replace hyprlock with quickshell WlSessionLock
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 11:04:27 +01:00
eb80358748 desktop: drop hyprpaper + speechd, quickshell draws wallpaper
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 10:13:26 +01:00
23a5ad2914 quickshell: trim hyprshot body, add image preview to toast (shared helper)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 15:39:11 +01:00
7cd7a0e3dc screenshots: save file for notification previews, fall back to appIcon path
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 15:20:53 +01:00
f0193eedd3 quickshell: round album art, full-width notifications with app icon + image preview
- album art uses ClippingRectangle so the image follows the radius
- NotifContent gains an app icon + name header
- notifications move to a full-width card spanning both panes, each item
  showing the notification image preview when present

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 14:56:49 +01:00
c901b9b56d quickshell: media card — title/artist right of art, controls+volume below
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 14:48:31 +01:00
af35c81514 quickshell: bump media album art to 128x128
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 14:47:02 +01:00
150f362998 quickshell: restack media card — art+controls row, then title/artist/volume
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 14:43:09 +01:00
a772034220 quickshell: drop session menu auto-close timer too
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 14:25:54 +01:00
83b4c5ef09 quickshell: click-outside dropdown dismissal, drop auto-close timers
Extend the launcher/session HyprlandFocusGrab to the bar dropdowns and
remove the per-dropdown inactivity timers. Shift+Super+S brackets hyprshot
with a screenshot pin so open menus survive slurp's input grab.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 14:19:10 +01:00
215239e7aa quickshell: extract HoverRow component, dedupe 6 hover targets
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 13:59:26 +01:00
6846f38b9a quickshell: wrap tray context menu in shared Card segment
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 13:52:15 +01:00
700d3f7de1 quickshell: clickable mute icon on all volume sliders via VolIcon
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 13:22:28 +01:00
2697614e1b quickshell: fade hover highlights via transparent base02, no black flash
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 12:52:52 +01:00
2f51d2b4f1 quickshell: split media cards per MPRIS source, add per-stream volume
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 11:43:45 +01:00
6977568bf2 quickshell: drop fill-on-select for session menu icons
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 11:38:11 +01:00
98699b5346 quickshell: fix hover/colour bugs, translucent card surfaces
- calendar month chevrons: fade from transparent base02, no black flash
- power menu: all four buttons use the logout base05 setup
- runner results: base01 card segment matching other dropdowns
- cards: translucent cardBg so the bar-layer blur shows through

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 11:30:17 +01:00
792ecb80bb quickshell: drop unused Theme tokens (base06, base07, toastBg)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 15:55:34 +01:00
ad70441589 quickshell: toast notification sits in a base02 card to match the calendar
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 19:36:11 +01:00
faa345d016 quickshell: match calendar notification styling to the toast (shared defaults)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 19:25:06 +01:00
3047ea547c quickshell: profile selector — selected bright, unselected grey
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 17:45:16 +01:00
f1b8d5d57d quickshell: refactor — Theme tokens, reusable components, dedup
Reduces the shell from 2898 → 2712 lines (~316 lines of duplication removed,
~130 of reusable scaffolding added). Rollback point: tag quickshell-pre-refactor.

- Theme tokens: barHeight, radius/radiusSmall/radiusTiny, cardPad, animMorph/
  animContent/animFade — bar height and the shader cutout math now derive from
  one constant instead of ~10 scattered 30/26 literals
- SText/SIcon base components default the two fonts (removed 58 font.family lines)
- Card component: the rounded base01 section surface, now one definition driving
  7 cards (volume ×2, network ×2, battery ×2, calendar)
- PillSlider component: master + per-app volume sliders share one slider
- NotifContent component: calendar list + toast notification bodies deduped
- dead code: dropped unused QtQuick.Shapes import, collapsed redundant
  weatherGlyph branches, converted the lone RowLayout to drop QtQuick.Layouts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-13 13:05:01 +01:00
715ccdd4ae quickshell: session and launcher panels expand from a point like the dropdowns
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 20:10:20 +01:00
be330a0c6d quickshell: OnDemand keyboard with focus grab — Exclusive made the grab self-clear and close panels
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:49:25 +01:00
641d5c7e63 quickshell: launcher rises from the bottom frame; sliding pills in session menu and launcher list
- launcher moved into the bar window as a 5th SDF surface: melts out of
  the bottom frame edge, height morphs live as results filter
- session menu selection is a gliding pill (battery-menu tech)
- launcher selection uses an animated ListView highlight
- HyprlandFocusGrab gives both panels click-outside dismissal
- standalone Launcher.qml window removed

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:45:03 +01:00
d2bcdad2fe quickshell: session menu was painted UNDER the chrome shader — move above it, calendar palette
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:31:56 +01:00
a4a34e7248 quickshell: session menu follows the shell's selection grammar (pill border, accent icon)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:26:32 +01:00
1b22c771f4 quickshell: align battery row to baseline; session icons computed-bright, filled when selected
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:21:53 +01:00
cae1a69026 quickshell: brighter, bolder session icons (base07, weight 600); expose base06/07
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 14:28:50 +01:00
516b8b6d5b quickshell: session menu card backing, keyboard nav with default selection
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 14:23:33 +01:00
a14ccd8c09 quickshell: material symbols icons, network cards, session menu morphs from right edge
- Material Symbols Rounded (ligature names) replaces nerd-font glyphs for
  all shell icons; text stays on the stylix mono font
- network dropdown gets the card treatment like the others
- power menu is now an icon-only session panel melting out of the right
  frame column at screen centre (still Super+L); launcher is apps-only

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 14:06:20 +01:00