abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Config.java
AgeCommit message (Collapse)AuthorFilesLines
2022-04-02Compute the swipe distance from the physical dpiJules Aguillon1-3/+5
The previous computation was very different depending on the device's screen and accessibility options. Given that the keyboard is supposed to fill all the space in one dimension, the dpi unit makes little sense. The formula doesn't mean anything in particular, it takes into account both dimensions (x and y) and should be close to the dpi in the diagonals (which is the direction of swipe). This changes the actual value, on a 1920x1080 480dpi screen, the value is increased by 20%.
2022-03-15Brazilian portuguese layout (#91)igorSilCar1-0/+1
* Providing a comprehensible Brazilian Portuguese keyboard layout removed cedille as it is already provided by an independent key; changed layout to correspond to the locale
2022-03-15Add Swedish layoutJacob Strömgren1-5/+6
2022-03-13Make superscript and subscript modifiers lockableJules Aguillon1-1/+3
2022-03-13Define localized keys as a set instead of flagsJules Aguillon1-25/+8
Using flags for removing keys like € and ß need too many flags and won't scale to more localized keys.
2022-03-06Make the font smaller for the action keyJules Aguillon1-2/+2
2022-03-05Clicking twice on CTRL or ALT will lock them in 'ON' state (#72)Raphael1-2/+14
* Clicking twice on CTRL or ALT will lock them in 'ON' state * Make Locking behaviour optional, configurable in preferences * Nest the new settings into a different page To avoid spamming the settings page and repetition in the summaries. Cannot be a popup unfortunately because that would require API >= 11. * Add Fn and Meta Co-authored-by: Jules Aguillon <jules@j3s.fr>
2022-03-05Improve the code for dynamic updates of the layoutJules Aguillon1-0/+31
2022-02-27Compute text size relative to key heightJules Aguillon1-4/+6
Instead of a fixed size that don't work at all for bigger screens. Other tweaks: - Use the value-land dimens to vary 'extra_horizontal_margin' - Move label size to Config, because it can change at runtime (rotation) - Slightly decrease the size of "long" symbols
2022-02-22Update the spanish localeJules Aguillon1-0/+1
To use the new layout.
2022-02-19Localize € and £Jules Aguillon1-0/+2
Show these characters only for users that have the corresponding locale installed (a supported eu language for €, en-GB for £). Add these characters to most layouts.
2022-02-13Define the height of the keyboard relative to the screen sizeJules Aguillon1-4/+19
Depending on the pixel density isn't ideal for a keyboard, which would render differently depending on the "scaling" accessibility option. Landscape mode needs a special values. At the same time, increase the horizontal margin when landscape.
2022-02-13Add Russian layout (#66)Vladimir Chernov1-0/+1
* Add Russian layout Co-authored-by: Jules Aguillon <jules@j3s.fr>
2022-02-07Dvorak layout (#16)AlexandraAlter1-0/+1
2022-01-30Add options for the spacing between the keysJules Aguillon1-6/+10
Two options: vertical and horizontal.
2022-01-30Select theme depending on system settingsJules Aguillon1-2/+24
Automatically choose between the Dark and Light themes.
2022-01-29Add support for the Bulgarian language and layoutJules Aguillon1-0/+1
Thanks Zdravko Iskrenov for the contribution.
2022-01-29Add Latvian specific QWERTY layoutEdgars1-0/+1
A customised Latvian specific QWERTY layout (QWERTY (Latvian)) was added to access all Latvian diacritic characters with a swipe. Additionally caron, cedille and macron accents were enabled for this layout.
2022-01-20Add keys for LatvianEdgars1-6/+8
New accents - caron and macron - were defined and QWERTY layout was updated to add accents for Latvian specific characters.
2022-01-15German keyboard added (#20)Moini1-0/+1
* Add German metadata translation * Add German keyboard Co-authored-by: Jules Aguillon <jules@j3s.fr>
2022-01-15Fix miscalculation of the space between the keysJules Aguillon1-1/+3
'keyVerticalInterval' was mistakenly used to compute the height of the keyboard and the vertical position of keys. While the code handling pointers did not use this value, the hit box of the bottom row was shifted by several pixels. Make sure 'keyVerticalInterval' is only used for rendering and not for placing the keys.
2022-01-10Swap the Enter and Action keys when neededJules Aguillon1-0/+2
When IME_FLAG_NO_ENTER_ACTION is set.
2022-01-09Add the Action keyJules Aguillon1-0/+4
It is placed on the top-right of the enter key on every layouts. It sends a special event (performEditorAction) instead of writing a newline. The "actionId" is passed through the EditorInfo object in an obfuscated way so it's not clear whether it's using the right one.
2022-01-09Add the German languageJules Aguillon1-0/+1
Add the 'ß' character on the bottom-left corner of the 's' key, which is hidden for other languages. Co-authored-by: Moini <moini@noreply.invalid>
2022-01-09Allow to hide more keys than just accentsJules Aguillon1-3/+3
Add the "FLAGS_LANGS" set of flags, which will be used to hide individual keys that are not accents.
2021-12-30Improve the "precision" optionJules Aguillon1-15/+8
Now named "swiping distance". Changed to a dropdown.
2021-12-30Turn the "precision" option to dp instead of pxJules Aguillon1-5/+13
2021-12-30Add the Black themeJules Aguillon1-0/+1
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-2/+0
Also, draw activated keys with a round border too.
2021-12-30Add themesJules Aguillon1-0/+11
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-28Separate "handler" codeJules Aguillon1-3/+11
As with the previous commit, remove casts of the context. The "handler" object is referenced in the "config" object for now.
2021-12-28Turn Config into a singleton objectJules Aguillon1-17/+25
The goal is to remove a cast of the 'context' into 'Keyboard2'.
2021-12-19Avoid crash when removing a layoutJules Aguillon1-2/+1
Might happen when downgrading the app.
2021-12-19Auto-format Java and XML filesJules Aguillon1-59/+59
Use xmllint. Re-indent Java files using spaces.
2021-12-11Add SwedishJules Aguillon1-0/+1
First add the 'ring' accent. The swedish language uses the qwerty layout and three accents (aigu, trema, ring)
2021-05-09Fix recently introduced crashJules Aguillon1-2/+2
2021-05-09Add the accents preferenceJules Aguillon1-3/+22
This replaces the "disable accent keys" checkbox. The default should work for anyone: Accents will be hidden unless the user has the french language installed. The value "show every accents" is useful for versions of android that don't have subtypes.
2021-04-29Add the "layout" option againJules Aguillon1-0/+15
Some versions of android don't allow to configure several languages.
2021-04-25Tweak dimensionsJules Aguillon1-2/+4
Increase a bit labels size and reduce empty space between keys.
2021-04-24Add the label size optionJules Aguillon1-0/+3
2021-04-20Add a setting for precise repeatJules Aguillon1-0/+3
2021-04-18Hide the input switching key if it's not neededJules Aguillon1-0/+4
Android has a new way of switching between input methods and this key need to be hidden in most cases.
2021-04-13Add an option to toggle accent keysJules Aguillon1-1/+3
These keys are not useful at all in English. A new option allows to hide them, [false] by default.
2021-01-05Remove the preview popupJules Aguillon1-7/+0
This was a half-finished feature: - Dangerous when typing passwords - Caused crash on some devices - Ugly (on its own but also blinking when sliding and not fixed in size)
2015-10-29Move configs to Config objectjaguillo1-0/+83