Commit Graph
100 Commits
Author SHA1 Message Date
Dorota Czaplejewicz 3f3e33c853 style: Set active button color 2019-10-08 18:29:03 +00:00
Dorota Czaplejewicz aee981d9c0 debian: Bump distribution 2019-10-08 10:59:00 +00:00
Dorota Czaplejewicz e14d411150 logs: Silence missing file warnings 2019-10-03 12:59:26 +00:00
Dorota Czaplejewicz 746d842dd4 Merge branch 'patch-3' into 'master'
Update es.yaml

See merge request Librem5/squeekboard!195
2019-10-03 11:37:57 +00:00
Dorota Czaplejewicz a31f9b5e04 layout: Register it 2019-10-02 18:39:44 +00:00
Dorota Czaplejewicz 94aec87b5d Merge branch 'el_layout' into 'master'
layouts: Add Greek

See merge request Librem5/squeekboard!198
2019-10-02 18:02:12 +00:00
Dorota Czaplejewicz 854a9bb22e layouts: Add Greek
Greek layout created by Antonis Tsolomitis
University of the Aegean, Department of Mathematics, atsol@aegean.gr
2019-10-02 17:56:16 +00:00
Dorota Czaplejewicz 477a883885 style: Add styling for locked buttons 2019-10-02 16:32:13 +00:00
Dorota Czaplejewicz b3a63042cb Merge branch 'undefined' into 'master'
italian keyboard

See merge request Librem5/squeekboard!193
2019-10-02 13:49:08 +00:00
Dorota Czaplejewicz 7f704bcd61 style: Rename button selectors 2019-10-01 08:11:44 +00:00
Dorota Czaplejewicz a1b811aada tests: Compile in advance
Cargo is always trying to compile things if they are not ready yet. It caused the first test to take a lot of time, and potentially time out.
2019-09-29 09:01:09 +00:00
Dorota Czaplejewicz 1b424bd663 layout: Attempt to build xdg keymap at every load 2019-09-29 07:54:32 +00:00
Dorota Czaplejewicz 938ba53a38 es layout: Add to resources and testing 2019-09-28 21:53:24 +00:00
Dorota Czaplejewicz 1e609f4550 Merge branch 'patch-1' into 'master'
Spanish keyboard layout

See merge request Librem5/squeekboard!187
2019-09-28 21:51:50 +00:00
Dorota Czaplejewicz e33f591a1f layouts: Test fallback order 2019-09-28 21:37:51 +00:00
Dorota Czaplejewicz b6d25da7c2 layout: Fallback to builtin before switching layouts
When the user-provided layout was broken or missing, the loading would proceed with the fallback layout. It tries to load the builtin one first now.
2019-09-28 21:17:32 +00:00
Dorota Czaplejewicz 288d2247da cleanup: Remove dead fullscreen mode 2019-09-28 18:29:58 +00:00
Dorota Czaplejewicz e5eb9f0fd3 cleanup: Drop unused header 2019-09-28 18:18:44 +00:00
Dorota Czaplejewicz 908aa20036 cleanup: Drop unused EekboardContext 2019-09-28 18:17:26 +00:00
Dorota Czaplejewicz 60f1ca1408 style: Avoid conflict with GTK widget names
GTK style provider loads the theme on top of the selected CSS file. To ignore the theme, element names must be different than the predefined ones.
2019-09-28 12:11:32 +00:00
Dorota Czaplejewicz 4fee2fad01 debian: Fix build-arch
Some builds call the `build-arch` target instead of `build`. That causes the old `Cargo.lock` to be used.
2019-09-27 16:58:27 +00:00
Dorota Czaplejewicz 0985724b19 shellcheck: Pass cargo.sh 2019-09-27 13:47:49 +00:00
Dorota Czaplejewicz 7aff7977fc build: Remove empty variable from cargo.sh 2019-09-27 13:47:04 +00:00
Dorota Czaplejewicz 55bb263a12 build: Fix script path detection 2019-09-27 13:27:30 +00:00
Dorota Czaplejewicz 32b85e75db Merge branch 'cargo.sh' into 'master'
Stop requiring Bash for cargo.sh

