SetSize sets the screen dimensions.
(width, height int)
| 87 | |
| 88 | // SetSize sets the screen dimensions. |
| 89 | func (c *CompletionScreen) SetSize(width, height int) { |
| 90 | c.width = width |
| 91 | c.height = height |
| 92 | if c.confetti != nil { |
| 93 | c.confetti.SetSize(width, height) |
| 94 | } else if c.prdName != "" && width > 0 && height > 0 { |
| 95 | // Initialize confetti now that we have real dimensions |
| 96 | c.confetti = NewConfetti(width, height) |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | // PRDName returns the PRD name shown on the completion screen. |
| 101 | func (c *CompletionScreen) PRDName() string { |