Skip to content

Prefer Nerd Font Propo variants in the bar - #12743

Open
OldJobobo wants to merge 3 commits into
omacom:quattrofrom
OldJobobo:bar-prefer-propo
Open

OldJobobo wants to merge 3 commits into
omacom:quattrofrom
OldJobobo:bar-prefer-propo

Conversation

@OldJobobo

@OldJobobo OldJobobo commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Prefer the installed Propo variant of the selected Nerd Font in the bar. Keep the current font when no matching variant is installed. Terminal fonts and the rest of the shell are unchanged.

Nerd Font Mono fits icons into a single character cell, which can make wide symbols look small. Propo lets them use their natural width—a better fit for a graphical bar than a terminal grid.

Comparison

CaskaydiaMono Mono above, Propo below, both at 18px. The speaker, Wi-Fi, and battery icons are fuller with Propo. Text stays monospaced, but the row takes more space.

image

This is an offscreen Qt sample, not the full bar. The difference from regular Nerd Font variants may be smaller.

Implementation

Uses the existing Style.font.resolvedFamily and checks Qt's installed families. No new settings, processes, or watchers. Widgets using bar.fontFamily inherit the change; dedicated icon fonts are untouched.

Testing

Compared before and after in the Quattro VM: top bar at 1280×800 and 800×600, plus left, right, and bottom bars at 800×600. Audio, network, and calendar popouts showed no new clipping or overlap.

All five bar test suites passed, including icon geometry and widget contracts on the compositor. Propo rendered correctly, fonts without a Propo variant fell back correctly, and terminal fonts were unchanged. No new shell warnings or Hyprland config errors.

VM comparison: before on the left, Propo on the right.

image

Use omarchy font set when switching fonts. Editing fontconfig directly can leave Qt using a cached font until restart.

Not tested: multiple monitors, fractional scaling, or other Propo families.

Rebase verification

Rebased onto current quattro after #14553, preserving import qs.Commons as Commons and the Commons.Color palette references. The font-selection test passed all 17 assertions; the bar and bar-text-color suites also passed. This rerun was headless, so the compositor-dependent icon-geometry and widget-contract suites were skipped; the VM checks above were performed before the rebase.

Refs #12661. This targets the same Mono icon-sizing behavior, but Iosevka Propo at the reporter's 1.6 scaling has not been verified.

--[ Pi :: gpt-6.1-sol ]--
--- on behalf of: @OldJobobo

@OldJobobo OldJobobo changed the title Prefer installed Nerd Font Propo siblings in the bar Prefer Nerd Font Propo variants in the bar Sep 21, 2026
@OldJobobo
OldJobobo marked this pull request as ready for review September 21, 2026 18:33
@llstrk

llstrk commented Sep 23, 2026

Copy link
Copy Markdown

Verified: No actionable defect was found in the font-selection logic at df8f1d63. The bar selects an installed Propo sibling without changing the shared shell or terminal font configuration.

Selected family Matching Propo installed Bar selection
Nerd Font / Nerd Font Mono, or NF / NFM Yes Installed Propo / NFP sibling
No matching sibling or unrelated family No Original shared family, preserving the monospace alias

The added test passed all 17 assertions. It evaluates the actual Bar.qml binding with synthetic font-family data; separate diagnostic changes removing alias fallback or resolved-family selection both caused the expected assertion failure.


Review information

Test scope: Source inspection and the Node test with two diagnostic controls. Actual Qt font enumeration, live font switching, rendered glyph widths, clipping and fractional scaling were not independently tested.

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Automated AI review: Astra Medium initial inspection, independent Opus 5.5 High and GPT 6 Sol Xhigh technical assessments, then Astra Medium synthesis against source and targeted test evidence. A fresh Astra Medium check assessed presentation and disclosures only.

@jandrusk

jandrusk commented Oct 8, 2026

Copy link
Copy Markdown

Small heads-up: this no longer applies after #14553 (Qt 6.12 palette fix, merged today), which changed the import block at the top of shell/plugins/bar/Bar.qml (import qs.Commons as Commons) and qualifies palette references as Commons.Color. A rebase should be trivial. Just keep Commons.Color in any context lines you touch.

This also looks like it addresses #12661 (tiny bar icons with Iosevka Nerd Font Mono). It may be worth adding Refs #12661.

@greptile-apps

greptile-apps Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Changes the bar's font selection logic.

This PR appears safe to merge; no actionable issues were found.

What we checked:

  • Missing Propo fonts keep working: preferPropo only returns an exact installed-family match. Otherwise, Bar.qml keeps Style.font.family.
  • Font changes refresh the bar: omarchy-font-set restarts the shell. On startup, Style.qml resolves the selected font again.

Summary

The bar now prefers an installed Propo variant of the selected Nerd Font. Other shell fonts remain unchanged.

  • FontFamily.js matches full and short family names without choosing another typeface.
  • Bar.qml keeps the existing font when no matching variant is installed.
  • The new tests cover matching, fallback, and changes to the selected family.
  • Tests were inspected, not run. The image fixtures could not be visually inspected because image input is unavailable.

Reviews (1) · Last reviewed commit: "Add Quattro VM bar font comparison" · Reviewed by Greptile

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants