Let the user set their own text size - #14
Conversation
The desktop's text scale was the only knob on typography, so a document that read too small could only be fixed by changing the size of every other application too. Multiply a text size of the user's own onto that scale: the desktop still sets the baseline, and Ctrl+= / Ctrl+- / Ctrl+0 and Ctrl+wheel move from there. Because everything already sizes itself off textScale, the editor font, the 65-character column, the footer, and the wheel physics all follow with no further plumbing. The steps are Chromium's zoom ladder trimmed to 67%-200%, the range the whole window still reads well at, so Ctrl+wheel here lands where the same gesture lands in a browser. The ends of the ladder hold instead of running away, and every change reports the new size in the footer, including a keypress the ladder has no room for. A wheel notch is a whole step, but a touchpad trickles in pixels, so bank the fractions and step once a whole notch has been scrolled. The size persists, so the next window opens where the last one left off. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
I'd also like this feature. |
Ctrl++ is a distinct shortcut to Qt rather than a shifted Ctrl+=: pressing Shift and = resolves through QXkbCommon::possibleKeys to Ctrl+Plus, which Ctrl+= does not match, and a layout that puts + on its own key — German, Czech, the Nordic ones — never produces Ctrl+= at all, so its users had no way to make the text bigger. Ctrl+- needs nothing: minus is unshifted on those layouts, and the keypad modifier is stripped before shortcuts are matched, so the numpad keys fall out of this too. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Reviewed this and drove the real Pushed ( Open: a text size change scrolls the view back to the caret. Open, minor: the ladder drops Chromium's 80% rung. Chromium's is The rest held up under test. The 67%–200% clamp is enforced in the backend, so |
I was missing a feature to change text size on the fly.
Summary:
Ctrl+=,Ctrl+-,Ctrl+0, andCtrl+wheelto control text sizeTested:
bin/testpasses (14, two of them new), and stepping the built app from 75%to 150% scales the editor text, footer, and column width together.