@@ -99,11 +99,13 @@ class SelectionList(Generic[SelectionType], OptionList):
99
99
100
100
& > .selection-list--button {
101
101
text-style: bold;
102
+ color: $surface;
102
103
background: $foreground 15%;
103
104
}
104
105
105
106
& > .selection-list--button-highlighted {
106
107
text-style: bold;
108
+ color: $highlight-cursor-blurred;
107
109
background: $foreground 15%;
108
110
}
109
111
@@ -142,6 +144,7 @@ class SelectionList(Generic[SelectionType], OptionList):
142
144
143
145
& > .selection-list--button-highlighted {
144
146
text-style: bold;
147
+ color: $highlight-cursor;
145
148
background: $foreground 25%;
146
149
}
147
150
@@ -580,13 +583,6 @@ def render_line(self, y: int) -> Strip:
580
583
# Get the style for the button.
581
584
button_style = self .get_component_rich_style (component_style )
582
585
583
- # If the button is in the unselected state, we're going to do a bit
584
- # of a switcharound to make it look like it's a "cutout".
585
- if selection .value not in self ._selected :
586
- button_style += Style .from_color (
587
- self .background_colors [1 ].rich_color , button_style .bgcolor
588
- )
589
-
590
586
# Build the style for the side characters. Note that this is
591
587
# sensitive to the type of character used, so pay attention to
592
588
# BUTTON_LEFT and BUTTON_RIGHT.
0 commit comments