Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Colors and friends.
Synopsis
- 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
- withItlc :: Bool -> Style
- withUnderline :: Bool -> Style
- withReverse :: Bool -> Style
- defaultStyle :: StyleName
- data Color
- colorToText :: Color -> String
- black :: Color
- grey :: Color
- lightGrey :: Color
- darkred :: Color
- red :: Color
- darkgreen :: Color
- green :: Color
- brown :: Color
- yellow :: Color
- darkblue :: Color
- blue :: Color
- purple :: Color
- magenta :: Color
- darkcyan :: Color
- cyan :: Color
- white :: Color
- brightwhite :: Color
Documentation
data Attributes Source #
Visual text attributes to be applied during layout.
Attributes | |
|
Instances
Show Attributes Source # | |
Defined in Yi.Style showsPrec :: Int -> Attributes -> ShowS # show :: Attributes -> String # showList :: [Attributes] -> ShowS # | |
Eq Attributes Source # | |
Defined in Yi.Style (==) :: Attributes -> Attributes -> Bool # (/=) :: Attributes -> Attributes -> Bool # | |
Ord Attributes Source # | |
Defined in Yi.Style compare :: Attributes -> Attributes -> Ordering # (<) :: Attributes -> Attributes -> Bool # (<=) :: Attributes -> Attributes -> Bool # (>) :: Attributes -> Attributes -> Bool # (>=) :: Attributes -> Attributes -> Bool # max :: Attributes -> Attributes -> Attributes # min :: Attributes -> Attributes -> 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 | |
|
withUnderline :: Bool -> Style Source #
A style that sets the style to underlined
withReverse :: Bool -> Style Source #
A style that sets the style to underlined
defaultStyle :: StyleName Source #
The identity transform.
RGB !Word8 !Word8 !Word8 | |
Default | The system-default color of the engine used. e.g. in Gtk this should pick whatever the user has chosen as default color (background or foreground depending on usage) for the text. |
colorToText :: Color -> String Source #
Convert a color to its text specification, as to be accepted by XParseColor
brightwhite :: Color Source #