aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-10 09:50:48 +0200
committerDanilo M. <danix@danix.xyz>2026-08-10 09:50:48 +0200
commit1911887cb9d6a165a52412ed92014ff113d701c8 (patch)
tree3df77b7b20a265493d8e2fd1663a91a6a5408a76 /src/config.cpp
parent8031901652758e9db5ef0bb545c062f80f2f8cc2 (diff)
downloadqtmaildir-1911887cb9d6a165a52412ed92014ff113d701c8.tar.gz
qtmaildir-1911887cb9d6a165a52412ed92014ff113d701c8.zip
feat(view): lift a muted account colour for the accent bar
The five real account colours are all mid-tone, because they were chosen as CHIP fills with legible text on top, and three pixels of a mid-tone colour barely registers beside a card's own background. The bar now lifts saturation and lightness to a floor. A floor, not a repaint: a colour already past it is returned untouched, so a deliberately vivid choice is preserved and only the muted ones move. Hue is never altered, because hue is the entire information the bar carries and a shifted one would stop matching the account's chip and its dropdown swatch. 0.65 and 0.50 were chosen by rendering all five accounts as 3px bars against both a dark and a light card background and looking at them. Higher pushed the weakest of them, a green at S 0.33, toward a neon that no longer matched its own chip; lower left it where it started. accentLineColour had no test at all until now, which is how two earlier versions of it shipped wrong: one blended toward Base until it WAS the background, the other passed a chip colour through unchanged. test_carddelegate covers the lift, the floor's idempotence, hue preservation across all five accounts, and the fallback for a thread with no account tag.
Diffstat (limited to 'src/config.cpp')
0 files changed, 0 insertions, 0 deletions