mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-09-11 15:55:54 +03:00
Merge pull request #394 from jhrcek/jhrcek/haddock-update
This commit is contained in:
commit
a9fd2f15d1
@ -140,11 +140,11 @@ mergeWithDefault a (AttrMap d _) = combineAttrs d a
|
||||
-- For example:
|
||||
--
|
||||
-- @
|
||||
-- attrMapLookup ("foo" <> "bar") (attrMap a []) == a
|
||||
-- attrMapLookup ("foo" <> "bar") (attrMap (bg blue) [("foo" <> "bar", fg red)]) == red \`on\` blue
|
||||
-- attrMapLookup ("foo" <> "bar") (attrMap (bg blue) [("foo" <> "bar", red `on` cyan)]) == red \`on\` cyan
|
||||
-- attrMapLookup ("foo" <> "bar") (attrMap (bg blue) [("foo" <> "bar", fg red), ("foo", bg cyan)]) == red \`on\` cyan
|
||||
-- attrMapLookup ("foo" <> "bar") (attrMap (bg blue) [("foo", fg red)]) == red \`on\` blue
|
||||
-- attrMapLookup (attrName "foo" <> attrName "bar") (attrMap a []) == a
|
||||
-- attrMapLookup (attrName "foo" <> attrName "bar") (attrMap (bg blue) [(attrName "foo" <> attrName "bar", fg red)]) == red \`on\` blue
|
||||
-- attrMapLookup (attrName "foo" <> attrName "bar") (attrMap (bg blue) [(attrName "foo" <> attrName "bar", red `on` cyan)]) == red \`on\` cyan
|
||||
-- attrMapLookup (attrName "foo" <> attrName "bar") (attrMap (bg blue) [(attrName "foo" <> attrName "bar", fg red), ("foo", bg cyan)]) == red \`on\` cyan
|
||||
-- attrMapLookup (attrName "foo" <> attrName "bar") (attrMap (bg blue) [(attrName "foo", fg red)]) == red \`on\` blue
|
||||
-- @
|
||||
attrMapLookup :: AttrName -> AttrMap -> Attr
|
||||
attrMapLookup _ (ForceAttr a) = a
|
||||
|
@ -37,7 +37,7 @@
|
||||
-- the same @fg@, @bg@, and @style@ settings as for the default
|
||||
-- attribute. Furthermore, if an attribute name has multiple components,
|
||||
-- the fields in the INI file should use periods as delimiters. For
|
||||
-- example, if a theme has an attribute name (@"foo" <> "bar"@), then
|
||||
-- example, if a theme has an attribute name (@attrName "foo" <> attrName "bar"@), then
|
||||
-- the file may specify three fields:
|
||||
--
|
||||
-- * @foo.bar.fg@ - a color specification
|
||||
@ -50,7 +50,7 @@
|
||||
--
|
||||
-- Attribute names with multiple components (e.g. @attr1 <> attr2@) can
|
||||
-- be referenced in customization files by separating the names with
|
||||
-- a dot. For example, the attribute name @"list" <> "selected"@ can be
|
||||
-- a dot. For example, the attribute name @attrName "list" <> attrName "selected"@ can be
|
||||
-- referenced by using the string "list.selected".
|
||||
module Brick.Themes
|
||||
( CustomAttr(..)
|
||||
|
Loading…
Reference in New Issue
Block a user