()
| 1519 | } |
| 1520 | |
| 1521 | func (b *FullscreenRendererBackend) renderHeader() string { |
| 1522 | width := b.panelWidth() |
| 1523 | title := fullscreenBold + fullscreenCyan + "LuminaCode" + fullscreenReset |
| 1524 | metaPlain := firstNonEmpty(b.InputMetaText, "输入就绪") |
| 1525 | meta := fullscreenDim + metaPlain + fullscreenReset |
| 1526 | contentWidth := width - runewidth.StringWidth("LuminaCode") - runewidth.StringWidth(metaPlain) - 1 |
| 1527 | if contentWidth < 1 { |
| 1528 | contentWidth = 1 |
| 1529 | } |
| 1530 | return title + strings.Repeat(" ", contentWidth) + meta |
| 1531 | } |
| 1532 | |
| 1533 | func (b *FullscreenRendererBackend) permissionModalState(prompt any, dangerous bool) map[string]any { |
| 1534 | name, input := permissionPromptNameAndInput(prompt) |
no test coverage detected