Commit Graph
4619 Commits
Author SHA1 Message Date
Ryan Hughes fca58df0a5 Clean up audio device choices 2026-05-18 22:46:30 -04:00
Ryan Hughes 34ff56ae19 Detect PipeWire playback streams by sink role 2026-05-18 21:51:21 -04:00
Ryan Hughes f1e6fe86b7 Remove legacy battery bar module 2026-05-18 21:27:00 -04:00
Ryan Hughes 6fa6e6cc91 Merge remote-tracking branch 'origin/omarchy-shell' into omarchy-shell
# Conflicts:
#	shell/Ui/PillButton.qml
#	shell/plugins/bar/widgets/monitorPanel.qml
#	shell/plugins/bar/widgets/networkPanel.qml
2026-05-18 21:11:37 -04:00
Ryan Hughes 8b2bb217d6 Standardize shell UI theme tokens 2026-05-18 20:13:12 -04:00
David Heinemeier Hansson 34bb950830 Keyboard nav 2026-05-18 22:50:38 +02:00
David Heinemeier Hansson bc1b824891 More tweaks 2026-05-18 22:47:06 +02:00
David Heinemeier Hansson 1a457118a5 Ensure you can click to open another panel while one is open 2026-05-18 22:38:53 +02:00
David Heinemeier Hansson 9daa0e6ed3 More tweaks 2026-05-18 22:10:26 +02:00
David Heinemeier Hansson 74f71236e0 More tweaking 2026-05-18 22:00:09 +02:00
David Heinemeier Hansson e8bfdbb13b Little more tweaks 2026-05-18 21:24:48 +02:00
David Heinemeier Hansson d99ccaf550 More power panel layouting 2026-05-18 21:13:42 +02:00
David Heinemeier Hansson 196dcd2472 Open power panel on super + ctrl + p 2026-05-18 21:13:37 +02:00
David Heinemeier Hansson 1dc2f1ec79 Introduce power panel 2026-05-18 20:47:38 +02:00
David Heinemeier Hansson c517997922 Spinning when scanning 2026-05-18 20:47:38 +02:00
Ryan Hughes 44dff2d23d Bar settings: use qs.Ui.ButtonGroup for the position picker
The custom PositionButtonGroup component wrapped Repeater + Button
directly without setting bordered: true on the delegates. After the
recent Button changes (idle non-bordered Buttons have zero border
width), the non-selected position chips lost their visible chip
structure entirely \u2014 they rendered as floating text labels and read
as unclickable.

Replace the bespoke component with qs.Ui.ButtonGroup (which sets
bordered: true on each chip) inside a Column with a 'Position' label,
and drop the now-unused PositionButtonGroup definition. All four
options now read as clickable chips and the chosen value still paints
the accent fill+border.
2026-05-18 12:41:55 -04:00
Ryan Hughes d4bf8d0eea omarchy dev ui-preview: jump to a specific section via argument
Pass a section name to open the gallery with the cursor already on
that component instead of scrolling from the top. Useful when
iterating on a single widget.

  omarchy dev ui-preview              # default position
  omarchy dev ui-preview button       # land on the Button section
  omarchy dev ui-preview button-group # land on ButtonGroup
  omarchy dev ui-preview slider       # land on Slider, etc.

The bin script forwards the argument as {"section": "..."} in the
shell summon payload. The gallery's open(payloadJson) parses it,
clamps against visibleSections (unknown names fall back to default),
and sets focusSection + selectedIndex inside the existing Qt.callLater
so the cursor's hasCursor bindings fire ensureCursorVisible
automatically.
2026-05-18 12:36:46 -04:00
Ryan Hughes b25dd100e3 Make Button state composition visible in ButtonGroup and the gallery
Three small fixes around the new Button + ButtonGroup so the cursor is
always visible and the section reads as a single Button showing flag
combinations.

ButtonGroup now exposes cursorIndex + hovered(index, isHovered) so
panels can drive a single Button's hasCursor without reaching past
ButtonGroup's API. Every chip gets bordered: true so the row reads as
a real picker — distinct outlines, not just a tinted fill that vanishes
into the background.

Button's border treatment grows two paths so the cursor is always
visible regardless of other state: bordered + hot recolors the border
to the accent and thickens to the focus-ring width, and selected + hot
thickens the existing accent border to the focus-ring width (so the
cursor landing on the chosen option still reads as cursor presence,
instead of disappearing into the selected fill).

