feat(coding): export T3 Code theme and tint status surfaces #53

Merged
marti merged 1 commit from t3/t3code-theme-file-export into main 2026-10-22 10:08:44 +02:00
Owner

Summary

  • Export the m4rti theme file to ~/Documents/themes/m4rti-t3code.json so it can be imported by hand in T3 Code Settings, alongside the copy the server publishes from ~/.t3/userdata/themes.
  • Add an explicit id field to the theme JSON, matching name.
  • Tint the error, warning, and update surfaces with 15% of their palette color over base00 instead of the flat base01 background, so each status reads as its own color.
  • Tint the search match background with 35% of base0A instead of base03, so matches stand out from the surrounding text.
  • Add a mix helper in t3code.nix that blends two palette colors by percentage, used for the tinted surfaces above.

Testing

  • Not run: nix build or home-manager switch on this branch.
  • To check after switching: confirm ~/Documents/themes/m4rti-t3code.json exists and matches the published theme in ~/.t3/userdata/themes.
  • To check in the app: import the file from Settings, then confirm the error, warning, and update banners and search highlights render with the tinted backgrounds.
## Summary - Export the m4rti theme file to `~/Documents/themes/m4rti-t3code.json` so it can be imported by hand in T3 Code Settings, alongside the copy the server publishes from `~/.t3/userdata/themes`. - Add an explicit `id` field to the theme JSON, matching `name`. - Tint the error, warning, and update surfaces with 15% of their palette color over `base00` instead of the flat `base01` background, so each status reads as its own color. - Tint the search match background with 35% of `base0A` instead of `base03`, so matches stand out from the surrounding text. - Add a `mix` helper in `t3code.nix` that blends two palette colors by percentage, used for the tinted surfaces above. ## Testing - Not run: `nix build` or `home-manager switch` on this branch. - To check after switching: confirm `~/Documents/themes/m4rti-t3code.json` exists and matches the published theme in `~/.t3/userdata/themes`. - To check in the app: import the file from Settings, then confirm the error, warning, and update banners and search highlights render with the tinted backgrounds.
- Also write the theme JSON to ~/Documents/themes/m4rti-t3code.json for manual import in T3 Code Settings
- Add an explicit id field to the theme file
- Tint error, warning, update and search-match surfaces by mixing the palette color 15-35% over base00 via a new mix helper, instead of reusing base01/base03
marti merged commit 937da8de83 into main 2026-10-22 10:08:44 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
marti/nix!53
No description provided.