What is a ColorScheme and how to create one
mainA ColorScheme defines the visual appearance of a view across different states. You create a custom scheme by instantiating ColorScheme() and assigning Attribute objects to its state properties.
Key properties of ColorScheme:
normal: Default appearance.focus: When the view has focus.hotNormal: Appearance of hotkey characters when the view is not focused.hotFocus: Appearance of hotkey characters when the view is focused.disabled: When the view is disabled.
let scheme = ColorScheme()
scheme.normal = Application.makeAttribute(fore: .white, back: .blue)
scheme.focus = Application.makeAttribute(fore: .black, back: .cyan)
scheme.hotNormal = Application.makeAttribute(fore: .yellow, back: .blue)
scheme.hotFocus = Application.makeAttribute(fore: .yellow, back: .cyan)
scheme.disabled = Application.makeAttribute(fore: .brightBlack, back: .blue)