diff --git a/src/textual/design.py b/src/textual/design.py index 63e1bcabc2..c72f721287 100644 --- a/src/textual/design.py +++ b/src/textual/design.py @@ -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 diff --git a/src/textual/theme.py b/src/textual/theme.py index ea4d4884ac..05820f5944 100644 --- a/src/textual/theme.py +++ b/src/textual/theme.py @@ -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", }, ),