Gallery's Button section pairs each demo button with a small caption
('idle', 'active', 'icon only', 'icon + active', 'bordered +
focusable') so the row reads as one Button with its state flags side
by side rather than five unrelated buttons. The ButtonGroup section
gets the cursor wiring (cursorIndex + onHovered) plus an
onFocusedChanged auto-scroll so the cursor visual is reachable via
j/k h/l from the panel cursor model.
2026-05-18 12:33:24 -04:00
Ryan Hughes 8b858d4093 Add outline cursor mode to CursorSurface for slider rows
Wide content rows (slider rows in audio / monitor panels) opted out of
the cursor fill by setting fill: "transparent" on their CursorSurface,
which left them with no cursor visual at all — j/k landed there
silently with no way to know what was selected.

Add an `outline: bool` flag to CursorSurface. When true, hasCursor
paints an accent border (Style.focusBorderColor at
Style.focusBorderWidth) instead of a fill, leaving the row's chrome
fully visible underneath. Use for slider rows where a fill would
obscure the track.

Audio output / input slider rows and the monitor brightness row opt
in. The dev gallery's slider section replaces its bespoke Rectangle
wrapper with the same CursorSurface { outline: true }, so what the
gallery documents is what the panels ship.
2026-05-18 12:19:23 -04:00
Ryan Hughes b5f7ba02c2 Unify PillButton, CursorPill, ChoiceButton into qs.Ui.Button + ButtonGroup
The three components were three takes on the same shape \u2014 a clickable
rectangle with text/icon, a hot/hover state, an optional persistent
border, and an optional 'selected' or 'active' highlight. CursorPill
was a 30-line PillButton wrapper that added a hovered() signal;
ChoiceButton was effectively PillButton with selected: bool painting
an accent fill+border.

Collapse them into a single qs.Ui.Button. State flags compose
independently:

  hasCursor / hover         hot fill
  active                    persistent foreground-tint fill
  selected                  accent fill + accent border
  bordered: true            persistent 1px idle border (form primaries)
  focusable: true           Tab focus paints the accent ring
  pressed                   pressed fill

The hovered(bool) signal is now built-in, so CursorPill's wrapper is
unnecessary. ButtonGroup wraps a Row+Repeater for the form-style
'pick one of N' pattern; panel-cursor-driven cases still compose
Buttons directly in a Row with per-instance hasCursor wiring.

Theme tokens move into a new [style] section in shell.toml:

  border-width        = 1
  focus-border-width  = 3
  idle-border-alpha   = 0.4
  hot-fill-alpha      = 0.08
  selected-fill-alpha = 0.18
  pressed-fill-alpha  = 0.22
  focus-fill-alpha    = 0.22

Style.qml parses these out of the same shell.toml [font] / [bar]
already reads, and exposes pre-computed Style.hotFill / selectedFill /
pressedFill / idleBorderColor / selectedAccentFill / borderWidth +
the existing focusBorder* tokens. Themes that don't ship a [style]
section get the previous defaults unchanged.

Dev gallery consolidates three sections (PillButton, CursorPill,
ChoiceButton) into Button + ButtonGroup, with the cursor model
sections renamed accordingly.
2026-05-18 12:09:13 -04:00
Ryan Hughes 42dee4d399 Standardize cursor chrome to fill-only across qs.Ui
CursorSurface defines the canonical cursor chrome: a tinted fill, no
border. Three components had inconsistent treatments that the recent
standardization pass left half-finished:

- PillButton kept a 1px foreground border on hot (cursor or hover)
  via a cursorBordered: true default.
- CursorPill specifically had to override cursorBordered: false to
  match the rest of the kit.
- ChoiceButton thickened its border to 2px on hasCursor, which mixed
  the cursor visual with the Tab-focus visual.

Drop the cursorBordered escape hatch from PillButton (no caller other
than CursorPill ever used it), drop CursorPill's now-redundant
override, and remove hasCursor from ChoiceButton's border.width
thickening. Update Toggle's class comment (it still claimed cursor
mirrored Tab focus, which f3ba5055 broke without updating the doc).

Now: hot/hasCursor = fill only, activeFocus = accent border ring,
selected/active = stronger fill or accent border per component
semantic. One canonical pattern across the kit.
2026-05-18 11:52:23 -04:00
Ryan Hughes 648bc54db1 Unify font sizes through qs.Commons.Style
Themes now drive typography the same way they drive colors: one [font]
base-size in shell.toml is the rem root, and every Style.font.<token>
(caption, bodySmall, body, subtitle, title, heading, display,
displayLarge, iconSmall, icon, iconLarge) derives from it via a fixed
multiplier. Themes can also pin individual tokens for stylistic
emphasis. base-size is clamped 11..13 until row-height tokens exist.

Bar dimensions move to the same singleton: [bar] size-horizontal /
size-vertical replace the hardcoded 26/28 in Bar.qml, exposed as
Style.bar.sizeHorizontal / sizeVertical.

