Some progress to handle notches / cutouts of phones better in : I have a small lib that gets panel cutout / notch information as paths and can calculate a bounding box . can use it to render cutouts for debugging and can use it for layout (so far only to shift the panel down). (see follow up posts for more pictures).
1️⃣ /4️⃣

Follow

phoc rendering cutouts in nexted mode to simulate cutouts and rounded edges:

2️⃣ /4️⃣

phosh using that information to push the top panel down because there's a (simulated) notch:
3️⃣ /4️⃣

Show thread

MRs are linked here: gitlab.gnome.org/guidog/gmobil

Next steps (after cleaning up a bit and getting it merged) is allowing phosh to make better use of that information (e.g. to shift ui elements to the side instead of down) and providing the information to wayland clients so e.g. video players can make use of it in fullscreen mode.

4️⃣ /4️⃣

Show thread

@agx awesome! will use my dumb patch until this happens, thanks!

@agx awesome! will use my dumb patch until this happens, thanks!

@agx awesome! will use my dumb patch until this happens, thanks!

@agx awesome! will use my dumb patch until this happens, thanks!

@gnumdk I certainly appreciate any help to get the top panel flow around notches nicely once the groundwork landed (my doesn't even need notches /cutout support). I hope we get some design input from @snwh how things could look like.

@agx this is an awesome step for linux phones to handle notches! Can't wait for this to move elements around when a notch is present!

@agx instead of pushing down, shouldn't it efficiently utilise the space, like not display any indicators in the notch area, but still effectively use the panel

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml