Commit Graph
121 Commits
Author SHA1 Message Date
David Heinemeier Hansson 8ed6e302b0 Small cleanups: reuse Util.clamp in OSD; PanelSlider hover via _hot
OSD reimplemented clamp() inline when Util already has one.

PanelSlider's knob-scale binding read `mouseArea.containsMouse` directly
instead of going through a `_hot` like the other interactive controls
(TextField, NumberField, Dropdown). Mirror them so future style work
has a single property to override.
2026-05-20 20:33:27 +02:00
David Heinemeier Hansson 04e7820ebe Drop Bar.qml's private ModuleButton, reuse WidgetButton
ModuleButton was a near-duplicate of WidgetButton with the same text /
active / keepSpace / tooltip / fontSize / fixedWidth / fixedHeight /
pressed signal surface, only differing in that it closed over the
enclosing root via QML's scoping rules instead of taking `bar` as a
property. Switch CustomCommandModule onto WidgetButton with
`bar: root` so we have one bar button component to maintain.
2026-05-20 20:32:31 +02:00
David Heinemeier Hansson 783cccac3c Consolidate OMARCHY_MENU_FONT lookups onto Style.font.menuFamily
Five plugins (menu, launcher, clipboard, emojis, polkit) each looked up
OMARCHY_MENU_FONT with the same env-or-monospace fallback. Hoist the
resolution into Style so plugins read one source of truth, and so the
fallback follows the real fontconfig family Style already tracks instead
of the literal string "monospace".
2026-05-20 20:31:04 +02:00
David Heinemeier Hansson c1fca7cbe4 Use Color.foreground / Style.font.family for fallbacks
Five sites hardcoded "#cacccc" or "JetBrainsMono Nerd Font" as the
fallback when no bar context was available. Those magic strings are
the *current* palette defaults — they diverge silently when the theme
changes. Bind to the Color / Style singletons so the fallback tracks
whatever the theme says the foreground / monospace family should be.

Color.qml itself keeps the literal "#cacccc" — that's the seed value
the singleton is bootstrapped with before the theme loads.
2026-05-20 20:29:23 +02:00
David Heinemeier Hansson 73e6127d4e Lift setting() onto the Panel base too
Matches the BarWidget extraction in the previous commit. The weather
panel was the only panel reimplementing the helper inline; future
panels with inline settings get it for free.
2026-05-20 20:27:59 +02:00
David Heinemeier Hansson 16604c67b3 Lift setting / vertical / barSize onto BarWidget
Six widgets (clock, daytime, keyboardLayout, lockKeys, activeWindow,
media) shipped identical copies of `function setting(name, fallback)`.
Eight widgets reimplemented `readonly property bool vertical`, and
three reimplemented `readonly property int barSize`. Move all three
onto the BarWidget base so widgets read the same wiring everyone else
gets for free.

While in here, drop the dead `setting()` declaration on media.qml — it
was defined but never called.
2026-05-20 19:50:10 +02:00
David Heinemeier Hansson 4d58dfa27a Honor the user's font on the lock screen
LockView hardcoded font.family to "monospace" in two places, ignoring
the user's OMARCHY_MENU_FONT / fontconfig choice that every other
summoned surface (menu, launcher, polkit, emojis, clipboard) respects.

Bind to Style.font.family so a font change via omarchy-font-set or
fontconfig propagates to the lock screen too.
2026-05-20 19:47:16 +02:00
David Heinemeier Hansson 9baf3f7f79 Fix parseModuleJson undefined call in custom command modules
CustomCommandModule.update() in Bar.qml called root.parseModuleJson(raw)
but the function was removed in 3b970068 (the indicator split). Any
custom command module emitting waybar-style JSON would have crashed on
first poll.

Hoist the helper into Util so both call sites — the bar's custom command
module and BarIndicator.extractData — share one definition.
2026-05-20 19:46:47 +02:00
David Heinemeier Hansson 2a61df0254 Fix vertical bar indicator alignment 2026-05-20 19:11:15 +02:00
David Heinemeier Hansson bdf7bf76cb Extract clock and tray bar widgets 2026-05-20 19:11:00 +02:00
David Heinemeier Hansson d9ec5b82f2 Move weather popup into panel 2026-05-20 18:43:15 +02:00
David Heinemeier Hansson e0b62f7535 Fix indicator hover reveal target 2026-05-20 18:38:21 +02:00
David Heinemeier Hansson cf4729ca2b Extract indicators bar widget 2026-05-20 18:32:00 +02:00
David Heinemeier Hansson 1e63e86133 Extract system update bar widget 2026-05-20 18:28:13 +02:00
David Heinemeier Hansson 4835119e48 Move first-party bar widget catalog out of Bar 2026-05-20 18:27:10 +02:00
David Heinemeier Hansson 647bb88ab2 Extract menu opener widget 2026-05-20 17:53:05 +02:00
David Heinemeier Hansson 1ff343428c Extract workspace switcher widget 2026-05-20 17:53:05 +02:00
Ryan Hughes f0f58fea2f Fix display not showing current scale 2026-05-20 11:49:25 -04:00
David Heinemeier Hansson 4941fe4bf9 Replace calendar widget with daytime label 2026-05-20 16:59:38 +02:00
David Heinemeier Hansson 532db800d7 Remove legacy idle inhibitor widget 2026-05-20 16:33:48 +02:00
David Heinemeier Hansson 234cc5354d Keep active indicator delegates stable 2026-05-20 16:08:56 +02:00
David Heinemeier Hansson dc6468cdfa Stabilize indicator activation rendering 2026-05-20 16:03:51 +02:00
David Heinemeier Hansson fca1393c8c Append newly active bar indicators 2026-05-20 15:58:38 +02:00
David Heinemeier Hansson 5110b0d753 Guard bar tooltips with live hover state 2026-05-20 15:52:43 +02:00
David Heinemeier Hansson 9e77ea3aca Better tooltips 2026-05-20 15:49:24 +02:00
David Heinemeier Hansson b22b0f8640 Prevent stacked bar tooltips 2026-05-20 15:43:21 +02:00
David Heinemeier Hansson 9e48d9658b Add Night Light bar indicator 2026-05-20 15:31:28 +02:00
David Heinemeier Hansson 296ee20e98 Rename notification timer state 2026-05-20 15:23:29 +02:00
David Heinemeier Hansson 32a5938819 Remove notification progress indicator 2026-05-20 15:22:18 +02:00
David Heinemeier Hansson c1b8b18b8f Remove stale bar font config 2026-05-20 15:16:22 +02:00
David Heinemeier Hansson b7cee1a95e Poll power panel details only while open 2026-05-20 15:15:49 +02:00
David Heinemeier Hansson 998e22bb78 Encode background image file URLs 2026-05-20 15:15:38 +02:00
David Heinemeier Hansson ac925e8f3e Show notification countdown progress 2026-05-20 15:15:25 +02:00
David Heinemeier Hansson 8703a46a70 Scope bar interactions to their screen 2026-05-20 15:15:16 +02:00
David Heinemeier Hansson a69b64e1dd Ignore stale image picker scans 2026-05-20 15:14:54 +02:00
David Heinemeier Hansson c12f0b5399 Reset dynamic menu providers on reload 2026-05-20 15:14:39 +02:00
David Heinemeier Hansson 1e9a7a971e Load enabled service plugins 2026-05-20 15:14:04 +02:00
David Heinemeier Hansson 93db08b217 Fix notification focus and image cache races 2026-05-20 15:13:57 +02:00
David Heinemeier Hansson 20ff942481 Fix bar icon positioning in horizontal mode 2026-05-20 14:56:42 +02:00
David Heinemeier Hansson fab0d69e87 Make settings and transparency controllable on vertical bars 2026-05-20 14:51:19 +02:00
David Heinemeier Hansson b337652cd6 Pull closer to use 2026-05-20 14:46:08 +02:00
David Heinemeier Hansson dbdcd862e7 Simplify 2026-05-20 14:35:47 +02:00
David Heinemeier Hansson f6c6a6d323 Simplify 2026-05-20 14:34:15 +02:00
David Heinemeier Hansson ce9afec2a8 Just keep alpha in util 2026-05-20 14:28:50 +02:00
David Heinemeier Hansson ed3320cb8d Just emojis 2026-05-20 14:12:06 +02:00
David Heinemeier Hansson b7c0e10288 Just clipboard 2026-05-20 14:09:09 +02:00
David Heinemeier Hansson 4f1ef8d95f Give services their own place 2026-05-20 14:03:56 +02:00
David Heinemeier Hansson 41425481db app-launcher to just launcher 2026-05-20 13:57:22 +02:00
David Heinemeier Hansson ea1b0e7ced Extract panels out into their own top-level concern 2026-05-20 13:51:39 +02:00
David Heinemeier Hansson 3b9700682c Split out indicators 2026-05-20 13:05:56 +02:00