Skip to content

Control center: all pages, its bar button; the bar back to upstream's size - #84

Merged
henrikklee merged 33 commits into
mainfrom
control-center-pages
Nov 19, 2026
Merged

henrikklee merged 33 commits into
mainfrom
control-center-pages

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

Stacked on #83 (control center main view), itself on #82 and #81.

The control center's second layer, with Display as the first page.

What you see

  • A long press on the brightness slider opens the Display page; so do Enter on it and omarchy-shell omarchy.controlcenter page omarchy.monitor. The page pushes in from the right while the main view moves left, and the card's height follows the push.
  • The page is the Display panel's own content: the display, brightness, auto-brightness with its hint, text size and scale. Rotation lock and Stay Awake are left out, since the main view has them as toggles.
  • ← in the header or Esc goes back. A second Esc closes, and Home closes from anywhere.

How

  • The control center has its own instance of each panel it hosts, not the bar's. A small host object (pageHost) stands in for the bar the panel reads its colours, font and commands from.
  • Hosted mode in Ui/Panel.qml: opening shows the page instead of the popup, Esc in the content means back, and the command target stays with the bar's panel.
  • The bar's popup shows the same content component, so there's one copy and the desktop bar works unchanged.
  • A panel opts in with two lines: open: root.popupOpen on its popup, and pageContent exposing its content.

Network, Audio, Bluetooth and Battery follow one PR each; until then they open the bar's panel as before.

Tested

In the Orchard simulator on the iPad:

  • the page opens with the panel's content
  • Esc goes back to the main view, and a second Esc closes
  • the shell's log stays free of errors

The push animation itself is still to be judged by eye, and it's not yet tried on the iPhone layout or a real tablet. Tests pass apart from the image-picker tests that need Linux.

@henrikklee
henrikklee force-pushed the control-center-pages branch 11 times, most recently from 4b699db to 7f1625e Compare November 19, 2026 17:49
@henrikklee henrikklee changed the title Control center: pages, starting with Display Control center: pages (Display, Network), its bar button, Omarchy's popups unchanged Nov 19, 2026
@henrikklee
henrikklee force-pushed the control-center-pages branch 2 times, most recently from b1c3951 to 304db6d Compare November 19, 2026 18:20
@henrikklee henrikklee changed the title Control center: pages (Display, Network), its bar button, Omarchy's popups unchanged Control center: all pages, its bar button; the bar back to upstream's size Nov 19, 2026
@henrikklee
henrikklee force-pushed the control-center-pages branch 6 times, most recently from 69926b8 to 2c0bfc1 Compare November 19, 2026 18:44
@henrikklee
henrikklee force-pushed the control-center-pages branch 4 times, most recently from 8c91cf7 to c58196e Compare November 19, 2026 19:32
A module's page is its panel's own content inside the control center,
pushed in from the right while the main view moves left; the card's
height follows the push. ← in the header or Esc goes back, a second Esc
closes, Home closes from anywhere.

The control center has its own instance of each panel it hosts, not the
bar's: pageHost stands in for the bar the panel reads its colours, font
and commands from. Hosted, a panel (Ui/Panel.qml) shows its page where it
would open its popup, takes Esc as "back", and leaves its IPC target to
the bar's panel; the popup itself is the same content component, so the
bar keeps working unchanged.

Display is the first page: brightness, auto-brightness, text size and
scale. Rotation lock and Stay Awake stay off it there, since the main
view has them as toggles. A long press on the brightness slider (or
Enter on it) opens it, as does `omarchy-shell omarchy.controlcenter page
omarchy.monitor`. The other modules still open the bar's panel.

Assisted-by: LLM
One click to where you want, as a desktop menu bar does it: a panel the
control center has a page for opens that page instead of its popup, from
its bar icon, a shortcut, IPC or the menu alike (Ui/Panel.qml routes it).
Opened that way the page stands alone, with no way back to the main view:
Esc or a tap outside closes, and the icon again toggles it. Pushed from
the main view it keeps its back header.

Upstream's module keys join: Super+Ctrl+A, B, D, N and P for Audio,
Bluetooth, Display, Network and Power, with a migration for existing
users. Display opens in the control center now; the others still open
their popups until their pages come.

Assisted-by: LLM
The network panel closes through its own close(), which hid the popup
directly; hosted, it now leaves the page (the prompt cleanup stays).

Assisted-by: LLM
Clicked open from its button, the control center fades in growing from
97 % toward the button and goes in two thirds of the time, upstream's
popup timing and curve, and the screen does not dim; a click outside
closes it. The pull-down and Super+Ctrl+1 keep the slide; a phone keeps
the whole screen.

Assisted-by: LLM
The audio, Bluetooth and power panels' own content as control center
pages, as Display's and Network's are: a long press on volume opens
Audio, on the Bluetooth tile Bluetooth, the battery line Battery. Hosted,
each panel's title icon is the way back. Their bar icons, shortcuts and
IPC keep opening the popups.

