ApplyToTview sets the global tview.Styles to match the semantic theme colors.
()
| 226 | |
| 227 | // ApplyToTview sets the global tview.Styles to match the semantic theme colors. |
| 228 | func 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. |
| 245 | var BuiltInThemes = map[string]map[string]string{ |
no outgoing calls
no test coverage detected