@@ -99,11 +99,13 @@ class SelectionList(Generic[SelectionType], OptionList):
9999
100100 & > .selection-list--button {
101101 text-style: bold;
102+ color: $surface;
102103 background: $foreground 15%;
103104 }
104105
105106 & > .selection-list--button-highlighted {
106107 text-style: bold;
108+ color: $highlight-cursor-blurred;
107109 background: $foreground 15%;
108110 }
109111
@@ -142,6 +144,7 @@ class SelectionList(Generic[SelectionType], OptionList):
142144
143145 & > .selection-list--button-highlighted {
144146 text-style: bold;
147+ color: $highlight-cursor;
145148 background: $foreground 25%;
146149 }
147150
@@ -580,13 +583,6 @@ def render_line(self, y: int) -> Strip:
580583 # Get the style for the button.
581584 button_style = self .get_component_rich_style (component_style )
582585
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-
590586 # Build the style for the side characters. Note that this is
591587 # sensitive to the type of character used, so pay attention to
592588 # BUTTON_LEFT and BUTTON_RIGHT.
0 commit comments