374779dae8
setOpacity fades the entire window, text included, so the band a user can still read in sits just under opacity 1. The linear ramp spent that band in its first ~7% and the remaining travel on settings nobody can work in: combined with the old 5% step, the lever had about two usable stops. Curve the ramp instead. Both endpoints are bit-identical to the linear mapping -- 0 is byte-for-byte the opaque window and 100 is still the 0.3 floor -- while the readable band now covers roughly the first third of the travel. Extract the mapping and its clamp into electron/window-opacity so it is reachable from tests, following the electron/zoom split. main.ts keeps ownership of the persisted intensity and passes it in.