Skip to content

Commit 2302516

Browse files
committed
Fix truecolor dim style
1 parent 3f121fc commit 2302516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textual/filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ def truecolor_style(self, style: Style, background: RichColor) -> Style:
241241
"""
242242
terminal_theme = self._terminal_theme
243243
color = style.color
244-
if color is not None and color.is_system_defined:
244+
if color is not None and color.triplet is None:
245245
color = RichColor.from_rgb(
246246
*color.get_truecolor(terminal_theme, foreground=True)
247247
)
248248
bgcolor = style.bgcolor
249-
if bgcolor is not None and bgcolor.is_system_defined:
249+
if bgcolor is not None and bgcolor.triplet is None:
250250
bgcolor = RichColor.from_rgb(
251251
*bgcolor.get_truecolor(terminal_theme, foreground=False)
252252
)

0 commit comments

Comments
 (0)