Skip to content

Commit

Permalink
updated digits
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Oct 20, 2024
1 parent d046758 commit 4f9ad30
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/textual/demo2/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
16 changes: 11 additions & 5 deletions src/textual/renderables/digits.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """\
Expand Down Expand Up @@ -77,8 +77,11 @@
╰╫╮
╶╫╯
╭─╮
┼─
╰─╴
╪═
└─╴
╭─╮
╪═
╰─╯
""".splitlines()


Expand Down Expand Up @@ -153,8 +156,11 @@
╰╫╮
╶╫╯
╭─╮
┼─
╰─╴
╪═
└─╴
╭─╮
╪═
╰─╯
""".splitlines()


Expand Down

0 comments on commit 4f9ad30

Please sign in to comment.