Skip to content

fix(brand): keep the logo aspect ratio - #3

Closed
perlowja wants to merge 1 commit into
singularityos-lab:mainfrom
ncz-os:pr/brand-logo-aspect-20261014
Closed

perlowja wants to merge 1 commit into
singularityos-lab:mainfrom
ncz-os:pr/brand-logo-aspect-20261014

Conversation

@perlowja

Copy link
Copy Markdown

loginui_render_brand() forced every logo into a 256x256 square with separate
x/y scales, squeezing wide wordmarks. Fit the logo in a box with one scale and
place the bar under it. Verified: builds, tests pass; shipped in our images.
AI assistance: disclosed

@perlowja

Copy link
Copy Markdown
Author

@mirkobrombin for review when you have a moment.

The brand frame scaled the logo into the square logo box with separate
x and y factors, so a non-square logo was stretched. labwc's splash
fits the same logo inside the same box with one factor, so the logo
also changed shape at the handoff. Fit it with one factor and center
it in the box, as labwc does. The bar and the layout are unchanged.

Assisted-by: Claude Code:claude-opus-5-5
AI-Scope: added an aspect-preserving logo paint helper in brand.c used by both brand renderers.
@perlowja
perlowja force-pushed the pr/brand-logo-aspect-20261014 branch from 5d0196c to 64cc93d Compare October 25, 2026 22:22
@perlowja perlowja changed the title fix(splash): keep the brand logo aspect ratio fix(brand): keep the logo aspect ratio Oct 25, 2026
@perlowja

Copy link
Copy Markdown
Author

Reworked on top of 9cca2b9: the logo is fitted into your layout's logo box
with one factor and centered, as labwc's splash does, and the bar and layout
are unchanged.

@perlowja

Copy link
Copy Markdown
Author

Closing: loginui_render_brand() has no callers anymore. The same aspect-ratio fix belongs in loginui_render_brand_progress(); I will send that separately if it is still wanted.

@perlowja perlowja closed this Nov 18, 2026
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