Skip to content

Commit c211a02

Browse files
committed
More tweaks
1 parent b08a6aa commit c211a02

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/textual/design.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Where no content exists
1616
DEFAULT_DARK_BACKGROUND = "#1e1e1e"
1717
# What text usually goes on top off
18-
DEFAULT_DARK_SURFACE = "#232323"
18+
DEFAULT_DARK_SURFACE = "#272727"
1919
# TODO - update this
2020
# # Where no content exists
2121
# DEFAULT_DARK_BACKGROUND = "#121212"
@@ -203,12 +203,14 @@ def luminosity_range(spread) -> Iterable[tuple[str, float]]:
203203
# The border color for focused widgets which have a border.
204204
colors["border"] = accent.hex
205205
# The blurred equivalent of the above.
206-
colors["border-blurred"] = background.hex
206+
# By default when the widget is blurred, the border matches the surface
207+
# of the widget (and so isn't visible until the widget is focused)
208+
colors["border-blurred"] = surface.hex
207209

208210
# Widgets such as OptionList, DataTable, etc. have a "hover cursor"
209211
# which gives a subtle highlight behind the option under the mouse
210212
# cursor is under.
211-
colors["highlight-hover"] = boost.with_alpha(0.06).hex
213+
colors["highlight-hover"] = boost.with_alpha(0.05).hex
212214

213215
return colors
214216

src/textual/widgets/_text_area.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class TextArea(ScrollView):
9191
TextArea {
9292
width: 1fr;
9393
height: 1fr;
94-
border: tall $background;
94+
border: tall $border-blurred;
9595
padding: 0 1;
9696
background: $surface;
9797
& .text-area--gutter {

0 commit comments

Comments
 (0)