See merge request Librem5/squeekboard!181
2019-09-27 13:24:23 +00:00
Dorota Czaplejewicz e513cb9b54 style: Use outline name as CSS class 2019-09-26 13:28:31 +00:00
Dorota Czaplejewicz 6fd7ab7405 rendering: Generalize outline rendering 2019-09-26 12:51:45 +00:00
Dorota Czaplejewicz 15833323ae styling: Use same context for the entire rendering of a button 2019-09-26 12:51:39 +00:00
Dorota Czaplejewicz 653462721b cleanup: Unused default backgrounds 2019-09-26 12:48:22 +00:00
Dorota Czaplejewicz 2889e50507 style: Simplified layout styling
Layout background is styled in the same place as button background, and obtains the path "layout".
2019-09-26 11:10:25 +00:00
Dorota Czaplejewicz 6b15f69e00 style: Use path instead of class for key 2019-09-26 11:08:38 +00:00
Dorota Czaplejewicz 231982d7f7 Drop dead drawing procedures 2019-09-26 07:27:16 +00:00
Dorota Czaplejewicz 3bea256ca5 Appease Debian's Rust version's borrow checker 2019-09-26 07:02:06 +00:00
Dorota Czaplejewicz 4c0f23c5c1 layout: Unhardcode button and row spacing values
They are specified by each layout now
2019-09-25 19:01:38 +00:00
Dorota Czaplejewicz 27d54fb38a Merge branch 'reduce-flickr' into 'master'
Don't hide keyboard right away

See merge request Librem5/squeekboard!175
2019-09-25 18:45:22 +00:00
Dorota Czaplejewicz de43d67638 display: Remove unused corner_radius 2019-09-25 18:10:58 +00:00
Dorota Czaplejewicz 54f9e61b6a style: Make pressed button 20% lighter 2019-09-24 11:28:29 +00:00
Dorota Czaplejewicz 94b7ba1ccc layout: Improved UI layout looks 2019-09-24 11:28:29 +00:00
Dorota Czaplejewicz e7d30d933f build: Simplified the calling of cargo.sh 2019-09-24 11:27:01 +00:00
Dorota Czaplejewicz 150fb3cf6a deps: Accept only bugfix version changes 2019-09-24 11:18:35 +00:00
Dorota Czaplejewicz 169f33c67a Merge branch 'pre-release' into 'master'
Pre release

See merge request Librem5/squeekboard!171
2019-09-24 10:52:52 +00:00
Dorota Czaplejewicz 0f5c5ef10f Bump version number 2019-09-24 10:46:41 +00:00
Dorota Czaplejewicz 6e183ccb13 cargo: Update lock 2019-09-24 10:46:21 +00:00
Dorota Czaplejewicz bb3c26b0d8 ci: Build .deb 2019-09-23 13:06:45 +00:00
Dorota Czaplejewicz d32749d533 debian: Silence false positive in Lintian
Needed to have working repository builds
2019-09-23 10:48:40 +00:00
Dorota Czaplejewicz 36306f2eea Merge branch 'backslash' into 'master'
us: Escape backslash character

See merge request Librem5/squeekboard!168
2019-09-22 21:32:05 +00:00
Dorota Czaplejewicz a3e421db3d build: Fix Debian Cargo.toml mismatch
Debian uses a separate registry for the packages it distributes. Checksums for some Debian packages don't match anything that's available on crates.io, which is the default source of dependencies. *linked-hash-map* in particular doesn't provide any hash.

As a result, Debian's `Cargo.lock` and crates.io's `Cargo.lock` are not matching, and building is only possible with one or the other, depending on what's checked in.

As a separate issue, Debian packages are usually not checked in in multiple versions, so checking in Debian's `Cargo.lock` would result in the package not building whenever a bugfix is distributed (due to checksum changes).

This change removes the crates.io `Cargo.lock` so that a new one will be created whenever a .deb is built, solving the above. What keeps falsely passing builds from happening is `Cargo.toml` specifying no interface changes, as well as Build-Depends, which seem enough for any other Debian package.
2019-09-20 09:52:36 +00:00
Dorota Czaplejewicz 241e5c0fc6 debian: Use Debian versions of dependencies 2019-09-20 09:40:18 +00:00
Dorota Czaplejewicz 28e0c26671 build: Change dependencies to match Debian packages 2019-09-20 09:40:18 +00:00
Dorota Czaplejewicz 7d0070a155 debian: Use CARGO_HOME more like librsvg does 2019-09-20 09:37:46 +00:00
Dorota Czaplejewicz 225b243446 tests: Describe how to test 2019-09-13 15:55:26 +00:00
Dorota Czaplejewicz db994da531 keysyms: Remove dead code 2019-09-13 15:25:48 +00:00
Dorota Czaplejewicz d47aff357b layout: Remove dead code 2019-09-13 15:21:29 +00:00
Dorota Czaplejewicz c8cc5b1997 layout: Bundle number layout 2019-09-13 09:11:20 +00:00
Dorota Czaplejewicz edb28cb859 tests: Verify all bundled layouts 2019-09-13 09:09:17 +00:00
Dorota Czaplejewicz b07689939b Merge branch 'fixbuild' into 'master'
build: Fix cargo behaviour

See merge request Librem5/squeekboard!161
2019-09-12 11:32:16 +00:00
Dorota Czaplejewicz 6072e5768a build: Fix cargo behaviour
Cargo caused .deb builds to crash by storing its data in $HOME.

https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules says TMP_DIR may be used freely, so that's where Cargo will keep its stuff now.
2019-09-12 11:26:03 +00:00
Dorota Czaplejewicz 2352e31f01 us: Simplify by using Unicode directly 2019-09-11 12:03:57 +00:00
Dorota Czaplejewicz 8e654346a2 keysyms: Derive from Unicode labels 2019-09-11 12:03:57 +00:00
Dorota Czaplejewicz 015ba79f65 Merge branch 'fix_tests' into reparse 2019-09-11 12:03:24 +00:00
Dorota Czaplejewicz fd0d8d4244 warnings: Fix some C stuff 2019-09-10 11:06:18 +00:00
Dorota Czaplejewicz c725cd7f14 cargo: Allow for manual cargo invokations 2019-09-10 10:17:28 +00:00
Dorota Czaplejewicz 0922d4a87a tests: Allow the building of doctests
Also allows for standalone tests and examples to be built and run with Cargo.
2019-09-10 09:34:25 +00:00
Dorota Czaplejewicz 51562d5185 Fix imservice docstring 2019-09-10 09:27:21 +00:00
Dorota Czaplejewicz ed8b6eec28 More float_ord docs 2019-09-10 09:27:21 +00:00
Dorota Czaplejewicz e9c236a682 float_ord: Fix test 2019-09-10 09:27:19 +00:00
Dorota Czaplejewicz 04a47ad0af Merge branch '33-multi-touch-typing-not-yet-working' into 'master'
Resolve "Multi-touch typing not-yet working"

Closes #33

See merge request Librem5/squeekboard!135
2019-09-10 09:15:50 +00:00
Dorota Czaplejewicz 99c577be60 Merge remote-tracking branch 'upstream/master' into reparse 2019-09-10 09:11:57 +00:00
Dorota Czaplejewicz db8340181f Merge branch '88-visual-improvements' into 'master'
Resolve colors used in "Visual Improvements"

See merge request Librem5/squeekboard!155
2019-09-10 08:16:57 +00:00
Dorota Czaplejewicz 31c12e5182 layout: Convert numbers to yaml 2019-09-09 19:10:42 +00:00
Dorota Czaplejewicz 521796a46d deps: Remove bitflags
This removes the need to use a modified copy and makes running tests easier.
2019-09-09 19:00:40 +00:00
Dorota Czaplejewicz a187221d3f Convert nb layout to yaml 2019-09-09 16:35:21 +00:00
Dorota Czaplejewicz 583b546e81 Fix CI error 2019-09-09 15:49:25 +00:00
Dorota Czaplejewicz aa9523338f Merge branch 'buttonlists' into reparse 2019-09-09 15:11:59 +00:00
Dorota Czaplejewicz 0ed66e0eab locked: Use keys instead of buttons 2019-09-09 13:54:55 +00:00
Dorota Czaplejewicz 6523275b6a views: Change based on layout file 2019-09-09 13:25:03 +00:00
Dorota Czaplejewicz c4886e362a Merge branch 'dorota.czaplejewicz/squeekboard-cargo' into 'cargo'
Add new meson and current ninja to the build dependencies

See merge request dorota.czaplejewicz/squeekboard!8
2019-09-07 11:37:42 +00:00
Dorota Czaplejewicz 26d1a6047c Merge branch 'fixes' into reparse 2019-09-04 10:18:53 +00:00
Dorota Czaplejewicz 60a89b6c3f Merge branch 'wrapping' into reparse 2019-09-04 10:01:22 +00:00
Dorota Czaplejewicz b84c402c4a WIP
WIP

WIP: keymap generation test passes

meta: Update features and version

WiP: cargo.lock

WIP: don't crash

WIP: no outlines

