Skip to content

Commit b0c3cf4

Browse files
committed
ui/views: Use bold column title for consistency with LineBox border.
This commit passes a title_attribute to the LineBox widget for column titles which improves consistency with the surrounding LineBox borders and also helps in emphasizing the titles with respect to the text below.
1 parent 6f237d7 commit b0c3cf4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

zulipterminal/ui.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@ def left_column_view(self) -> Any:
4747
def middle_column_view(self) -> Any:
4848
self.middle_column = MiddleColumnView(self, self.model, self.write_box,
4949
self.search_box)
50-
return urwid.LineBox(self.middle_column, title='Messages',
50+
return urwid.LineBox(self.middle_column,
51+
title='Messages', title_attr='column_title',
5152
tline=LIST_TITLE_BAR_LINE,
5253
bline='', trcorner='│', tlcorner='│')
5354

5455
def right_column_view(self) -> Any:
5556
self.users_view = RightColumnView(View.RIGHT_WIDTH, self)
5657
return urwid.LineBox(
57-
self.users_view, title="Users",
58+
self.users_view,
59+
title="Users", title_attr='column_title',
5860
tlcorner=LIST_TITLE_BAR_LINE,
5961
tline=LIST_TITLE_BAR_LINE,
6062
trcorner=LIST_TITLE_BAR_LINE,

zulipterminal/ui_tools/views.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,8 @@ def streams_view(self) -> Any:
805805

806806
self.view.stream_w = StreamsView(streams_btn_list, self.view)
807807
w = urwid.LineBox(
808-
self.view.stream_w, title="Streams",
808+
self.view.stream_w,
809+
title="Streams", title_attr='column_title',
809810
tlcorner=LIST_TITLE_BAR_LINE,
810811
tline=LIST_TITLE_BAR_LINE,
811812
trcorner=LIST_TITLE_BAR_LINE,
@@ -832,7 +833,8 @@ def topics_view(self, stream_button: Any) -> Any:
832833
self.view.topic_w = TopicsView(topics_btn_list, self.view,
833834
stream_button)
834835
w = urwid.LineBox(
835-
self.view.topic_w, title="Topics",
836+
self.view.topic_w,
837+
title="Topics", title_attr='column_title',
836838
tlcorner=LIST_TITLE_BAR_LINE,
837839
tline=LIST_TITLE_BAR_LINE,
838840
trcorner=LIST_TITLE_BAR_LINE,

0 commit comments

Comments
 (0)