Repository navigation
Conversation
- Adds 15 built-in color themes: 2 Material You dynamic variants (Dynamic colors subtle / vivid, Android 12+) and 13 curated palettes (Clean Light/Dark, Graphite, Pure Black dimmed, Warm Night, High Contrast Light/Dark, Arctic, Solar Light/Dark, Ocean, Deep Sea, Pastel), each with distinct auto-correction and typed-word suggestion colors and WCAG-checked contrast (text >= 7.0 on keys, >= 4.5 on functional keys and suggestions, hints >= 3.0, accent >= 3.0). - DynamicColors subtle and vivid variants use distinct normal and pressed functional key colors in night mode too, update haveColorsChanged for variant suggestion colors, and preserve isLightAccent for action key icons. - Adds a compact 3-chip color swatch preview (key, functional key, accent on background) to every theme row in ColorThemePickerDialog, rendered without background-image disk I/O and with Settings.getDayNightContext so day/night previews match the selected mode. - Uses unique LazyColumn keys so legacy user themes matching a new built-in name cannot crash the picker, prevents creating new user themes with built-in names while keeping the standard color editor, and stacks delete/edit actions below user theme rows so names are not cramped.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds 15 built-in color themes and a compact color preview for each entry in the theme picker:
autoCorrect,typedWord) and verified WCAG contrast (text ≥ 7.0 on letter keys, ≥ 4.5 on functional keys and suggestions, hints ≥ 3.0, accent ≥ 3.0 against background, keys, and action key icon).tools:keepinvalues/strings.xml).ColorThemePickerDialog):Settings.getDayNightContextwithout loading background images from disk.LazyColumnkeys (add/user:<name>/default:<name>) so existing user themes sharing a new built-in name cannot crash the list, and prevents creating new user themes with built-in names while keeping the standard color editor.Tested
./gradlew testOfflineDebugUnitTest --tests helium314.keyboard.keyboard.KeyboardThemeTest --tests helium314.keyboard.latin.common.ColorsTest --tests helium314.keyboard.latin.utils.ColorUtilTest— passed (14/14: 5 + 3 + 6)./gradlew testStandardDebugUnitTest --tests helium314.keyboard.keyboard.KeyboardThemeTest --tests helium314.keyboard.latin.common.ColorsTest --tests helium314.keyboard.latin.utils.ColorUtilTest— passed (14/14: 5 + 3 + 6)pastel/graphiteaccents, night-mode dynamic functional key states) have not been visually checked on a physical device yet.