Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/chat_model_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func restoreThemeGlobals(t *testing.T) {
savedCost, savedBranch, savedToken, savedCwd := costViolet, branchYellow, tokenSage, cwdBlue
savedPrimary, savedMuted, savedPlaceholder, savedDisabled := textPrimary, textMuted, textPlaceholder, textDisabled
savedBorderDim, savedBgCode := borderDim, bgCode
savedInputBorder := inputBorderStyle
savedMinimalChrome := minimalChrome
hasDark := lipgloss.HasDarkBackground(os.Stdin, os.Stdout)
t.Cleanup(func() {
rhoColor, successTeal, warnAmber, errorCoral, infoSky = savedRho, savedSuccess, savedWarn, savedErr, savedInfo
Expand All @@ -93,6 +95,10 @@ func restoreThemeGlobals(t *testing.T) {
costViolet, branchYellow, tokenSage, cwdBlue = savedCost, savedBranch, savedToken, savedCwd
textPrimary, textMuted, textPlaceholder, textDisabled = savedPrimary, savedMuted, savedPlaceholder, savedDisabled
borderDim, bgCode = savedBorderDim, savedBgCode
// ApplyTheme also rewrites the input border and chrome mode; restore
// them so a palette swap cannot leak into layout tests.
inputBorderStyle = savedInputBorder
minimalChrome = savedMinimalChrome
// HasDarkBackground is now a function (no args), SetHasDarkBackground removed in v2
_ = hasDark
})
Expand Down
Loading
Loading