parsing: New tests

WIP: base level works

WIP: remove old keyboard

symbols correctly input

WIP: lodaing files

WIP: fallback works

Valid fallback
2019-09-04 09:44:31 +00:00
Dorota Czaplejewicz 2579d2fea9 cleanup: Vala bindings 2019-09-04 09:21:55 +00:00
Dorota Czaplejewicz baabcb1400 layout: Remove unused C functions 2019-09-01 11:42:02 +00:00
Dorota Czaplejewicz c16bbb9e7f Merge branch 'fix-number-layout' into 'master'
Adjust width and height of keypad geometry

See merge request Librem5/squeekboard!149
2019-08-31 12:31:45 +00:00
Dorota Czaplejewicz 623181cc34 tooltips: Remove 2019-08-31 12:18:55 +00:00
Dorota Czaplejewicz 76b5104fb7 Merge branch 'improve-styling' into 'master'
Apply symbol names to widget paths, add styles

See merge request Librem5/squeekboard!148
2019-08-31 12:16:03 +00:00
Dorota Czaplejewicz 6c0a642abf Store key instead of button in pressed lists 2019-08-31 11:30:51 +00:00
Dorota Czaplejewicz 132435a9c8 Drop callback iteration for button finding 2019-08-31 11:30:51 +00:00
Dorota Czaplejewicz 3413021d30 rust: Use Cargo to build the Rust portion
Pros: Ability to use Rust libraries from crates.io
Problems: Need to lock library versions and document their reproducible building, either via Cargo.lock or vendoring.
2019-08-30 09:00:34 +00:00
Dorota Czaplejewicz 09deef2d6c Merge branch 'fix-formatting' into 'master'
Fix code formatting

See merge request Librem5/squeekboard!146
2019-08-29 15:03:14 +00:00
Dorota Czaplejewicz 878b7ed18e ffi: Use a generic wrapper for opaque Rust structs 2019-08-29 13:33:04 +00:00
Dorota Czaplejewicz 75992ff13f Check for button position more in Rust
The check against fitting inside the Layout was removed: as an optimization it is unneeded, as the actual search must be optimized to be quick. In addition, the view bounds don't correspond to anything physical as long as negative offsets are allowed.
2019-08-29 12:19:42 +00:00
Dorota Czaplejewicz 2d7dddd505 Merge branch '56-key-stays-pressed-when-the-keyboard-hides-during-a-keypress' into 'master'
Resolve "Key stays pressed when the keyboard hides during a keypress"

Closes #56

See merge request Librem5/squeekboard!138
2019-08-29 11:50:16 +00:00
Dorota Czaplejewicz afe0ed1674 Merge branch 'adjust-extended-layout-height' into 'master'
Adjust height of the extended keyboard layout

See merge request Librem5/squeekboard!142
2019-08-29 10:20:26 +00:00
Dorota Czaplejewicz 4a61ab269b layout: Place items using simple loops
The C version of looping over buttons and other items was weakly typed, causing runtime errors, and also C doesn't know how to iterate in abstract, so it was full of callbacks with user-defined data. Moving this to Rust, iteration is made of simple loops, and compile-time type-checked, at the cost of some more verbose code.
2019-08-28 09:41:33 +00:00
Dorota Czaplejewicz 5551ed2bd2 Merge branch 'remove-debugging-code' into 'master'
Remove debugging code

See merge request Librem5/squeekboard!139
2019-08-28 06:31:50 +00:00
Dorota Czaplejewicz 531a87825c Merge branch 'improve-run-time-error-reporting' into 'master'
Improve error reporting for keys and keymaps

See merge request Librem5/squeekboard!136
2019-08-27 15:00:40 +00:00
Dorota Czaplejewicz 4b5bb2a507 Merge branch 'fix-nb-keyboard' into 'master'
Fix the nb symbols file and extended layout

See merge request Librem5/squeekboard!137
2019-08-27 14:58:12 +00:00
Dorota Czaplejewicz 9aa0f14494 Merge branch 'dorota.czaplejewicz/squeekboard-eekkey' into 'eekkey'
Fix null pointer dereference

See merge request dorota.czaplejewicz/squeekboard!6
2019-08-26 16:47:33 +00:00
Dorota Czaplejewicz 79b66f81ec view: Move button finding to Rust 2019-08-18 13:22:18 +00:00
Dorota Czaplejewicz e1c57fa9f0 row: Add const 2019-08-18 13:22:18 +00:00