abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Theme.java
AgeCommit message (Collapse)AuthorFilesLines
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-1/+1
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-6/+10
Themes replace 'colors.xml' and soon will replace 'dimens.xml'.
2021-12-28Reference the "special key font" in the Theme objectJules Aguillon1-3/+14
Remove the last cast of the context.
2021-12-26Move Theme code to its own classJules Aguillon1-0/+64