Style.qml also resolves the fontconfig 'monospace' alias via fc-match
and exposes Style.font.resolvedFamily so panels can display the
concrete family. Watches ~/.config/fontconfig/fonts.conf so it tracks
'omarchy font set <name>'.

The qs.Ui kit (PillButton, Dropdown, Toggle, TextField, etc.) and
every first-party plugin (bar widgets, settings, menu, clipboard,
emoji, polkit, notifications, osd, image-picker, dev-gallery) now
bind to Style.font.* instead of pixel literals. Only three deliberate
display-scale outliers remain: the notification empty-state glyph and
the weather flyout's hero temperature pair, all commented.

Background plugin's applyTheme IPC fast-path also pushes shell.toml to
Style so theme swaps update typography and bar size without waiting
for inotify debounce.

Dev gallery (omarchy dev ui-preview) now ships a Typography section
that renders the full scale and theme tokens live, and its summon
command is fixed (omarchy-shell-ipc -> omarchy-shell).
2026-05-18 11:33:19 -04:00
Ryan Hughes c26cf49f7d Fix settings widget dialog and fallback defaults 2026-05-18 10:17:01 -04:00
Ryan Hughes f48eef58e0 Trim doc and comment drift in qs.Ui kit 2026-05-18 10:17:01 -04:00
Ryan Hughes e9e5040bf3 Refresh idle indicator on bar IPC 2026-05-18 10:17:01 -04:00
David Heinemeier Hansson bbdc485a62 Open the right panels 2026-05-18 15:54:21 +02:00
David Heinemeier Hansson f3ba505558 More tweaking and standardization 2026-05-18 15:54:14 +02:00
David Heinemeier Hansson acf617e05e No animations for any of these pickers 2026-05-18 15:53:49 +02:00
David Heinemeier Hansson debda5cef8 Just make bluetooth panel show human options 2026-05-18 15:41:21 +02:00
David Heinemeier Hansson cddc18b1cd Panel tweaks 2026-05-18 15:30:29 +02:00
David Heinemeier Hansson 0fe985b45d Promote shell to its own top-level directory 2026-05-18 14:56:59 +02:00
David Heinemeier Hansson d782705878 Match offset and color to existing notifications 2026-05-18 14:34:11 +02:00
David Heinemeier Hansson ff40026b7b Use consistent corner radius for themes 2026-05-18 14:30:49 +02:00
David Heinemeier Hansson 4551b8920a Fix glyph notifications to be slim 2026-05-18 14:29:43 +02:00
David Heinemeier Hansson b0f5d941ba Switch to running quickshell as a systemd service that is auto-restarted if it crashes 2026-05-18 13:58:07 +02:00
David Heinemeier Hansson 8424718d1b No animations on bar location changes 2026-05-18 13:56:26 +02:00
Ryan Hughes ae17436089 Update bindings 2026-05-18 03:19:58 -04:00
Ryan Hughes d6708ffe69 Consolidate nested READMEs into docs/; trim drift 2026-05-18 03:16:28 -04:00
Ryan Hughes 2314c821a3 Move Ui kit notes into the gallery, drop Ui/README.md 2026-05-18 03:05:14 -04:00
Ryan Hughes d01d1dcdb3 Add qs.Ui.NumberField; migrate weather + spacer settings 2026-05-18 02:58:56 -04:00
Ryan Hughes 259cda3342 Bar settings: widget settings open as modal overlay inside the panel 2026-05-18 02:53:25 -04:00
Ryan Hughes a1e11f68b8 Add omarchy dev ui-preview to open the qs.Ui dev gallery 2026-05-18 02:49:04 -04:00
Ryan Hughes c17ab99fa4 Stay Awake: filled red coffee cup when active, empty cup at rest 2026-05-18 02:45:19 -04:00
Ryan Hughes 2a6749dc6c Stay Awake: fix state detection, rename, notify on toggle 2026-05-18 02:40:19 -04:00
Ryan Hughes 8272c6d881 Remove legacy bar widget modules 2026-05-18 02:33:43 -04:00
Ryan Hughes 713a32e61d Bar settings + Add widget: include widget description in option rows 2026-05-18 02:20:00 -04:00
Ryan Hughes 135d21cae2 Bar settings + Add widget: button-style trigger, fit inside panel 2026-05-18 02:18:07 -04:00
Ryan Hughes 030963768b Dropdown/SearchableDropdown: arrow keys + row padding 2026-05-18 02:08:03 -04:00
Ryan Hughes 7cdf35e462 Fix gallery navigation: arrow keys, cursor stuck past ChoiceButton, scroll bounce 2026-05-18 01:57:26 -04:00
Ryan Hughes 54da1a90ab Gallery: scroll initial cursor target into view on open 2026-05-18 01:47:29 -04:00