diff options
| author | user <user@clank> | 2026-08-21 00:42:01 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-21 00:42:01 +0200 |
| commit | 54dc47f801a444fe0d710f393b04c684df8fa31d (patch) | |
| tree | 834c94d6be439cb0e2efa271979156974332e5aa /tests | |
| parent | slosh: minimized panes wear buttons in the strip (diff) | |
| download | slosh-54dc47f801a444fe0d710f393b04c684df8fa31d.tar.gz slosh-54dc47f801a444fe0d710f393b04c684df8fa31d.tar.xz slosh-54dc47f801a444fe0d710f393b04c684df8fa31d.zip | |
slosh: put-away panes are miniature pane frames
Brackets were tried and still read as text. Each min-bar entry is now a
three-row chip wearing a real pane frame -- the same corners, because a
frame is what a pane *looks like* in this program, so a shrunken one reads
as exactly what it is: a pane, clickable. The put-away mark rides inside
each chip and the lone legend is gone; a rung pane's bell mark keeps its
own colour inside the frame; hover lights the whole chip and the whole
chip is the hit. The bar costs three rows instead of one while anything
is minimised (and nothing when nothing is), which is what an affordance
that works is worth.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_bell.py | 8 | ||||
| -rw-r--r-- | tests/test_hints.py | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_bell.py b/tests/test_bell.py index db82903..8278bec 100644 --- a/tests/test_bell.py +++ b/tests/test_bell.py @@ -340,8 +340,10 @@ RINGER = [ def bar_row(s): + """The bar's middle row — each entry is a three-row pane-frame chip now, + and the label (mark included) lives between the borders.""" open_panes = [p for p in s.panes() if p["w"] > 1] - return max(p["y"] + p["h"] for p in open_panes) + return max(p["y"] + p["h"] for p in open_panes) + 1 def test_a_minimised_pane_rings_on_the_bar(): @@ -382,9 +384,9 @@ def test_a_minimised_pane_rings_on_the_bar(): entry = [ h for h in s.snapshot().hits - if h["action"] == f"focus:{gone}" and h["h"] == 1 + if h["action"] == f"focus:{gone}" and h["h"] == 3 ] - check("the entry is still one target", len(entry) == 1, str(entry)) + check("the whole chip is one target", len(entry) == 1, str(entry)) if not entry: return s.click(entry[0]["x"] + 1, entry[0]["y"]) diff --git a/tests/test_hints.py b/tests/test_hints.py index 792c3a0..cf15517 100644 --- a/tests/test_hints.py +++ b/tests/test_hints.py @@ -131,7 +131,7 @@ def test_the_gap_and_the_strip_and_the_bar(): e = [ h for h in s.snapshot().hits - if h["action"] == f"focus:{gone}" and h["h"] == 1 + if h["action"] == f"focus:{gone}" and h["h"] == 3 ][0] hover(s, e["x"] + 1, e["y"]) check( |
