Documentation
¶
Overview ¶
Package chrome demonstrates theme-owned border shape: the two slots a Theme carries for chrome, and the fact that changing one re-skins every component drawn from that theme without touching any component.
The left column picks Theme.BorderShapeActive/Inactive (ordinary components) and Theme.BorderShapeOverlay (things that float above content). Everything on screen — the pickers included — is rebuilt from the modified theme, so what you are looking at is the same code path any app gets.
The two slots are deliberately separate: an overlay reads as raised because its border differs from the pane it covers. Set both pickers to the same shape and the modal flattens into the content behind it, which is the thing the split exists to prevent.
Index ¶
- func New(t theme.Theme) screen.Screen
- type Screen
- func (s *Screen) Help() []key.Binding
- func (s *Screen) Init() tea.Cmd
- func (s *Screen) IsCapturingKeys() bool
- func (s *Screen) Layout() layout.Node
- func (s *Screen) OnEnter(any) tea.Cmd
- func (s *Screen) SetTheme(t theme.Theme)
- func (s *Screen) Title() string
- func (s *Screen) Update(msg tea.Msg) (screen.Screen, tea.Cmd)
Constants ¶
This section is empty.
Variables ¶
This section is empty.