Skip to content

Fit the About window to a logo drawn in colour - #21282

Open
VulpesZerda27 wants to merge 1 commit into
omacom:quattrofrom
VulpesZerda27:about-fit-colour-logo
Open

VulpesZerda27 wants to merge 1 commit into
omacom:quattrofrom
VulpesZerda27:about-fit-colour-logo

Conversation

@VulpesZerda27

Copy link
Copy Markdown

What changes

About's logo can be any text in ~/.config/omarchy/branding/about.txt, and fastfetch draws colour escape codes in it as colour. The launcher measures that file with wc -L, which counts the codes as columns, and looks for the logo's longest line, codes included, in a render it has stripped them from. So a logo drawn in colour is never found: measure_layout fails, the window is not fitted and stays at the float rule's 920x480, where the top of the layout scrolls off.

This strips the codes before measuring and before searching, the same way the render is stripped. A plain logo measures and is found exactly as before. The sheen still leaves a colour logo alone, as sheen_build already decides.

Verification

  • Ran omarchy-launch-about --render from quattro and from this branch in a foot window with About's class, with a 40-column, 17-row logo in 24-bit colour as branding/about.txt. On quattro the window opens at 920x480 and stays there, and no fit is remembered. With the change it settles at 986x789 and about.fit holds 40 17 986 789.
  • logo_dimensions for that logo: 1168 17 before, 40 17 after. For the default logo: 54 26 before and after.
  • ./test/cli passes (143 ok). There is no test file for the About launcher since Speed up test suite and run compositor tests headlessly #19904, so this adds none.
  • Not checked: terminals other than foot, and a second launch presized from the remembered fit (it reads the same logo_dimensions).

Screenshots

The window was on a hidden workspace and captured alone; the system details are blurred.

Before, on quattro:

Before: the window stays at 920x480 and the top of the layout scrolls off

After:

After: the window fits the logo and the modules

🤖 Generated with Claude Code

The launcher measured the logo with its colour escape codes counted as columns and looked for it,
codes included, in a render that has them stripped, so a colour logo was never found and the window
stayed at the float rule's size. Strip the codes before measuring and searching.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] The PR appears safe to merge.

Summary

The About launcher now removes colour escape codes before measuring a logo and choosing the line used to find it on screen.

  • The About window now fits logos drawn in colour.

Reviews (2) · Last reviewed commit: "Fit the About window to a logo drawn in ..." · Reviewed by Greptile

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Dec 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Codex High reproduced this in Foot on an Omarchy worker. With a 38×19 true-colour logo, About stayed at 920×480 on quattro and with the fix reverted, without writing about.fit. This head fitted to 798×536 and reused that size on relaunch. The default logo fitted to 906×573 in both versions, and all 143 ./test/cli checks passed.

Opus 5.5 High and muse-wonder via pi, thinking high reviewed the patch and found no defects. The reviewers agreed and may have shared context. GitHub’s Tests and Check translation structure workflows are awaiting approval.

Before, About stays at its default 920×480 size

After, About fits to the same logo at 798×536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants