@@ -27,7 +27,7 @@ def __init__(
27
27
show_function : Callable [[], Any ],
28
28
width : int ,
29
29
prefix_character : Union [str , Tuple [Any , str ]]= '\N{BULLET} ' ,
30
- text_color : Optional [str ]= None ,
30
+ text_style : Optional [str ]= None ,
31
31
count : int = 0 ,
32
32
count_style : Optional [str ]= None ,
33
33
) -> None :
@@ -46,15 +46,15 @@ def __init__(
46
46
# Space either side, at least one space between
47
47
self .width_for_text_and_count = width - 3 - prefix_length
48
48
49
- self .original_color = text_color
49
+ self .original_color = text_style
50
50
self .show_function = show_function
51
51
super ().__init__ ("" )
52
- self .update_count (count , text_color )
52
+ self .update_count (count , text_style )
53
53
self .controller = controller
54
54
urwid .connect_signal (self , 'click' , self .activate )
55
55
56
- def update_count (self , count : int , text_color : Optional [str ]= None ) -> None :
57
- new_color = self .original_color if text_color is None else text_color
56
+ def update_count (self , count : int , text_style : Optional [str ]= None ) -> None :
57
+ new_color = self .original_color if text_style is None else text_style
58
58
59
59
self .count = count
60
60
if count == 0 :
@@ -65,7 +65,7 @@ def update_count(self, count: int, text_color: Optional[str]=None) -> None:
65
65
self .update_widget ((self .count_style , count_text ), new_color )
66
66
67
67
def update_widget (self , count_text : Tuple [Optional [str ], str ],
68
- text_color : Optional [str ]) -> Any :
68
+ text_style : Optional [str ]) -> Any :
69
69
# Note that we don't modify self._caption
70
70
max_caption_length = (self .width_for_text_and_count
71
71
- len (count_text [1 ]))
@@ -86,7 +86,7 @@ def update_widget(self, count_text: Tuple[Optional[str], str],
86
86
f"{ self .post_prefix_spacing } { caption } { num_extra_spaces * ' ' } " ,
87
87
count_text ],
88
88
self .width_for_text_and_count + 5 ), # cursor location
89
- text_color ,
89
+ text_style ,
90
90
'selected' )
91
91
92
92
def activate (self , key : Any ) -> None :
@@ -258,7 +258,7 @@ def __init__(self, user: Dict[str, Any], controller: Any,
258
258
show_function = self ._narrow_with_compose ,
259
259
width = width ,
260
260
prefix_character = (color , state_marker ),
261
- text_color = color ,
261
+ text_style = color ,
262
262
count = count ,
263
263
)
264
264
if is_current_user :
0 commit comments