diff --git a/CHANGELOG.md b/CHANGELOG.md index fbb23a29eb..818a205e82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added `background-tint` CSS rule https://github.com/Textualize/textual/pull/5117 - Added `App.DEFAULT_MODE` - Added `Containers.HorizontalGroup` and `Containers.VerticalGroup` -- Added `$` and `£` symbols to Digits +- Added `$`, `£`, `€` symbols to Digits ### Fixed diff --git a/src/textual/demo2/widgets.py b/src/textual/demo2/widgets.py index 94ff42031f..2d6e29b05e 100644 --- a/src/textual/demo2/widgets.py +++ b/src/textual/demo2/widgets.py @@ -238,8 +238,8 @@ def compose(self) -> ComposeResult: with containers.HorizontalGroup(): yield ListView( ListItem(Digits("$50.00")), - ListItem(Digits("$100.00")), - ListItem(Digits("$500.00")), + ListItem(Digits("£100.00")), + ListItem(Digits("€500.00")), ) yield OptionList(*COUNTRIES) diff --git a/src/textual/renderables/digits.py b/src/textual/renderables/digits.py index 8d7fb6fefb..dcd18ff959 100644 --- a/src/textual/renderables/digits.py +++ b/src/textual/renderables/digits.py @@ -5,7 +5,7 @@ from rich.segment import Segment from rich.style import Style, StyleType -DIGITS = " 0123456789+-^x:ABCDEF$£" +DIGITS = " 0123456789+-^x:ABCDEF$£€" DIGITS3X3_BOLD = """\ @@ -77,8 +77,11 @@ ╰╫╮ ╶╫╯ ╭─╮ -┼─ -╰─╴ +╪═ +└─╴ +╭─╮ +╪═ +╰─╯ """.splitlines() @@ -153,8 +156,11 @@ ╰╫╮ ╶╫╯ ╭─╮ -┼─ -╰─╴ +╪═ +└─╴ +╭─╮ +╪═ +╰─╯ """.splitlines()