mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* android keyboard: Gboard's row heights and label sizes on every screen
Hex's rows were Gboard's Pixel 8 sizes everywhere (47 dp keys every 59 dp) and its labels a
fixed 26 sp letter and 9.5 sp corner hint. Measured on the emulator (Gboard 15.1, 13 screen
sizes from wm size/density, font scale 1.0/1.3/2.0), Gboard's rows follow only the screen's
smallest width, in three steps: 46.9 dp keys every 59 dp from 400 dp wide, 40.3 every 50.3
from 360 (most Samsung and 360-393 dp phones), 37.7 every 48 below (a foldable's cover).
Height, density and font scale change nothing. Its capitals are 0.41 of the key on every
screen and never pass 0.48 of a shortened one. So on a 375 dp phone Hex's keyboard was
337 dp (40% of the screen) where Gboard's is 303, every row 9 dp taller; with the font size
up its letters overflowed into "…" (W, M, ?123) and its corner hints crossed the letters.
Now (KeyRows, KeyLabels):
- rows take Gboard's step for the smallest width; turned, its 39 dp keys every 43 dp as before;
- a key's label and hint are sized from its keycap, not sp: the reference size at Gboard's
Pixel 8 keycap, scaled by the keycap's width, the screen's key height and (for shorter rows)
1.17 times the keycap's own height; the system font size no longer scales them;
- a label shrinks to fit its key instead of ending in "…" (ellipsize removed), and a letter
shrinks until it clears its corner hint, beside or below it.
Key widths, touch targets' rules and the typing model's key centres are unchanged in kind: the
targets are each row's full height and geometry() reads the drawn keycaps, so spatial
autocorrect and swipe follow the new rows by themselves. At 400 dp and wider nothing changes.
Verified: ./gradlew :app:testDebugUnitTest (179 tests; KeyboardPageTest: the three steps, the
letters' share of the key, no letter touching its hint from 24 to 60 dp wide and 28 to 56 dp
tall, ?123 fitting a 360 dp key).
* android keyboard: the number row at Gboard's height, and no jump on ?123
Labs › Keyboard › Number row added a whole letter row (59 dp; 43 dp turned) and drew ?123, =<
and the symbol pad a row shorter, so the keyboard changed height whenever the page did (395 dp
on the letters, 336 on ?123, on a Pixel 8), and turned it covered the field's line (796 of
1080 px against 683 off). Gboard's number row (Gboard 15.1, emulator, same screens) is
smaller: its letter rows close up to 0.956 of their step with the same keys, its digits go
every 0.892 of that step (0.814 turned) with the letters' new gap, so the keyboard grows by
47 dp on a Pixel 8 and 30 dp turned; and its ?123 page keeps the same height, its three rows
stretched over it.
Now Hex does the same (KeyRows.withNumberRow, KeyPlaneView's bands): letters every 56.4 dp,
digits every 52.6 (43.1 dp keys) on a Pixel 8, 45 dp more than without the row, 30 dp turned
(760 px of 1080 instead of 796); ?123, =< and the symbol pad stretch their three rows over the
number row's and letters' height, so the page switch never resizes the keyboard (removed: the
row-shorter symbol pages). The Hex menu and the emoji panel take the same height. A number or
phone field's own pad is unchanged. Off, nothing changes. The letters' rows are each a full
row's touch target as before, so the typing model and swipe read the closed-up keycaps.
Verified: ./gradlew :app:testDebugUnitTest (180 tests; KeyboardPageTest: the Pixel 8 and
turned steps, the gaps on every screen step); on the emulator (Pixel 8 screen) the letters
and ?123 both measure 381.0 dp (Gboard: 383.2, its rows 52.6/56.4 dp like Hex's), and turned
the keyboard is 760 px with the row and 683 px without.
* android keyboard: Settings › Keyboard › Height
Asked for by eleven people since launch ("the keys are wayy too tall coming from swift keys",
"allow users to change the size of the keyboard (similar to Gboard)"). Gboard 15.1 has no
named heights any more: its Resize drags the rows from 0.69 to 1.62 of their step (measured
on the emulator: 40.8 to 95.6 dp on a Pixel 8), keeping the 12 dp gaps and changing only the
keys, and its letters never grow (and shrink only below about 0.48 of a short key).
Settings › Keyboard › Height lists seven steps under Gboard's old names: Extra short 0.75,
Short 0.83, Mid-short 0.92, Normal 1 (the default: the screen's own Gboard step), Mid-tall
1.08, Tall 1.17, Extra tall 1.25 of the step. Every row, the bottom row and the number row
included, scales its step and keeps its gap, so touch targets (each a row's full height), the
keycap centres the spatial autocorrect and swipe read (geometry() measures the drawn keys),
the Hex menu and the emoji panel all follow. Key widths and the strip never change. A change
rebuilds the keys at once, or after a dictation that is running. Strings in English and
Simplified Chinese.
Verified: ./gradlew :app:testDebugUnitTest (181 tests; InsertionTest: the steps, the default,
Gboard's range, the gap kept); on the emulator the Pixel 8 screen's rows go every 44.2, 59.0
and 73.5 dp at Extra short, Normal and Extra tall (keyboard 277, 336 and 394 dp), and a 375 dp
screen's every 37.8, 50.3 and 62.8 dp.
* android keyboard: the strip's words keep their size at any font size
The suggestion strip's words, hint, notice, Undo dictation chip and Hex menu button were in sp,
so the system font size grew them while the strip (44 dp) and Gboard's suggestions don't:
measured on the emulator at 411 dp, Gboard 15.1's strip and suggestion text are the same at
font scale 1.0, 1.3 and 2.0 (52.2 dp, 14.5 dp text), and Hex's text went from 12.2 to 19.0 and
23.6 dp. They are in dp now (StripView: every setTextSize, and the word-fitting measure).
Verified: ./gradlew :app:testDebugUnitTest (186 tests); emulator, "Yel" typed at font scale
1.0, 1.3 and 2.0: the strip's text is 12.2 dp at all three.
* android keyboard: the Hex menu's text keeps its size at any font size
The Hex menu (SpeechMenu) set its rows' 15 sp text in sp, so at a large system font size it
grew while the strip around it (now in dp, previous commit) and Gboard's menus don't. It is
15 dp now.
Verified: ./gradlew :app:testDebugUnitTest (186 tests); emulator at 411 dp with font scale 2.0,
the Hex menu open before and after: the rows' text is back to its font scale 1.0 size.
|
||
| .. | ||
| features | ||
| images | ||
| plans | ||
| releases | ||
| research | ||
| specs | ||
| cli.md | ||
| design-system.md | ||
| downloads.md | ||
| linux.md | ||
| nix.md | ||
| opencode-compatibility.md | ||
| perf.md | ||
| README.md | ||
| releasing.md | ||
| streams.md | ||
| test-builds.md | ||
| transcript-cli.md | ||
| windows-signing.md | ||
| windows.md | ||
Project Documentation
Start with the document for your task. Plans and archived prototypes do not override shipped behavior.
User Guides
../README.md: install and use Hex on macOS, Windows, and Linux.windows.md: Windows x64 and ARM64 beta requirements, installation, and source builds.linux.md: Linux X11 and native Wayland beta requirements and installation.nix.md: Nix packaging for Linux, development, and per-user autostart.../ios/README.md: build and test the iOS prototype.../sdk/typescript/README.md: use the public TypeScript transcription SDK with an explicitly supplied native helper.
Engineering Reference
../AGENTS.md: architecture, invariants, development commands, and diagnostics. This is the implementation authority.../ROADMAP.md: prioritized product and engineering work.design-system.md: Rune +rune-kit+ OpenCode theme components, Hex pieces, copy rules, and--snapscene verification.features/README.md: existing user-facing capabilities, entry points, available verification, and gaps; detailed dictation and recovery maps.perf.md: strobe benchmarks, the cases that drive the window through its accessibility tree, and how a benchmarked copy of Hex stays isolated.downloads.md: public download paths, R2 custom domains, GitHub release mirrors, and network recovery.opencode-compatibility.md: audited OpenCode V2 source and CLI baseline, integration contract, and validation limits.plans/personal-commands.md: shipped personal command contract and remaining lifecycle work.plans/quickjs.md: why and how configs run in embedded QuickJS instead of Bun, with size and latency measurements.specs/local-transcription-service.md: implemented macOS local-service protocol and lifecycle guarantees.specs/hex-words.md: the Hex words file (.hexwords) that carries vocabulary and word replacements between the desktop, iPhone and Android apps, with shared cases intests/fixtures/hex-words.
Architecture Decisions And Active Plans
plans/rune-ui.md: implemented; Rune desktop UI port, surfaces, goldens, and remaining real-window checklist.plans/single-process.md: implemented; one Hex process per user on macOS, Windows, and Linux hosting Rune windows and overlays.plans/rune-dependency.md: decision record for Rune as a public MIT Git dependency and Nix output-hash updates.plans/shared-desktop-ui.md: implemented; how macOS, Windows, and Linux share one window and one settings file.plans/swift-app-handoff.md: manual download handoff from Swift, without data import or automatic replacement.plans/typescript-sdk.md: published SDK status, remaining signed-helper packaging, and first-consumer validation.plans/linux.md: Linux X11/Wayland validation and later capability slices.plans/meeting-live-transcription.md: evaluation of Apple SpeechTranscriber vs Moonshine for live meeting drafts.plans/granola-import.md: research on importing historical Granola meetings intohex mcp.
When a plan disagrees with AGENTS.md about shipped behavior, update the plan.
Research And Archives
research/transcription-benchmark.md: historical benchmark method and measurements.../prototypes/app-shell/README.md: archived app-shell comparison prototype.
Releases
releases/ contains version-specific release notes and drafts. ../release-notes/ contains legacy inputs from versions
2.0.0 through 2.0.9. Published notes and the SDK changelog describe their release,
not current behavior; preserve them as historical records. A draft note is not
evidence that its release has been published.