1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-04 02:57:43 +03:00
Commit Graph

106 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
d8a0a89d05 boot/lvgui: Add support for mono theme 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
f3772a48fc lvgui: Make progress bar colours configurable 2023-05-05 16:13:10 -04:00
Samuel Dionne-Riel
93397d6708 lvgui: use (charge now ÷ full) for battery as a fallback
Some drivers may expose those without exposing capacity.
2023-05-03 21:31:33 -04:00
Samuel Dionne-Riel
d3867f605e boot/gui: Fix keyboard not hiding when using physical keyboard 2023-02-12 13:43:06 -05:00
Samuel Dionne-Riel
21d1ccfa75 boot/gui: Support up/down keys for recovery menu 2023-02-12 13:43:06 -05:00
Samuel Dionne-Riel
5790eaf259 lvgui: Optimize option selection a bit
Don't needlessly rebuild it.
2022-10-20 21:52:47 -04:00
Samuel Dionne-Riel
bf3ad01187 lvgui: Wait for lv_ta to be updated before calling callbacks
This solves an annoying-to-solve problem with how it is handled
internally within LVGL.

This way we wait a full "tick" until the event, but it shouldn't matter.
2022-10-19 16:24:56 -04:00
Samuel Dionne-Riel
6ad619dfb4 lvgui: Add monospace font info
Which uses Fira Mono as added in the previous commit.
2022-10-13 03:15:38 -04:00
Samuel Dionne-Riel
58efa9e6f8 lvgui: Fix options selection styles 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
d693da045b lvgui: Fix horizontal separator styles 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
26e070a33a lvgui: Drop splash-specific styles from text area 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
017e080d6a lvgui: Only activate button when enabled 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
3fd8c97556 lvgui: Add button enabled/disabled state 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
82abf8c91f lvgui: Add none type button style mod 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
3816ff7e31 lvgui: Add events to text area 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
a01a9ac0f7 lvgui: Improve keyboard 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
a4bfef26c0 lvgui: Delete async when disposing of an object 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
a78d09726d lvgui: Add #once for LVTask 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
213cff49aa lvgui: Delete task when deleting statusbar widgets 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
ad65abb12a lvgui: BaseWindow add function to correctly dispos of objects
This is because objects *may* be added to the focus group. When added to
the focus group, they need to be removed before deleting.
2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
aae84d77ee lvgui: review status bar padding 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
a974fbb00d lvgui: Handle tasks deletion 2022-10-12 22:00:56 -04:00
Samuel Dionne-Riel
79a900c9c1 lvgui: Add header/text label helpers 2022-10-12 22:00:56 -04:00
betaboon
c1092ded48 lvgui: Fix add_switch description-default-value 2022-07-31 19:49:42 +02:00
Samuel Dionne-Riel
6e3b8e8d6e lvgui: Fix bogus null? usage
This `get_children` function was only used in the error applet.
2021-10-15 20:23:18 -04:00
Samuel Dionne-Riel
a272d16eb2 lvgui: Use LVGUI::Native
Most of the changes are `s/LVGL::FFI/LVGUI::Native/`, but there are some
other notable changes.

Some correctness issues with nil usage where "" should have been used.

String handling is better, and does not require tacking on, for unknown
reason, a null at the end of the string.
2021-09-28 21:23:35 -04:00
Samuel Dionne-Riel
a75f644101 lvgui: Remove now useless files 2021-09-28 21:23:35 -04:00
Samuel Dionne-Riel
9cd0668f23 lvgui: Reduce enhanced header bar size in landscape
This helps gain some precious screen real-estate for e.g. laptop use
cases.
2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
4937f6ad46 lvgui: Provide default font sizes
This is not used, but almost was. This would allow increasing or
reducing relative to the defaults, rather than hardcoding a value.
2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
b77cd6f5c2 lvgui: Fixes for landscape uses
Mainly we fit the content to a 720dp wide column. This ensures the
layout stays the same everywhere.

(Yet TODO, make the header take less space in landscape)
2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
a4233cc960 lvgui: Constrain header bar to a "720dp" column 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
8be50b7a6f lvgui: Add HeaderLabel 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
4ee19f9048 lvgui: Use the NixOS theme 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
5a7d09bcd6 lvgui: Make base window use the app background 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
0e1b8b47c4 lvgui: Review assets path 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
14e78352c1 lvgui: Use Fonts helpers to provide fonts
This decouples the actually-in-use assets from the native parts of
LVGUI.
2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
29ce88d750 lvgui: Add Fonts 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
39f6efa8c5 lvgui: Default to NixOS theme 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
5ff3bb9f88 lvgui: Add back support for night theme 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
6cb9a81938 lvgui: Drop nanosvg resize hack 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
f614ebf630 lvgui: Add font loading bindings 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
6017552e1d lvgui: Add basic assets path support
Still needed: actually providing a useful path
2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
61205f5e55 lvgui: Add point_scale
Will be used for fonts
2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
f546b3dcb4 lvgui: Allow setting style from add_button helper 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
42694ea008 lvgui: Add style modifier functions for buttons 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
6d01610062 lvgui: Drop unneeded logging 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
73c197bf1a lvgui: BackButton: fix metrics 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
898be48fba lvgui: OptionsSelection: rework a bit 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
f1ceb95cd9 lvgui: Rework Toolbar a bit 2021-07-19 15:50:06 -04:00
Samuel Dionne-Riel
1069f1aa0a lvgui: Update Page 2021-07-19 15:50:06 -04:00