mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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. |
||
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||