Skip to content

Commit

Permalink
Making hover cursor more perceptable
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 8, 2024
1 parent af34013 commit 582a7cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/textual/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def luminosity_range(spread) -> Iterable[tuple[str, float]]:
# Widgets such as OptionList, DataTable, etc. have a "hover cursor"
# which gives a subtle highlight behind the option under the mouse
# cursor is under.
colors["hover"] = boost.hex
colors["hover"] = boost.with_alpha(0.06).hex

return colors

Expand Down
4 changes: 2 additions & 2 deletions src/textual/widgets/_list_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class ListItem(Widget, can_focus=False):
ListItem {
color: $text;
height: auto;
background: $panel-lighten-1;
background: $background;
overflow: hidden hidden;
}
ListItem > :disabled {
background: $panel-darken-1;
background: $background;
}
ListItem > Widget :hover {
background: $hover;
Expand Down

0 comments on commit 582a7cf

Please sign in to comment.