Repository navigation
A new install opens on a theme choice before the board: Dark, Light or Classic, each previewed, applied as you pick and saved on Continue - #469
Merged
Conversation
…r Classic, each previewed, applied as you pick and saved on Continue Shown only to a new install: no theme saved yet, no project, and no box ever connected. Someone updating from an older version has projects, so they go straight to the board in Dark. Picking repaints the window but saves nothing, so quitting before Continue brings the screen back. Each preview is a miniature board drawn in its own theme's tokens: any element with data-theme now takes that theme's block. The choice is three native radios, so the arrow keys move it.
Merged
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.
A new install now opens on a theme choice before the board: Dark, Light or Classic, each shown as a small preview of the board in that theme. Picking one repaints the window straight away. Continue saves it and opens the board. Settings → General → Theme still changes it later.
Who sees it
Only a new install: no theme saved in
~/.ateam/settings.json, no project, and no box ever connected. Someone updating from an older version has projects, so they go straight to the board in Dark, as before this PR. A detached project window never shows it.How it works
ateamTheme.firstRun()asks main, which checks the settings file for a savedclient.themeand asks the host for projects and known boxes.index.cssnow also apply to any element carryingdata-theme.Checked
bun run typecheck, andbun test(1310 pass, 0 fail) on the tree merged with main.lightand opens an empty board in Light. A reload goes straight to the board.