Skip to content

Commit

Permalink
Input variables
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 21, 2024
1 parent 628fd80 commit 3164127
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/textual/design.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,20 @@ def luminosity_range(spread: float) -> Iterable[tuple[str, float]]:

colors["footer-item-background"] = get("footer-item-background", "transparent")

colors["input-cursor-background"] = get(
"input-cursor-background", foreground.hex
)
colors["input-cursor-foreground"] = get(
"input-cursor-foreground", background.hex
)
colors["input-cursor-text-style"] = get("input-cursor-text-style", "none")
colors["input-selection-background"] = get(
"input-selection-background", secondary.hex
)
colors["input-selection-foreground"] = get(
"input-selection-foreground", background.hex
)

return colors


Expand Down
1 change: 0 additions & 1 deletion src/textual/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def to_color_system(self) -> ColorSystem:
variables={
"footer-foreground": "#93a1a1",
"footer-background": "#002b36",
# "footer-key-background": "transparent",
"footer-key-foreground": "#2aa198",
},
),
Expand Down

0 comments on commit 3164127

Please sign in to comment.