diff --git a/tg/views.py b/tg/views.py index 3facfc2..d19c5ef 100644 --- a/tg/views.py +++ b/tg/views.py @@ -6,7 +6,7 @@ from _curses import window # type: ignore from tg import config -from tg.colors import bold, cyan, get_color, magenta, reverse, white, yellow +from tg.colors import bold, cyan, get_color, magenta, reverse, underline, white, yellow from tg.models import Model, UserModel from tg.msg import MsgProxy from tg.tdlib import ChatType, get_chat_type, is_group @@ -173,13 +173,13 @@ def resize(self, rows: int, cols: int, width: int) -> None: def _msg_color(self, is_selected: bool = False) -> int: color = get_color(white, -1) if is_selected: - return color | reverse + return color | underline | bold return color def _unread_color(self, is_selected: bool = False) -> int: color = get_color(magenta, -1) if is_selected: - return color | reverse + return color | underline | bold return color def _chat_attributes( @@ -192,7 +192,7 @@ def _chat_attributes( self._msg_color(is_selected), ) if is_selected: - return tuple(attr | reverse for attr in attrs) + return tuple(attr | underline | bold for attr in attrs) return attrs def draw( @@ -593,7 +593,7 @@ def _msg_attributes(self, is_selected: bool, user: str) -> Tuple[int, ...]: ) if is_selected: - return tuple(attr | reverse for attr in attrs) + return tuple(attr | underline | bold for attr in attrs) return attrs def _parse_msg(self, msg: MsgProxy) -> str: