Repository navigation
feat(workspaceui): add the Frostyard themes, Inter and the appearance choice - #72
Merged
Merged
Conversation
… choice The NSGo kit set no theme: an app drew NSGo's gray and blue. Theme returns the Frostyard look as one NSGo theme, Frostyard for the dark appearance and Frostyard light for the light one, with the colors of the themes' spec under NSGo's roles and under roles of the kit's own (ColorsOf: the chrome, the panel, a chosen row's fill, the label, each tone's fill and line). Apply sets it and registers the bundled Inter; Frame is the window's root view, which paints the ground and sets the font family; AppearanceChoice is the System, Light or Dark setting. Shell leaves the app's name to the system's title bar where there is one (Linux), and its compact layout paints its ground: in a dark narrow window it drew its light text on the window's white. Tests hold the palettes to the spec, fail on a role NSGo names that has no Frostyard color, and hold 69 pairs in each theme to 4.5:1. The look was checked in a GTK window on Xvfb's X11 through FrostMail's picture tours.
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The kit's part of Phase 1 of the plan: the NSGo kit gets the Frostyard look. Until now it set no theme, and an app drew NSGo's gray and blue.
Theme()is one NSGo theme with two palettes, Frostyard for the dark appearance and Frostyard light for the light one. Every color is a value of the themes' spec, under NSGo's own roles, so NSGo's controls draw them with no change in an app. It keeps NSGo's corners (ADR-0014).ColorsOf(cx)reads the Frostyard colors NSGo has no role for: the chrome, the panel, a chosen row's fill, the label, and each tone's fill and line.Apply(cx)sets the theme and registers the bundled Inter.Frame(...)is the window's root view: it paints the ground and sets the text's color and font family.AppearanceChoiceis the System, Light or Dark setting, as NSGo's segmented tabs.Shellleaves the app's name to the system's title bar where there is one (Linux).An app takes all of it with
workspaceui.Apply(cx)at its root andworkspaceui.Frame(...)around its views.Risk tier
Risk tier: 2 — new code in the kit, and 2 changes of what
Shelldraws (the brand on Linux, the compact ground). No path of.github/risk-paths.jsonis matched:workspaceui/go.modandgo.sumare unchanged.workspaceui/fonts/InterVariable.ttfis a copy offonts/InterVariable.ttf(Inter 4.001, OFL-1.1), with itsOFL.txt: a module embeds only files under its own directory.NOTICEandAGENTS.mdsay so. It adds about 0.9 MB to an app's binary.Docs housekeeping
The spec gains "The themes" (each NSGo role and each kit role beside the themes' spec's name for it) and the rules the tests hold.
Verification
make verifygreen, as part ofmake ci BASE=origin/main(host, exit 0,==> ci passed): both modules' tests, the js/wasm tests, the race detector and the 7 cross-builds.TestCompactShellPaintsItsGroundfails with the compact ground removed (the compact shell's ground is 0x00000000, want 0x06111dff); command:go test -run TestCompactShellPaintsItsGround .inworkspaceui/.surface, 4.53:1; the test was seen to fail at a threshold of 7, with ratios that match the themes' spec's table);ColorsOfand the appearance choice in both appearances.Applydraw Xvfb's own sans-serif face. The first trial named the family "Inter" and drew that fallback: the variable file names "Inter Variable", whichFontFamilynow names first. The pictures are not kept in this repository.After the merge the maintainer tags the module (
make bump-workspaceui; svu givesworkspaceui/v0.2.0), and the three apps callApplyand take their pictures again.