Skip to content

Commit 639adee

Browse files
fix(ui): apply snow tuning at stream startup; reserve snowman for trees
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
1 parent f5360af commit 639adee

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

internal/ui/repo_selector.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,8 @@ func NewRepoSelectorModelStream(
288288
quoteTickActive: showStartupQuote && startupQuoteIntervalSec > 0,
289289
}
290290
rainH := base.clampedRainBackgroundHeight()
291-
rainBg := NewRainBackground(bgW, rainH, animMode)
292-
rainBg.SetGardenTuning(gardenTuningFromConfig(cfg, rainTickMS, bgW))
293-
base.rainBg = rainBg
291+
base.rainBg = NewRainBackground(bgW, rainH, animMode)
292+
base.applyGardenTuning(base.rainBg)
294293
return base
295294
}
296295

internal/ui/snow_scene.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,11 @@ func (rb *RainBackground) snowFootprintFree(x, w int) bool {
299299
if rb.SnowmanPhase >= snowmanPhaseBaseLarge {
300300
sL, sR = rb.SnowmanX-5, rb.SnowmanX+5
301301
}
302-
if rb.SnowmanPhase != snowmanPhaseNone && right > sL && left < sR {
302+
excludeSnowman := rb.SnowmanPhase != snowmanPhaseNone
303+
if rb.SnowmanPhase == snowmanPhaseNone && rb.Width >= 18 {
304+
excludeSnowman = true
305+
}
306+
if excludeSnowman && right > sL && left < sR {
303307
return false
304308
}
305309
return true

0 commit comments

Comments
 (0)