mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-04 13:06:30 +03:00
Extend meta-character handling to shaded block characters
This commit is contained in:
parent
24331bd5e2
commit
d54a4e690f
@ -1421,11 +1421,9 @@ class Canvas(Widget):
|
||||
|
||||
def big_ch(self, ch: str, x: int, y: int) -> str:
|
||||
"""Return a character part of a meta-glyph."""
|
||||
if ch in " ░▒▓█":
|
||||
return ch
|
||||
match ch:
|
||||
case " ":
|
||||
return " "
|
||||
case "█":
|
||||
return "█"
|
||||
case "▄":
|
||||
return "█" if y >= self.magnification // 2 else " "
|
||||
case "▀":
|
||||
|
Loading…
Reference in New Issue
Block a user