Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 :: Color -> Style
- withBg :: Color -> Style
- withBd :: Bool -> Style
- withReverse :: Bool -> Style
- withUnderline :: Bool -> Style
- withItlc :: Bool -> Style
- defaultStyle :: StyleName
- data Color
- colorToText :: Color -> String
- black :: Color
- yellow :: Color
- brown :: Color
- green :: Color
- darkgreen :: Color
- red :: Color
- darkred :: Color
- lightGrey :: Color
- grey :: Color
- darkblue :: Color
- brightwhite :: Color
- white :: Color
- cyan :: Color
- darkcyan :: Color
- magenta :: Color
- purple :: Color
- blue :: Color
Documentation
data Attributes Source
Visual text attributes to be applied during layout.
Attributes | |
|
type Style = Endo Attributes Source
The style is used to transform attributes by modifying one or more of the visual text attributes.
The UI type
UIStyle | |
|
withReverse :: Bool -> Style Source
A style that sets the style to underlined
withUnderline :: Bool -> Style Source
A style that sets the style to underlined
defaultStyle :: StyleName Source
The identity transform.
colorToText :: Color -> String Source
Convert a color to its text specification, as to be accepted by XParseColor