aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoruser <user@clank>2026-09-22 12:17:33 +0200
committeruser <user@clank>2026-09-22 12:17:33 +0200
commite18976b315baeb8914970bd8e54887cdb05faefc (patch)
treedbb1936c615d7a8682531c5426bbec1ae14baf45 /tests
parenttabs: a plate under the ones you are not in (tab_idle_bg) (diff)
downloadslosh-e18976b315baeb8914970bd8e54887cdb05faefc.tar.gz
slosh-e18976b315baeb8914970bd8e54887cdb05faefc.tar.xz
slosh-e18976b315baeb8914970bd8e54887cdb05faefc.zip
tabs: idle tabs you can actually read across the room
Seen next to the accent, the first plate was too polite to do the job it was added for: a 30% lift off the background under labels in the same #45454a the idle frames use. From another monitor the strip still read as one dark band with a blue block in it. Both ends move. tab_idle leaves the ambient chrome grey and becomes #8a8a95, because a tab you are not in is a place to go and has to be legible at a glance, where a dimmed pane border only has to be findable. The plate follows it to 43%, which is not a taste constant but a contrast ratio: the same step taken from a dark background upward and a light one downward lands at about 1.9:1 either way, so paper's #bdbebe on near-white and the default's #3b3b40 on black are the same amount of plate. The six themes in contrib named their idle tab colour as their frame grey, so each gets the same move in its own family -- 40% of the way from that grey to the colour the theme writes text in -- and their plates follow by derivation: amber #a67c26, mono #909090, paper #666a6e, phosphor #4a9c5d, slate #70789c, sl0p the house #8a8a95. Nobody who named a colour loses it; the derivation only ever fills in a theme's silence.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_tabs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_tabs.py b/tests/test_tabs.py
index 09b1eec..92a35c5 100644
--- a/tests/test_tabs.py
+++ b/tests/test_tabs.py
@@ -312,8 +312,8 @@ def test_json_api():
ACCENT = "#7aa2f7" # the fill of the tab you are in, and hover on the rest
INK = "#141418" # text on that fill
BRIGHT = "#ffffff" # that text while the pointer is on it
-DIM = "#45454a" # a tab you are not in
-IDLE_BG = "#141416" # ...and its plate: a third of the way from bg to DIM
+DIM = "#8a8a95" # a tab you are not in
+IDLE_BG = "#3b3b40" # ...and its plate: 43% of the way from bg to DIM
def two_tab_layout():