diff options
| author | user <user@clank> | 2026-08-14 20:28:30 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-14 20:28:30 +0200 |
| commit | 5cdbca2c8a896fd0e25cfc03aa44ba0143d2d31b (patch) | |
| tree | 1f5bb282eb798164816383eabb8ca39d399ec29c /tests | |
| parent | sl0ppty: halve the padding between the frame's buttons (diff) | |
| download | slosh-5cdbca2c8a896fd0e25cfc03aa44ba0143d2d31b.tar.gz slosh-5cdbca2c8a896fd0e25cfc03aa44ba0143d2d31b.tar.xz slosh-5cdbca2c8a896fd0e25cfc03aa44ba0143d2d31b.zip | |
sl0ppty: plain ASCII for the frame's buttons
_ for minimise, # for zoom, * for the way back, x for close.
Box-drawing and block characters were each tried and each looked unevenly
spaced, which is the answer: the cells are even every time, and what differs is
how much of its own cell a glyph fills. That is a property of the font, not
something to be fixed from here, and single-width ASCII of a similar weight is
the way to stop asking the question.
The measurement stays, so a mark is still yours to change and may be more than
one character. The config note now says what the three attempts established
rather than what I expected each time.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_zoom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_zoom.py b/tests/test_zoom.py index a5c9fba..285269d 100644 --- a/tests/test_zoom.py +++ b/tests/test_zoom.py @@ -76,7 +76,7 @@ def test_the_button_toggles_and_says_which_way(): s.click(b["x"] + 1, b["y"]) s.settle(20) check("clicking it zooms", len(visible(s)) == 1, str(s.panes())) - check("and the mark says so", "\u25a3" in s.snapshot().line(2), + check("and the mark says so", "*" in s.snapshot().line(2), repr(s.snapshot().line(2)[-14:])) # The button moved: the pane it belongs to just became the whole tab. @@ -85,7 +85,7 @@ def test_the_button_toggles_and_says_which_way(): s.settle(20) check("clicking it again puts it back", len(visible(s)) == 2, str(s.panes())) - check("and the mark goes back too", "\u25a1" in s.snapshot().line(2), + check("and the mark goes back too", "#" in s.snapshot().line(2), repr(s.snapshot().line(2)[-14:])) |
