Skip to content

Show this machine under the welcome tagline, with an OS symbol - #100

Merged
AdamXweb merged 1 commit into
mainfrom
ui/os-flare
Nov 10, 2026
Merged

AdamXweb merged 1 commit into
mainfrom
ui/os-flare

Conversation

@adamXbot

Copy link
Copy Markdown
Collaborator

What it does

Bare fxcss now says where you stand, on one line under the tagline:

  fxcss  live-reload, inspect and screenshot-test Firefox userChrome.css themes
         ⌘ macOS · Firefox 155.0.1 · default-release · WhiteSurFirefoxThemeMacOS installed

The end of the line depends on the machine:

Situation End of the line
Theme installed by fxcss default-release · <theme> installed
Theme installed by hand default-release · has its own chrome/
Nothing installed default-release · no theme yet
No single default profile, or no profiles stops after the Firefox version
A fork such as LibreWolf uses the fork's own name and version
Firefox missing Firefox not found · set FIREFOX_BIN to its path
  • Files only. The line reads application.ini, profiles.ini and the install manifest, so bare fxcss never starts Firefox.
  • Never in the way. If anything can't be read, the line is left out and the welcome screen prints as usual.
  • Narrow terminals. The line breaks between items, not inside one, and long profile or theme names are cut.

The OS symbol

Each OS name gets the symbol for its special key, in the brand colour: ⌘ macOS (Command), ⊞ Windows (the Windows key) and ◆ Linux (Meta). doctor's firefox row uses the same label. A console that isn't UTF-8 gets the name alone.

Changes

  • core.application_ini() and core.build_identity(): a build's name and version, read without running it. support.build_version() now reads through them; the only difference is that a % in application.ini no longer makes the file unreadable.
  • style.OS_MARKS and style.platform_label(): the symbol and name. style.platform_name() also accepts sys.platform values.
  • style.dotted(): styled items joined by a dot, breaking between items at the terminal edge.
  • cli._machine_context() and cli._installed_theme_name(): what the line says.

Test plan

  • python3 -m unittest discover -s tests: 765 tests, 1 skipped (Python 3.14), also inside a pseudo-terminal. The new tests also pass on 3.9.
  • New tests/test_welcome_context.py covers:
    • the symbol for each OS name, the colour on the symbol only, and the fallback to the name alone;
    • every row of the table above, plus a Firefox path that doesn't exist and a build with no readable version;
    • Firefox never being started;
    • an unreadable profile list dropping only the line;
    • breaking between items at the terminal edge;
    • doctor's firefox row;
    • build_version() still asking the build when there's no usable application.ini.
  • Not tried on real Windows or Linux terminals. Cascadia Mono has no ⊞, so Windows has to borrow it from another font, and an older console may show a box.
  • Run fxcss and fxcss doctor in your own terminal.

🤖 Generated with Claude Code

Bare fxcss now prints one line under the tagline: the OS, the Firefox
build, the default profile and what is themed in it. The line is read
from files only, so Firefox is never started, and anything unreadable
drops the line rather than the welcome screen.

Each OS name gets the symbol for its special key in the brand colour:
Command on macOS, the Windows key on Windows and Meta on Linux. doctor's
firefox row uses the same label. A terminal that cannot show the
symbols gets the name alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AdamXweb
AdamXweb merged commit 10098b7 into main Nov 10, 2026
38 of 39 checks passed
@AdamXweb
AdamXweb deleted the ui/os-flare branch November 10, 2026 06:02
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