mirror of
https://github.com/1j01/textual-paint.git
synced 2024-08-17 20:00:41 +03:00
Add to comment
This commit is contained in:
parent
00bd187d5a
commit
cbd85a0102
@ -232,6 +232,10 @@ class Canvas(Widget):
|
||||
# Its actually useful to see the background color of the cell,
|
||||
# as it lets you distinguish between a space " " and a full block "█".
|
||||
# Plus this lets the grid be more subtle, visually taking up less than a cell.
|
||||
# That said, in --ascii-only mode, the background color is visible past the border
|
||||
# of the cell, as the border is centered in a cell, not flush with the left/top edge,
|
||||
# having less characters to work with, so it's a closer call, and might make sense
|
||||
# to use space characters instead, making for a thicker but more coherent grid.
|
||||
fg = "#c0c0c0" if (x + y) % 2 == 0 else "#808080"
|
||||
if x % magnification == 0 and y % magnification == 0:
|
||||
ch = "+" if args.ascii_only else "▛" # "┼" # (🭽 may render as wide)
|
||||
|
Loading…
Reference in New Issue
Block a user