MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / renderHeader

Method renderHeader

ui/fullscreen_backend.go:1521–1531  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1519}
1520
1521func (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
1533func (b *FullscreenRendererBackend) permissionModalState(prompt any, dangerous bool) map[string]any {
1534 name, input := permissionPromptNameAndInput(prompt)

Callers 1

renderScreenMethod · 0.95

Calls 2

panelWidthMethod · 0.95
firstNonEmptyFunction · 0.70

Tested by

no test coverage detected