Commit Graph

581 Commits

Author SHA1 Message Date
Guido Günther 306c11f1fd treewide: Use new style function definitions 2020-09-11 18:15:02 +02:00
Dorota Czaplejewicz 9512fd8436 virtual_keyboard: Fix desynced modifiers state
This ensures that keymap switches leave modifiers and virtual keys in a known state.
2020-07-15 18:08:59 +00:00
Guido Günther ec58442724 eek-gtk-keyboard: Trigger event feedback on button press
Use libfeedback to trigger feedback for the button press event.

Closes: #166
2020-06-04 12:13:58 +02:00
Guido Günther 1b2725250b eek: Drop libcanberra usage 2020-06-02 10:10:43 +02:00
Dorota Czaplejewicz 8ff8e8ac48 Merge remote-tracking branch 'upstream/master' into scaling 2020-03-07 10:46:09 +00:00
Dorota Czaplejewicz 2770e1769c sizing: Ignore scaling factor for layout selection 2020-03-07 10:31:39 +00:00
Dorota Czaplejewicz 784f9127fa layout: Minor generalizations 2020-03-07 10:31:39 +00:00
Dorota Czaplejewicz 22daefba3a levelkeyboard: Rearrange to make future conversion easier 2020-03-07 10:31:39 +00:00
Dorota Czaplejewicz 4ff9cf087b renderer: Simplify by dropping gobjectness 2020-03-07 10:31:39 +00:00
Dorota Czaplejewicz 61e1ab5c5a layout: Split out choice to a struct on its own 2020-03-07 10:26:52 +00:00
Dorota Czaplejewicz 92e9d994fe modifiers: Support Control and Alt
Control and Alt are special in that they aren't expected to switch levels, and so don't need to change what characters are output.

Use in layouts by adding `modifier: Control` or `modifier: Alt` in place of `text: "foo"`.

The latching of the modifier will force the keyboard to emit raw key presses and prevent it from outputting text.
2020-02-28 11:21:07 +00:00
Dorota Czaplejewicz 46cbaf8e87 keyboard: Remove unused code 2020-02-23 12:15:19 +00:00
Dorota Czaplejewicz 4b34f18d34 font: Only pass relevant data to label renderer
This will help factoring the function out
2020-01-28 18:13:19 +00:00
Dorota Czaplejewicz d5682de47c font: Use font from style context
As a consequence, some dependency on renderer is gone.
2020-01-28 18:13:15 +00:00
Dorota Czaplejewicz 26dbcdeb62 keyboard: Gather up keymap handling, drop layout 2020-01-13 13:53:54 +00:00
Dorota Czaplejewicz 0ef02ebfa3 levelkeyboard: Drop unused manager references 2020-01-13 13:53:54 +00:00
Dorota Czaplejewicz 0ce19b4269 keyboard: Cleanups of unused code 2020-01-13 13:53:54 +00:00
Dorota Czaplejewicz 326bb9319f submission: Take over virtual_keyboard handling 2020-01-13 13:53:54 +00:00
Dorota Czaplejewicz aafecfac02 EekGtkKeyboard: Use a direct reference to EekboardContext 2020-01-13 13:53:54 +00:00
Dorota Czaplejewicz 14d5881f1e key-emitter: Remove unused 2020-01-09 19:57:14 +00:00
Dorota Czaplejewicz bafd1e6eb3 popover: Install emoji layout
In order to do that, an additional piece of state (layout switcher) was exposed to the event handlers, a separation between squeekboard-only and system layouts was introduced, along with a Translation structure to prevent mixing up strings.
2019-12-24 10:41:02 +00:00
Dorota Czaplejewicz b6f3d9c1ea Remove unused header generator 2019-12-16 18:52:50 +00:00
Dorota Czaplejewicz dd21bfed8d positioning: Calculate sizes instead of storing, move position out of widgets
Sizes of widgets can be derived, so storing them was only for C compatibility. Similar with storing position inside of widgets.