Without a battery the power panel refuses to open, as upstream's does; the
control center shows no battery line then.

Assisted-by: LLM
The tablet port held the bar at 38 points with 40-point icon slots so a
finger could hit its icons. A finger now has the control center (pulled
down, or its button) and the launcher, so the bar is upstream's again:
26 points, upstream's icon slots and glyph sizes; Style.qml is upstream's
unchanged.

Assisted-by: LLM
The launcher does not dim the bar, so its strip is no longer part of the
launcher's input: a click there reaches the bar's own item instead of only
closing the launcher, and a bar popup opening (or the control center)
puts the launcher away. The control center's card also counts a popup's
fade as moving, drawn from a texture then.

Assisted-by: LLM
Opened from its button, the control center registers with the bar as its
open popup: the bar draws its mark under the button, and another item's
popup (or the bar's switching) closes it through the button's close().
Its window leaves the bar strip out of its input then, so a click on
another item reaches it. Pulled down or opened from the keyboard it still
takes the whole screen.

Assisted-by: LLM
- On Qt's software renderer the pull only moves the card (its bottom
  still under the finger): no scaling, fading or layer for the CPU to
  redraw every frame, the screen dims in one step, and the popup opens
  and closes at once, as the launcher does there.
- Open as a popup it notes its card with the bar, as KeyboardPanel does,
  so a popup taking over in the same section morphs from it rather than
  from an older card.

Assisted-by: LLM
The shell spec's iPhone bar: the logo and the time together on the left,
no date, the status icons on the right (Stay Awake while on, network,
battery), and no overflow pages behind a "…" button. A new narrow value,
"hidden", leaves Audio, Bluetooth, Display and the control center button
off a narrow bar altogether; a phone reaches them through the control
center. `narrow: false` and its overflow pages still work for a layout
that asks for them.

A migration moves existing users' layouts the same way where an entry
still has the setting the package gave it.

Assisted-by: LLM
Audio, Bluetooth, Display and the control center button stay on a phone's
bar, beside the status, with the logo and time on the left. The "hidden"
narrow value stays for a layout that wants a slimmer phone bar.

Assisted-by: LLM
On a phone the status bar shows above the control center, so the bar
strip is left out of its input there too (as for the popup): a tap on a
bar item reaches it. A bar item's popup opening closes the control center,
as it does the launcher.

Assisted-by: LLM
The launcher is never shown over a bar popup or the control center: it
closes the bar's open popup and the control center first.

Assisted-by: LLM
The note telling omarchy-home-button that the control center is open was
written by two detached commands (touch, rm) that could finish out of
order, and a shell restarted while it was open left it too. With the note
stale, every Home press only "closed" the control center and opened
nothing. One writer now runs again until the note matches, and a note
from an earlier shell goes at start.

Assisted-by: LLM
On a phone the card is the whole screen, so the finger held the bottom
of an empty sheet and the tiles came in far above it. The finger now
holds the bottom of the content (or of the open page), and the empty
sheet below comes in under the thumb.

Assisted-by: LLM
On a phone the sheet faded in with the pull's whole way, so the control
center looked almost invisible while dragged. It now comes and goes with
its content: opaque within the first quarter of a pull, gone as the
content's bottom reaches the bar on the way out.

Assisted-by: LLM
A quarter was too quick; it now eases out to opaque at 60 %.

Assisted-by: LLM
It still comes in quickly at first, easing out over the whole pull.

Assisted-by: LLM
The field animated every change of its width, and the launcher's width
is set as its window maps on open, so opening showed the field
stretching to the right as if Cancel had been pressed. Only Cancel coming
and going animates it now.

Assisted-by: LLM
It scales from 103 % down to its size on open (and back on close),
rather than growing from 98 %.

Assisted-by: LLM
Trigger > Toggle > Opaque Launcher shows the launcher on the theme's
plain menu background instead of the frosted wallpaper (Frosted Launcher
turns it back). The launcher-opaque flag is read each time it opens, and
no blurred copy is made while it is on.

Assisted-by: LLM
The Settings button beside the tabs was in the full text colour, more
prominent than the tabs themselves; it takes the inactive tabs' colour
now, brighter only while focused, as a tab is.

Assisted-by: LLM
0.2 s armed a slider that was about to be dragged; 0.4 s for sliders and
tiles alike, opening by itself 0.6 s after arming as before.

Assisted-by: LLM
@henrikklee
henrikklee changed the base branch from control-center to main November 19, 2026 21:14
@henrikklee
henrikklee merged commit 95ccba9 into main Nov 19, 2026
9 checks passed
@henrikklee
henrikklee deleted the control-center-pages branch November 19, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant