MCPcopy Index your code
hub / github.com/cli/cli / activeStyles

Method activeStyles

internal/prompter/multi_select_with_search.go:370–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368}
369
370func (m *multiSelectSearchField) activeStyles() *huh.FieldStyles {
371 theme := m.theme
372 if theme == nil {
373 theme = huh.ThemeFunc(huh.ThemeCharm)
374 }
375 if m.focused {
376 return &theme.Theme(m.hasDarkBg).Focused
377 }
378 return &theme.Theme(m.hasDarkBg).Blurred
379}
380
381func (m *multiSelectSearchField) Focus() tea.Cmd {
382 m.focused = true

Callers 2

ViewMethod · 0.95
renderOptionMethod · 0.95

Calls 1

ThemeMethod · 0.65

Tested by

no test coverage detected