Skip to content

Commit

Permalink
More tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 10, 2024
1 parent b08a6aa commit c211a02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/textual/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Where no content exists
DEFAULT_DARK_BACKGROUND = "#1e1e1e"
# What text usually goes on top off
DEFAULT_DARK_SURFACE = "#232323"
DEFAULT_DARK_SURFACE = "#272727"
# TODO - update this
# # Where no content exists
# DEFAULT_DARK_BACKGROUND = "#121212"
Expand Down Expand Up @@ -203,12 +203,14 @@ def luminosity_range(spread) -> Iterable[tuple[str, float]]:
# The border color for focused widgets which have a border.
colors["border"] = accent.hex
# The blurred equivalent of the above.
colors["border-blurred"] = background.hex
# By default when the widget is blurred, the border matches the surface
# of the widget (and so isn't visible until the widget is focused)
colors["border-blurred"] = surface.hex

# 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["highlight-hover"] = boost.with_alpha(0.06).hex
colors["highlight-hover"] = boost.with_alpha(0.05).hex

return colors

Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_text_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class TextArea(ScrollView):
TextArea {
width: 1fr;
height: 1fr;
border: tall $background;
border: tall $border-blurred;
padding: 0 1;
background: $surface;
& .text-area--gutter {
Expand Down

0 comments on commit c211a02

Please sign in to comment.