MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / ApplyToTview

Function ApplyToTview

internal/ui/theme/theme.go:228–242  ·  view source on GitHub ↗

ApplyToTview sets the global tview.Styles to match the semantic theme colors.

()

Source from the content-addressed store, hash-verified

226
227// ApplyToTview sets the global tview.Styles to match the semantic theme colors.
228func ApplyToTview() {
229 tview.Styles = tview.Theme{
230 PrimitiveBackgroundColor: Colors.Background,
231 ContrastBackgroundColor: Colors.Contrast,
232 MoreContrastBackgroundColor: Colors.Selection,
233 BorderColor: Colors.Border,
234 TitleColor: Colors.Title,
235 GraphicsColor: Colors.Info,
236 PrimaryTextColor: Colors.Primary,
237 SecondaryTextColor: Colors.Secondary,
238 TertiaryTextColor: Colors.Tertiary,
239 InverseTextColor: Colors.Inverse,
240 ContrastSecondaryTextColor: Colors.Selection,
241 }
242}
243
244// BuiltInThemes defines the available built-in themes.
245var BuiltInThemes = map[string]map[string]string{

Callers 2

LaunchConfigWizardFunction · 0.92
StartApplicationFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected