Skip to content

Commit bd6e4e7

Browse files
committed
Rename withBorderIf -> withVisibleBorderIf
1 parent 92e028f commit bd6e4e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ff-brick/Main.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ appAttrMap =
156156
, (highlightAttr, black `on` white)
157157
]
158158

159-
withBorderIf :: Bool -> Widget -> Widget
160-
withBorderIf cond =
159+
withVisibleBorderIf :: Bool -> Widget -> Widget
160+
withVisibleBorderIf cond =
161161
withBorderStyle if cond then unicode else borderStyleFromChar ' '
162162

163163
appDraw :: Model -> [Widget]
@@ -170,7 +170,7 @@ appDraw Model{visibleNotes, isNoteOpen} = [mainWidget <=> keysHelpLine]
170170
( renderList renderListItem True visibleNotes
171171
& withVScrollBars OnRight
172172
)
173-
& withBorderIf (not isNoteOpen)
173+
& withVisibleBorderIf (not isNoteOpen)
174174

175175
openNoteWidget =
176176
border
@@ -181,7 +181,7 @@ appDraw Model{visibleNotes, isNoteOpen} = [mainWidget <=> keysHelpLine]
181181
& withHScrollBars OnBottom
182182
& withVScrollBars OnRight
183183
)
184-
& withBorderIf isNoteOpen
184+
& withVisibleBorderIf isNoteOpen
185185
where
186186
content =
187187
case listSelectedElement visibleNotes of

0 commit comments

Comments
 (0)