abouttreesummaryrefslogcommitdiff
path: root/res/values/themes.xml
AgeCommit message (Collapse)AuthorFilesLines
2023-01-07Remove borders on the black themeJules Aguillon1-1/+1
2022-11-13Draw borders and update themesJules Aguillon1-2/+31
Themes can define the color of each borders independently. Every borders must have the same width for now. It's possible to set a different width when the key is activated, thought this is only used to remove borders. The 4 themes are updated to take advantage of borders.
2022-11-11Dim secondary keysJules Aguillon1-0/+5
Reduce the constrast of "secondary" labels. Modifiers (except diacritics), event and keyevent keys are considered secondary.
2022-09-24Add white e-ink oriented theme (#193)Piotrek Marciniak1-0/+12
* Add white e-ing oriented theme Co-authored-by: Jules Aguillon <jules@j3s.fr>
2022-05-07Set the color of the navigation barJules Aguillon1-18/+18
Since SDK 21, applications can set the background color of the navigation bar. This is normally simply an item in a theme but it is more complicated for keyboards.
2022-02-27Increase contrastsJules Aguillon1-12/+12
For the Dark and Light theme. At the same time, use only "web safe colors" to have nice round numbers and ensure enough contrasts between colors. The background color is kept at the previous value, there's not enough contrast between the background and the keys but that's better than a solid black background.
2022-02-13Fix forced inverted colors on Xiaomi phonesJules Aguillon1-0/+2
MIUI inverts the colors of the app it thinks doesn't implement dark themes correctly. Also, it inverts the colors in the dumbest possible way: it doesn't invert all the colors the same way. It thinks that presumably because I don't use the Material base themes.
2022-01-30Avoid color inversion in dark themeJules Aguillon1-0/+4
2021-12-30Add the Black themeJules Aguillon1-0/+14
Friendly to Amoled screens. The background of keys is the same as the background of the whole keyboard: pure black. Colors are also slightly stronger.
2021-12-30Move the border radius from Config to ThemeJules Aguillon1-0/+4
Also, draw activated keys with a round border too.
2021-12-30Add themesJules Aguillon1-0/+13
Add a "Theme" option to choose between a dark and light theme. The light theme uses the colors of the dark theme with the luminance inversed. The reloading after a configuration change is changed slightly: - Special handling is needed when the Theme is changed (recreate the views) - The default implementation of 'onConfigurationChanged' is used Which triggers more refresh (but don't recreate the views) - 'onCreateInputView' is no longer needed
2021-12-28Use the themes abstractionJules Aguillon1-0/+35
Themes replace 'colors.xml' and soon will replace 'dimens.xml'.