@@ -144,41 +144,36 @@ class OptionList(ScrollView, can_focus=True):
144
144
border: tall transparent;
145
145
padding: 0 1;
146
146
background: $surface;
147
- }
148
-
149
- OptionList:focus {
150
- border: tall $border;
151
- }
152
-
153
- OptionList > .option-list--separator {
154
- color: $foreground 15%;
155
- }
156
-
157
- OptionList > .option-list--option-highlighted {
158
- color: $text;
159
- background: $highlight-cursor-blurred;
160
- }
161
-
162
- OptionList:focus > .option-list--option-highlighted {
163
- background: $highlight-cursor;
164
- }
165
-
166
- OptionList > .option-list--option-disabled {
167
- color: $text-disabled;
168
- }
169
-
170
- OptionList > .option-list--option-hover {
171
- background: $highlight-hover;
172
- }
173
-
174
- OptionList > .option-list--option-hover-highlighted {
175
- background: $accent 60%;
176
- color: $text;
177
- }
147
+
148
+ &:focus {
149
+ border: tall $border;
150
+ background-tint: $foreground 5%;
151
+ & > .option-list--option-highlighted {
152
+ background: $highlight-cursor;
153
+ }
154
+ }
178
155
179
- OptionList:focus > .option-list--option-hover-highlighted {
180
- background: $accent;
181
- color: $text;
156
+ & > .option-list--option-hover-highlighted {
157
+ background: $accent;
158
+ color: $text;
159
+ }
160
+ & > .option-list--separator {
161
+ color: $foreground 15%;
162
+ }
163
+ & > .option-list--option-highlighted {
164
+ color: $text;
165
+ background: $highlight-cursor-blurred;
166
+ }
167
+ & > .option-list--option-disabled {
168
+ color: $text-disabled;
169
+ }
170
+ & > .option-list--option-hover {
171
+ background: $highlight-hover;
172
+ }
173
+ & > .option-list--option-hover-highlighted {
174
+ background: $accent 60%;
175
+ color: $text;
176
+ }
182
177
}
183
178
"""
184
179
0 commit comments