580 Commits

Author SHA1 Message Date
b76e43679e level: Remove level from elements 2019-08-08 19:18:29 +00:00
077ca8fad2 level: Make keyboard the only source of level data 2019-08-08 19:18:29 +00:00
377521c108 section: Remove unused press signals 2019-08-08 19:18:29 +00:00
23d5f18d4a symbols matrix: Remove in favor of a levels vector 2019-08-08 19:18:28 +00:00
c8adb45ab5 keyboard: Expose creating sections directly 2019-08-08 19:18:28 +00:00
18163e3ecc geometry: Simplify keyboard declarations 2019-08-08 19:18:23 +00:00
a18beca50c geometry: Move keycode to costomizations 2019-08-08 19:11:53 +00:00
04b721aed9 geometry: Move customizations to the button table 2019-08-08 19:11:53 +00:00
45f9353164 geometry: Use default outline by default 2019-08-08 19:11:53 +00:00
5abe6ed6be geometry: Remove unused row element 2019-08-08 19:11:43 +00:00
38f81e45f4 Break out symbol handling into Rust 2019-08-08 12:51:15 +00:00
c1482c2377 Merge branch 'add-frame-rendering' into 'master'
Add frame rendering, fix style sheet to show key borders

See merge request Librem5/squeekboard!123
2019-08-05 21:20:36 +00:00
f7d30b0df3 Clarify some arithmetic warnings 2019-08-05 17:01:22 +00:00
3e35b7441e Drop unused variables 2019-08-05 17:01:22 +00:00
754e79103a keyboard: Drop layout reference 2019-08-05 17:01:22 +00:00
d6b59d16fd Merge branch 'keyboard-signal' into 'master'
gtk-keyboard: Remove unused signal connections

See merge request Librem5/squeekboard!120
2019-08-05 14:27:09 +00:00
0b59262e95 Add frame rendering, fix style sheet to show key borders 2019-08-05 13:39:22 +02:00
593946779e Correct icon size for scaling 2019-08-05 13:21:01 +02:00
537ded4b58 Merge branch 'release-keys-when-focus-is-lost' into 'master'
Release pressed keys when dragging outside the keyboard

See merge request Librem5/squeekboard!119
2019-08-04 11:00:20 +00:00
25a6a00f0f Merge branch 'fix-key-press-checks' into 'master'
Use keyboard's coordinate system to check for presses

See merge request Librem5/squeekboard!118
2019-08-04 10:52:58 +00:00
8298a1412b gtk-keyboard: Remove unused signal connections 2019-08-04 10:23:57 +00:00
0057c80b2e Release pressed keys when dragging outside the keyboard
If no keys are under the touch position when dragging then release all
existing pressed keys. This fixes the problem where the last pressed key
causes events to be sent while the touch position moves outside the
keyboard extent.
2019-08-02 15:31:18 +00:00
da88831689 Fix key rendering to only scale once 2019-08-02 17:04:16 +02:00
7b6c6e51b3 Fix background rendering 2019-08-02 17:04:16 +02:00
42b2b3b8f6 Replace the Eek theme support with GTK classes
This brings the appearance of the keyboard basically in line with what
was there before. The background and key borders still need to be fixed
and the text and icons should probably be drawn using the style context.
2019-08-02 17:04:16 +02:00
64680664e3 Use a CSS provider and style context instead of the old theme support 2019-08-02 17:04:16 +02:00
87dd9b4374 Remove references to the removed theme classes 2019-08-02 17:04:16 +02:00
c7d5e8d152 Remove theme classes for future replacement 2019-08-02 17:04:16 +02:00
4cd15c074e Merge branch 'fixes' into 'master'
Fixes

See merge request Librem5/squeekboard!115
2019-08-02 15:03:33 +00:00
9bfdabdf57 Merge branch 'textproperty' into 'master'
Removed text categories

See merge request Librem5/squeekboard!114
2019-08-02 14:36:41 +00:00
9375bc212b Use keyboard's coordinate system to check for presses 2019-08-02 14:05:36 +00:00
f852cab0f9 Fix warnings, add gtk-doc strings 2019-08-02 12:49:15 +02:00
f53babcd68 Add gtk-doc style comment 2019-08-02 12:48:35 +02:00
016c1086e6 Center the keyboard horizontally
Also simplify individual key rendering to make the rendering model more
coherent.
2019-08-02 12:48:35 +02:00
f7dd4c84b1 renderer: Render label directly 2019-08-02 09:21:38 +00:00
b8389f6736 symbol: Simplify symbol storage 2019-08-01 20:25:01 +00:00
6c1c979414 section: Removed multiple rows in section, row/column in key 2019-08-01 20:10:59 +00:00
43df82355a EekKey: Remove column and row fields 2019-08-01 20:10:59 +00:00
d8b26040f9 symbolclass: Remove with surroundings
Collaterals: Enabled strict checking of initializers, fixed scripts generating keycode mappings.
2019-08-01 20:08:37 +00:00
bdf29bf57b symbol: forget serializing 2019-08-01 19:59:34 +00:00
504285c08f fonts: Reset font size to a constant
The font size will only be affected by the scaling factor, and not by an attempt to fit the labels into buttons.

Left to do: adjust it based on CSS.
2019-08-01 17:25:38 +00:00
b5f0aa423b xml: Remove unused file 2019-08-01 14:16:01 +00:00
c81fdb18de eekelement: Fix case falling through 2019-07-31 14:11:03 +00:00
8f1de46381 Simplify layout and rendering
Remove pre-scaling of the bounds for the keyboard and its contents.
Calculate the scale factor based on the allocation and the desired width
and height of each keyboard, using the lower value of the horizontal and
vertical scale factors.
Apply scaling in the renderer and prepare to perform centering there.
2019-07-30 21:48:36 +00:00
4aee4915d9 Merge branch 'generate-xkb-files' into 'master'
Generate XKB keymaps from XML instead of using pre-made ones

See merge request Librem5/squeekboard!90
2019-07-30 17:38:06 +00:00
e801a68f0d Add comments to explain what empty labels do 2019-07-30 16:50:23 +02:00
236415cde4 Merge branch 'add-landscape-orientation' into 'master'
Add landscape orientation

See merge request Librem5/squeekboard!99
2019-07-30 11:19:41 +00:00
d49e0eaa1b Center the keyboard in landscape orientation 2019-07-26 22:27:56 +00:00
99a7786dc3 Remove declaration of unused variable 2019-07-26 12:01:04 +02:00
70895999c2 Generate XKB keymaps from XML instead of using pre-made ones 2019-07-25 22:25:29 +02:00