Skip to content

omamobile-shell 0.2.142: the bar's unread count sits beside the clock, clear of the camera cutout - #994

Merged
derekross merged 2 commits into
derekross:mainfrom
W4HO-ham:shell-bar-unread-left
Nov 24, 2026
Merged

derekross merged 2 commits into
derekross:mainfrom
W4HO-ham:shell-bar-unread-left

Conversation

@W4HO-ham

Copy link
Copy Markdown
Contributor

On my Pixel 9a the bar's unread count sat under the camera, where it can't be read.

The count was the first item of the right-hand row, and that row is anchored to the right edge and grows leftwards with every glyph. With Bluetooth on, a modem (signal bars and "LTE"), Wi-Fi and the battery's percentage, the row is wide enough that its first item lands in the middle of the 9a's bar, which is where the camera is. The bar's own description says the centre stays empty for the cutout; nothing kept the row out of it.

The count now follows the clock on the left (after the call chip when a call is up). The right-hand row keeps do-not-disturb, Bluetooth, signal, Wi-Fi and the battery. The strip is still one touch target: a tap or a pull opens quick settings and the shade, as before.

On my palmtop

The same edit applied to the installed Bar.qml (the shell there is a local build of main plus my open pull requests, so I patched the file, not the package), shell restarted: with 5 unread, Bluetooth, LTE, Wi-Fi and 82 % the bar reads 15:17 (5) on the left, nothing in the middle, and the four glyphs on the right. Before, the (5) was the item under the camera.

Not tried: the count together with the call chip (no call was up), and a 7 Pro, whose cutout is in the same place.

Tests

test/all checks that the count is no longer inside the right-hand row and that it is anchored to the clock or the call chip; both fail on the old layout (I put main's Bar.qml back and broke the anchor to see them fail). tests/all and tools/pr-check origin/main pass.

Only omamobile-shell changes; 0.2.142.

…, clear of the camera cutout

The count was the first item of the right-hand row, and that row grows leftwards with every glyph. On a Pixel 9a with Bluetooth on, a modem, Wi-Fi and the battery's percentage its first item reached the middle of the bar, under the camera: the count could not be read. It now follows the clock (after the call chip when there is one), and the right-hand row keeps the glyphs. The strip's tap and pull are unchanged.

@derekross derekross left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, that is a clear diagnosis: a row anchored to the right grows into the cutout from its first item, and the count was its first item.

I checked it on today's main: the checks pass and it merges cleanly. Two things before it merges, neither of which you could see from your branch:

  • #1014 (screen recording) adds a recording chip beside the clock with exactly the anchor you give the count (callChipPill.visible ? callChipPill.right : clockText.right), so with both in, one is drawn over the other. Whichever lands second will chain onto the first, for example the count after the recording chip when it shows. I'll say which order when the first of the two is ready, on both threads.
  • #1010 (battery styles) changes the count's visible: line in its old place; that resolution is your block with its line.

The bar is the same on every phone and the 7 Pro's camera sits in the same place, so I'll look at it on my 7 Pro first, including the count next to a call chip, which you couldn't try. The version: #977 and #1010 also say 0.2.142, so I'll set the number when it merges. Nothing more is needed from you.

@derekross

Copy link
Copy Markdown
Owner

Decision on order: this one goes first, and #1014's recording chip chains after the unread count. I'll run it on my 7 Pro first.

@derekross derekross left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran this on my Pixel 7 Pro today, built from your head merged with today's main, together with #985, #986 and #994 in one shell build (they touch different files).

With unread notifications the clock comes first, then the count pill, both on the left and clear of the camera cutout; the right row is as before; turned on its side the bar lays out correctly. I didn't run the call-chip step (that needs a call), so the chip-and-count case from your description is only checked by reading. It passes on the 7 Pro. Order as decided: this before #1014, whose chip chains after the count. It needs the next free shell number at merge; I'll push that with main merged in and squash it once CI is green.

# Conflicts:
#	packages/omamobile-shell/plugins/omamobile.bar/Bar.qml
#	packages/omamobile-shell/version
@derekross
derekross merged commit 8b12a6f into derekross:main Nov 24, 2026
2 checks passed
Somnius added a commit to Somnius/omarchy-mobile that referenced this pull request Nov 24, 2026
After derekross#994 both the unread count and the recording chip anchored on
callChipPill.visible ? callChipPill.right : clockText.right, so with
an unread notification during a recording they drew on top of each
other. The chip now follows the unread count when it shows, else the
call chip or the clock as before. test/all checks the anchor.

Signed-off-by: Lef <me@lefteros.com>
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.

2 participants