File tree 5 files changed +177
-3
lines changed
__snapshots__/test_snapshots
5 files changed +177
-3
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
- ## Unreleased
8
+
9
+ ## [ 3.1.1] - 2024-04-22
9
10
10
11
### Fixed
11
12
13
+ - Fixed issue with tint filter https://github.com/Textualize/textual/pull/5757
12
14
- Fixed a crash when setting keymap before app mount https://github.com/Textualize/textual/issues/5742
13
15
14
16
## [ 3.1.0] - 2025-04-12
@@ -2852,6 +2854,7 @@ https://textual.textualize.io/blog/2022/11/08/version-040/#version-040
2852
2854
- New handler system for messages that doesn't require inheritance
2853
2855
- Improved traceback handling
2854
2856
2857
+ [ 3.1.1 ] : https://github.com/Textualize/textual/compare/v3.1.0...v3.1.1
2855
2858
[ 3.1.0 ] : https://github.com/Textualize/textual/compare/v3.0.1...v3.1.0
2856
2859
[ 3.0.1 ] : https://github.com/Textualize/textual/compare/v3.0.0...v3.0.1
2857
2860
[ 3.0.0 ] : https://github.com/Textualize/textual/compare/v2.1.2...v3.0.0
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " textual"
3
- version = " 3.1.0 "
3
+ version = " 3.1.1 "
4
4
homepage = " https://github.com/Textualize/textual"
5
5
repository = " https://github.com/Textualize/textual"
6
6
documentation = " https://textual.textualize.io/"
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def process_segments(
52
52
_Segment = Segment
53
53
54
54
truecolor_style = ANSIToTruecolor (ansi_theme ).truecolor_style
55
+ background_rich_color = background .rich_color
55
56
56
57
NULL_STYLE = Style ()
57
58
for segment in segments :
@@ -60,7 +61,7 @@ def process_segments(
60
61
yield segment
61
62
else :
62
63
style = (
63
- truecolor_style (style , background )
64
+ truecolor_style (style , background_rich_color )
64
65
if style is not None
65
66
else NULL_STYLE
66
67
)
Original file line number Diff line number Diff line change @@ -4002,3 +4002,22 @@ def compose(self) -> ComposeResult:
4002
4002
yield NonFocusable ("NON FOCUSABLE" )
4003
4003
4004
4004
assert snap_compare (FocusApp ())
4005
+
4006
+
4007
+ def test_tint (snap_compare ):
4008
+ """Test that tint applied to dim text doesn't break.
4009
+
4010
+ You should see the text Hello, World with a 50% green tint."""
4011
+
4012
+ class TintApp (App ):
4013
+ CSS = """
4014
+ Label {
4015
+ tint: green 50%;
4016
+ text-style: dim;
4017
+ }
4018
+ """
4019
+
4020
+ def compose (self ) -> ComposeResult :
4021
+ yield Label ("Hello, World" )
4022
+
4023
+ assert snap_compare (TintApp ())
You can’t perform that action at this time.
0 commit comments