diff --git a/src/textual/_styles_cache.py b/src/textual/_styles_cache.py index 8f3680c314..7f95bdd51b 100644 --- a/src/textual/_styles_cache.py +++ b/src/textual/_styles_cache.py @@ -152,6 +152,7 @@ def render_widget(self, widget: Widget, crop: Region) -> list[Strip]: and hover_style._meta and "@click" in hover_style.meta ): + 1 / 0 link_style_hover = widget.link_style_hover if link_style_hover: strips = [ diff --git a/src/textual/color.py b/src/textual/color.py index 3a19ad776b..dc44a967f5 100644 --- a/src/textual/color.py +++ b/src/textual/color.py @@ -403,7 +403,7 @@ def blend( """ if destination.auto: destination = self.get_contrast_text(destination.a) - if destination.ansi is not None or self.ansi: + if destination.ansi is not None: return destination if factor <= 0: return self diff --git a/src/textual/visual.py b/src/textual/visual.py index 096a34cf4b..a3d4d520cf 100644 --- a/src/textual/visual.py +++ b/src/textual/visual.py @@ -131,6 +131,7 @@ def __rich_repr__(self) -> rich.repr.Result: yield "underline", self.underline, None yield "reverse", self.reverse, None yield "strike", self.strike, None + yield "link", self.link, None if self._meta is not None: yield "meta", self.meta @@ -175,6 +176,7 @@ def from_rich_style( underline=rich_style.underline, reverse=rich_style.reverse, strike=rich_style.strike, + link=rich_style.link, _meta=rich_style._meta, )