Some layout margin and scaling changes could be introduced, meaning a possibility of visual differences.
2019-12-07 21:20:21 +00:00
Dorota Czaplejewicz 1c4d027af5 cleanup: Remove references to squeek_view 2019-12-07 15:42:54 +00:00
Dorota Czaplejewicz 51a77c41c3 renderer: Remove unused functions 2019-12-07 15:19:53 +00:00
Dorota Czaplejewicz f77db1bb73 renderer: Render whole keyboard the same way as pressed buttons
Removed window size dependent surface.
2019-12-07 14:33:49 +00:00
Dorota Czaplejewicz 581c86809a renderer: Simply cut off when painting outside bounds 2019-12-07 14:03:51 +00:00
Dorota Czaplejewicz 804aa53351 renderer: Remove unused locked key render function 2019-12-07 14:01:03 +00:00
Dorota Czaplejewicz e6da2a3b5b rendering: Remove unneeded redraw after button release 2019-12-07 13:58:50 +00:00
Dorota Czaplejewicz f9fbd3fb2d rendering: Simplify Cairo context usage, remove unneeded calls.
Moved Cairo context usage to Rust, and rearranged ctx setup (position) to happen in one place.

Removed render calls that were overwritten on each draw call anyway.
2019-12-07 12:47:47 +00:00
Dorota Czaplejewicz 6e32a2ef41 renderer: Simplify surface rendering 2019-12-01 16:00:40 +00:00
Dorota Czaplejewicz 34fce7395d renderer: Drop unused params 2019-12-01 15:36:01 +00:00
Dorota Czaplejewicz d415ecf5d0 renderer: Drop row from button rendering 2019-12-01 15:31:16 +00:00
Dorota Czaplejewicz 5266c621fd renderer: Simplified outline rendering 2019-12-01 15:27:14 +00:00
Dorota Czaplejewicz 4ee832c594 renderer: Remove some unneeded vars 2019-12-01 15:22:00 +00:00
Dorota Czaplejewicz 83fea8cd31 Drop squeek_key 2019-12-01 15:01:08 +00:00
Dorota Czaplejewicz a901c85bcb Merge branch 'themes' into 'master'
Use appropriate styling for layouts

See merge request Librem5/squeekboard!253
2019-11-30 11:08:08 +00:00
Dorota Czaplejewicz 59f6173282 theme: Use a matching layout theme for any widget theme
Dedicated styling is now possible for themes which have a corresponding style-theme.css file. Adwaita:dark gets one, whereas other themes use the new generic fallback theme.
2019-11-27 16:30:32 +00:00
Dorota Czaplejewicz 0c7e77a05f pointer: Release button when window is left 2019-11-20 13:17:47 +00:00
Dorota Czaplejewicz 3170a0b615 Merge branch 'renderer' into 'master'
Renderer reworks

See merge request Librem5/squeekboard!238
2019-11-19 10:34:47 +00:00
Dorota Czaplejewicz d8cb6ab383 Merge branch 'remove-old-files' into 'master'
Remove unused files

See merge request Librem5/squeekboard!242
2019-11-15 13:52:56 +00:00
Dorota Czaplejewicz db52a842b2 Merge branch 'caches' into 'master'
Fix leaks

See merge request Librem5/squeekboard!237
2019-11-15 13:50:29 +00:00
David Boddie 8191324e46 Remove unused files 2019-11-15 01:25:52 +01:00
Dorota Czaplejewicz c096698ec1 renderer: Remove unused ascii_font 2019-11-07 14:13:27 +00:00
Dorota Czaplejewicz 3aaaed3bae renderer: Clean up EekColor & label 2019-11-07 14:10:20 +00:00
Dorota Czaplejewicz f1c76a0ca4 Don't leak CSS 2019-11-06 15:46:53 +00:00
Dorota Czaplejewicz b78c3ad131 Try to free keymaps 2019-11-06 14:51:54 +00:00
Dorota Czaplejewicz b6dfb20fec cache: Remove keyboard cache 2019-11-06 14:45:33 +00:00
Dorota Czaplejewicz 7d18f81a30 Remove unused surface caches 2019-11-06 14:32:23 +00:00
Dorota Czaplejewicz 47c4119ab7 Add a popover menu to switch languages 2019-11-05 13:10:55 +00:00