Skip to content

Commit 582a7cf

Browse files
committed
Making hover cursor more perceptable
1 parent af34013 commit 582a7cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/textual/design.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def luminosity_range(spread) -> Iterable[tuple[str, float]]:
203203
# Widgets such as OptionList, DataTable, etc. have a "hover cursor"
204204
# which gives a subtle highlight behind the option under the mouse
205205
# cursor is under.
206-
colors["hover"] = boost.hex
206+
colors["hover"] = boost.with_alpha(0.06).hex
207207

208208
return colors
209209

src/textual/widgets/_list_item.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class ListItem(Widget, can_focus=False):
2222
ListItem {
2323
color: $text;
2424
height: auto;
25-
background: $panel-lighten-1;
25+
background: $background;
2626
overflow: hidden hidden;
2727
}
2828
ListItem > :disabled {
29-
background: $panel-darken-1;
29+
background: $background;
3030
}
3131
ListItem > Widget :hover {
3232
background: $hover;

0 commit comments

Comments
 (0)