Skip to content

Commit

Permalink
BorderDemo: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
jtdaugherty committed Aug 15, 2023
1 parent 417571b commit f1e57e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions programs/BorderDemo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ mkBorderDemo (styleName, sty) =
titleAttr :: A.AttrName
titleAttr = A.attrName "title"

borderMappings :: [(A.AttrName, V.Attr)]
borderMappings =
attrs :: [(A.AttrName, V.Attr)]
attrs =
[ (B.borderAttr, V.yellow `on` V.black)
, (B.vBorderAttr, fg V.cyan)
, (B.hBorderAttr, fg V.magenta)
Expand All @@ -82,7 +82,7 @@ borderMappings =

colorDemo :: Widget ()
colorDemo =
updateAttrMap (A.applyAttrMappings borderMappings) $
updateAttrMap (A.applyAttrMappings attrs) $
B.borderWithLabel (withAttr titleAttr $ str "title") $
hLimit 20 $
vLimit 5 $
Expand Down

0 comments on commit f1e57e6

Please sign in to comment.