Safe Haskell | Safe-Infered |
---|
Colors and friends.
- data Attributes = Attributes {
- foreground :: !Color
- background :: !Color
- reverseAttr :: !Bool
- bold :: !Bool
- italic :: !Bool
- underline :: !Bool
- emptyAttributes :: Attributes
- type Style = Endo Attributes
- data UIStyle = UIStyle {
- modelineAttributes :: Attributes
- modelineFocusStyle :: Style
- tabBarAttributes :: Attributes
- tabInFocusStyle :: Style
- tabNotFocusedStyle :: Style
- baseAttributes :: Attributes
- selectedStyle :: Style
- eofStyle :: Style
- errorStyle :: Style
- hintStyle :: Style
- strongHintStyle :: Style
- commentStyle :: Style
- blockCommentStyle :: Style
- keywordStyle :: Style
- numberStyle :: Style
- preprocessorStyle :: Style
- stringStyle :: Style
- longStringStyle :: Style
- typeStyle :: Style
- dataConstructorStyle :: Style
- importStyle :: Style
- builtinStyle :: Style
- regexStyle :: Style
- variableStyle :: Style
- operatorStyle :: Style
- quoteStyle :: Style
- makeFileAction :: Style
- makeFileRuleHead :: Style
- type StyleName = UIStyle -> Style
- withFg, withBg :: Color -> Style
- withBd, withReverse, withUnderline, withItlc :: Bool -> Style
- defaultStyle :: StyleName
- data Color
- colorToText :: Color -> String
- black, yellow, brown, green, darkgreen, red, darkred, lightGrey, grey :: Color
- darkblue, brightwhite, white, cyan, darkcyan, magenta, purple, blue :: Color
Documentation
data Attributes Source
Visual text attributes to be applied during layout.
Attributes | |
|
type Style = Endo AttributesSource
The style is used to transform attributes by modifying one or more of the visual text attributes.
The UI type
UIStyle | |
|
withBd, withReverse, withUnderline, withItlc :: Bool -> StyleSource
A style that sets the font to bold
defaultStyle :: StyleNameSource
The identity transform.
colorToText :: Color -> StringSource
Convert a color to its text specification, as to be accepted by XParseColor