hex/android/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 578f332dcf android keyboard: Key colors (Labs), iPhone Hex's key themes on the keys only
Labs › Keyboard › Key colors (off by default) with a Color row: Automatic and
iPhone Hex's six themes (Black, White, Navy, Forest, Ember, Burgundy), the
same hex values as KeyboardTheme.swift (#2778) so the two apps match.

A theme colours the keys: every keycap with the special keys in the same
colour (as on iPhone, Ryan's "all keys, as built"), the pressed state, the
pop-up and a held key's options with the chosen one, the enter key of a Send,
Go, Search or Done field (the theme's action colour under white), the labels
and icons, row 1's hints, the space bar's language and a phone key's letters.
The keyboard's background, the strip (and the Hex key's dictation states in
it), the emoji panel's grid, the Hex menu and the voice-only bar keep the
system's light or dark. Automatic draws exactly as before: its colours still
come from the resources, and the enter key is left untouched.

- KeyColors.kt: KeyColor (stored as "automatic", "navy", …), KeyColorSet
  (the iPhone's columns Android uses) and KeyPaints, which resolves a theme
  or Automatic's resources for one keyboard view.
- KeyCap takes the paints for its pressed colour and hint, and gains fill()
  so enter can change colour with the field's action.
- KeyboardView builds the paints once; LetterFeedback draws the pop-up
  from them. A changed choice builds the keys again (HexKeyboard.recolor),
  or on the next showing if a dictation is running.
- Settings: Toggle's note may be null (the iPhone's switch has no detail
  line); Page.KeyColors lists the themes with a check.
- Strings in English and Simplified Chinese, the iPhone's words.

Verified: :app:testDebugUnitTest passes on anomastudio (JDK 21,
--no-daemon). Not yet seen on an emulator.
2026-11-24 22:30:39 -05:00
..
src android keyboard: Key colors (Labs), iPhone Hex's key themes on the keys only 2026-11-24 22:30:39 -05:00
build.gradle.kts Android: Hex words files (Word replacements, review sheet, export) (#2781) 2026-11-24 19:42:04 -05:00
proguard-rules.pro Android: faster English dictation (Labs) (#2704) 2026-11-24 13:36:38 -05:00