mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
version bump
This commit is contained in:
@@ -2852,6 +2852,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
|
||||
- New handler system for messages that doesn't require inheritance
|
||||
- Improved traceback handling
|
||||
|
||||
[3.1.1]: https://github.com/Textualize/textual/compare/v3.1.0...v3.1.1
|
||||
[3.1.0]: https://github.com/Textualize/textual/compare/v3.0.1...v3.1.0
|
||||
[3.0.1]: https://github.com/Textualize/textual/compare/v3.0.0...v3.0.1
|
||||
[3.0.0]: https://github.com/Textualize/textual/compare/v2.1.2...v3.0.0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "textual"
|
||||
version = "3.1.0"
|
||||
version = "3.1.1"
|
||||
homepage = "https://github.com/Textualize/textual"
|
||||
repository = "https://github.com/Textualize/textual"
|
||||
documentation = "https://textual.textualize.io/"
|
||||
|
||||
@@ -4002,3 +4002,22 @@ def test_allow_focus(snap_compare):
|
||||
yield NonFocusable("NON FOCUSABLE")
|
||||
|
||||
assert snap_compare(FocusApp())
|
||||
|
||||
|
||||
def test_tint(snap_compare):
|
||||
"""Test that tint applied to dim text doesn't break.
|
||||
|
||||
You should see the text Hello, World with a 50% green tint."""
|
||||
|
||||
class TintApp(App):
|
||||
CSS = """
|
||||
Label {
|
||||
tint: green 50%;
|
||||
text-style: dim;
|
||||
}
|
||||
"""
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Label("Hello, World")
|
||||
|
||||
assert snap_compare(TintApp())
|
||||
|
||||
Reference in New Issue
Block a user