182 Commits

Author SHA1 Message Date
162b828c4c Merge branch 'targets' into 'master'
buttons: Buttons are next to each other, padding is visual only

Closes #110

See merge request Librem5/squeekboard!209
2019-10-18 19:14:04 +00:00
9e078be603 buttons: Buttons are next to each other, padding is visual only 2019-10-09 20:34:46 +00:00
212e55d7cf caches: Stop using due to bugginness
The button cache is storing only button outlines (not useful to us), and it only cares about active/inactive states (there are more).

This will have to be rewritten sanely, so for the time being, disabling it is not going to deal a big performance penalty.
2019-10-09 09:24:42 +00:00
477a883885 style: Add styling for locked buttons 2019-10-02 16:32:13 +00:00
1c56de8698 Merge branch 'style' into 'master'
style: Avoid conflict with GTK widget names

Closes #119

See merge request Librem5/squeekboard!184
2019-09-29 15:01:32 +00:00
9b5e0109a7 Merge branch 'style_better' into 'master'
Style better

See merge request Librem5/squeekboard!180
2019-09-29 14:28:42 +00:00
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
de7211d1a5 Merge branch 'drop_color' into 'master'
cleanup: Unused default backgrounds

See merge request Librem5/squeekboard!179
2019-09-26 20:58:49 +00:00
26380ab987 Merge branch 'style' into 'master'
Style: Change classes to paths

See merge request Librem5/squeekboard!178
2019-09-26 19:57:42 +00:00
e513cb9b54 style: Use outline name as CSS class 2019-09-26 13:28:31 +00:00
6fd7ab7405 rendering: Generalize outline rendering 2019-09-26 12:51:45 +00:00
15833323ae styling: Use same context for the entire rendering of a button 2019-09-26 12:51:39 +00:00
653462721b cleanup: Unused default backgrounds 2019-09-26 12:48:22 +00:00
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
6b15f69e00 style: Use path instead of class for key 2019-09-26 11:08:38 +00:00
231982d7f7 Drop dead drawing procedures 2019-09-26 07:27:16 +00:00
aa9523338f Merge branch 'buttonlists' into reparse 2019-09-09 15:11:59 +00:00
26d1a6047c Merge branch 'fixes' into reparse 2019-09-04 10:18:53 +00:00
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
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
132435a9c8 Drop callback iteration for button finding 2019-08-31 11:30:51 +00:00
ffc64c6d56 Apply symbol names to widget paths, add styles 2019-08-29 21:02:35 +00:00
83907af456 Fix code formatting 2019-08-29 14:52:10 +00:00
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
a64bff6aab button: Add const qualifiers where needed 2019-08-18 13:22:18 +00:00
f479a36dbe keyboard: Remove references 2019-08-18 13:22:18 +00:00
e56f1c6392 row: Move button find iteration into row 2019-08-18 13:22:18 +00:00
c4b3a0aaaa row: Moved button sizing closer to row 2019-08-18 13:22:18 +00:00
f50f8e95b1 Remove unused outline rendering function 2019-08-18 13:22:18 +00:00
77d4f45d13 section: Elininate references 2019-08-18 13:22:18 +00:00
0d33179727 section: Moved bounds to row 2019-08-18 13:22:18 +00:00
4f8de42598 section: Move properties into Row 2019-08-18 13:22:18 +00:00
6fc351d2e8 eekkey: Dropped in favor of Button
Each Button has a KeyState, which may be shared with other buttons. The list of pressed and locked buttons is used as a list of keys, causing a search for the button in the current view.
2019-08-18 13:22:18 +00:00
0c83101b3f container: Drop parent reference 2019-08-18 13:22:17 +00:00
fc683de434 keyboard: Pass the current view instead of level 2019-08-18 13:20:43 +00:00
996f681e5c keystate: Removed multiple symbols 2019-08-18 13:20:43 +00:00
f371b14e89 levelkeyboard: Use a layer for managing keyboard views 2019-08-08 19:26:21 +00:00
fb93e25833 eekkey: Moved state to KeyState 2019-08-08 19:18:29 +00:00
53b89aae45 symbol: Remove remains 2019-08-08 19:18:29 +00:00
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
23d5f18d4a symbols matrix: Remove in favor of a levels vector 2019-08-08 19:18:28 +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
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
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
da88831689 Fix key rendering to only scale once 2019-08-02 17:04:16 +02:00