828279d03c
rust: Use 2018 eition
...
This edition has better syntax around scoping and `use`.
2022-12-21 12:20:17 +00:00
a5fdc25452
layout: Unbox buttons
...
The Box was just polluting the code, and the original reason for it (passing buttons individually to C) is gone.
2022-10-01 16:38:10 +00:00
952ec805ed
layout: Put all button state into active_buttons
...
Ths gets rid of Rc<RefCell<>> sharing of state, which can be hard to keep track of.
In addition, there's no longer any duplication of button state.
2022-10-01 16:38:01 +00:00
74c5ef4a51
layout: Separate button info from state
...
Splitting out state into a dedicated place lets keep all the immutable metadata in one place, and all state in another.
2022-10-01 13:37:35 +00:00
649f67d319
layout: Split out static data
...
This will make it possible later to cache this data or compare for best size selection without hassle.
2022-09-30 17:42:03 +00:00
c30e951907
style: Use layout name as css class
2022-09-03 08:04:40 +00:00
c1ceec3673
state: Become the source of layout choice
...
A redesign of popover was needed: it can no longer query the application state directly due to current state being its own actor, so instead the popover gets a dedicated copy of the relevant state.
I'm not entirely happy with the extra complexity of having an extra actor just for 1 string, but at least the duplication between C and Rust and mutual calls have been reduced.
2022-06-06 16:10:53 +00:00
30141db28d
main: Dry-load layout in response to the layout command
2022-06-06 16:10:53 +00:00
8d0e1b4548
state: Use IM hint and purpose for layout selection
2022-06-06 16:10:53 +00:00
b634e2bfa4
state: Decide panel arrangement
...
Combines arrangement with layout to get panel contents as outcome.
Includes some path syntax changes for 2018 compatibility.
2022-06-06 16:10:53 +00:00
12cf628c71
Add URL and EMail keyboard variants for us
...
Closes : #65
2021-12-05 21:26:44 +01:00
4903f3d1a0
layout: Keep content purpose around
...
This allows to add proper CSS style classes based on that
2021-12-05 17:31:12 +01:00
3513bf8de4
Use special pin keyboard
...
This helps muscle memory
2021-12-05 17:31:12 +01:00
0d7fab2ef4
Honor input-purpose PIN
...
Otherwise e.g. SIM pins are requested with a numerical keyboard.
2021-11-30 13:29:11 +01:00
99f062fe31
Merge branch 'arrange' into 'master'
...
Rearrange code dealing with layout files
See merge request Librem5/squeekboard!449
2021-04-23 09:07:33 +00:00
2b7e8f829e
data: Split into loading and parsing
2021-04-05 11:03:57 +00:00