Caching color blending in Opacity, ignoring ANSI colors

This commit is contained in:
Darren Burns
2022-02-09 10:14:41 +00:00
parent 2648cc0305
commit 3b0cab6f79
2 changed files with 22 additions and 10 deletions

View File

@@ -1,9 +1,14 @@
import pytest
from rich.text import Text
from tests.utilities.render import render
from textual.renderables.opacity import Opacity
@pytest.mark.skip
def test_simple_opacity():
pass
text = Text("Hello, world!", style="#ff0000 on #00ff00")
assert render(Opacity(text, value=.5)) == ""
@pytest.mark.skip