Commit graph

79 commits

Author SHA1 Message Date
Tasuku Suzuki
3e94d81ba0
Home Automation: adjust logo appearance (#8415)
Colored logo provides better visual appeal during demonstrations.

This also addresses an issue where the first touch in kiosk mode (which deactivates it) appeared unresponsive due to no immediate visual feedback.
2025-05-10 12:21:41 +03:00
Tasuku Suzuki
f97f2d105f
Home Automation: clean up imports (#8406) 2025-05-09 14:12:59 +03:00
Tasuku Suzuki
eb1ae3d3bc
Home Automation: Improve player's play button (#8405) 2025-05-08 13:37:12 +03:00
Tasuku Suzuki
0051c95b1b
Add real-time clock to home automation demo (#8390) 2025-05-08 13:19:03 +03:00
Tasuku Suzuki
d85f11758c
Home Automation: fix color of month (#8393) 2025-05-07 11:30:47 +03:00
Tasuku Suzuki
37ad2445a7
Fix time display in home automation demo (#8392)
Show 12 instead of 0 for noon/midnight and fix AM/PM logic
2025-05-07 11:27:34 +03:00
ogoffart
e0099ea500 Bump version number to 1.12.0 2025-04-30 13:27:50 +00:00
Tasuku Suzuki
31439de382
Home Automation: fix graph vertical grid lines (#8199) 2025-04-18 17:28:07 +03:00
Simon Hausmann
c91ef1d7e6 Prospective build fix for non-esp mcu-board-support crate builds 2025-04-15 11:32:27 +02:00
Simon Hausmann
00c89626df Introduce a prelude to mcu-board-support to make esp-hal available when the entry point comes from esp_hal::main
esp_hal::main's code requires the availability of `esp_hal` as import.
2025-04-15 11:32:27 +02:00
Juraj Michálek
d85f27ea9c muc-board-support: esp32-s3-box-3 resolve entry point 2025-04-15 11:32:27 +02:00
Olivier Goffart
78a3757b7f
Remormat all the toml file again to fix npm upload
Commit cd6f2e2 reformated the .toml, but the 80 char width column is
judged too small to be practical

Add a .taplo.toml file

Also do not split feature array
2025-04-09 15:06:00 +02:00
Tobias Hunger
081452bee9 live-preview: Explicitly set live-data values on reload
Set all values that are changed compared to the initial
set of values right after loading a new component.

This also includes a small change to the printerdemo,
so that it exposes more data to the business logic,
so that we have something to demonstrate;-)
2025-04-09 09:39:04 +02:00
Tobias Hunger
cd6f2e2cf2 ci: Format toml files
... using taplo with default settings

I tried this with 4 spaces indentation, but the patch is almost as
big as this one, so I went with default settings instead as that
is just easier:-)
2025-04-02 11:03:41 +02:00
Olivier Goffart
6f4f5aeefa Replace no_mangle with unsafe(no_mangle) in example and docs
We can't just do `s/#\[no_mangle]/#[unsafe(no_mangle)]/g`
because the version of cbingen we use doesn't understand the unsafe
attribute yet.

Part of #7998
2025-03-31 17:35:22 +02:00
Nigel Breslaw
30dca1423e
demos: Simplify home auto weather component (#7964) 2025-03-27 15:12:52 +02:00
Olivier Goffart
f71721e738 energy-monitor: fix warning
```
warning: energy-monitor@1.11.0: Aliases to global callback are deprecated. Export the global to access the global callback directly from native code
warning: energy-monitor@1.11.0:   --> /home/olivier/slint/demos/energy-monitor/ui/pages/menu_page/settings.slint:54:5
warning: energy-monitor@1.11.0:    |
warning: energy-monitor@1.11.0: 54 |     callback check-radio-option <=> SettingsAdapter.check-radio-option;
warning: energy-monitor@1.11.0:    |     ^
```

Warning was introduced in #7933
2025-03-25 10:42:15 +01:00
Nigel Breslaw
287a976bd0
Updated Home Automation demo (#7890)
Adds:

Kiosk mode. After 30 seconds demo will cycle through views.
Landscape support.
{ API } to work with the new data tab in live-preview.
SW Renderer support (use of PNG images over gradients, Rectangles, shadows, etc).
Removes side-bar and theming.
Refreshed look.
2025-03-21 19:04:58 +02:00
Simon Hausmann
cc932fceb9
Improve font embedding for MCUs when bundling translations (#7875)
Include messages from bundled translations into the character set used for deciding which glyphs to embed.
2025-03-18 11:54:28 +01:00
ogoffart
178cf21c2e Bump version number to 1.11.0 2025-03-18 09:48:22 +00:00
Simon Hausmann
37a82bcff5 Add dynamic translation selection to the usecases esp-idf build 2025-03-14 14:46:29 +01:00
Simon Hausmann
c9bc5b0c16 Add a bundled german translation for the use-cases demo in the Rust build 2025-03-14 14:46:29 +01:00
Simon Hausmann
5cd2e92c79 Adjust screen width to the latest size of the p4 function board 2025-03-14 14:46:29 +01:00
FloVanGH
f372703ea2
usecases: final polish for ew 2025 (#7817)
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-07 08:40:12 +01:00
FloVanGH
e722d699bf
usecases: material tweak layout and colors (#7793)
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-05 09:50:18 +01:00
FloVanGH
0ce68f2922
usecases demo: adjust material style for android (#7766)
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-04 09:05:35 +00:00
Olivier Goffart
da9fbebf18
esp-idf line by line renderer: use two line buffer
esp_lcd_panel_draw_bitmap is async so we should render in a different
buffer.
2025-02-25 21:37:36 +01:00
Olivier Goffart
c3e32c1665
Don't enable image-default-formats by default, remove compat-1-10 feature
We decided that the compatibility with people having enabled the extra
format in image 0.24 [1] is not worth it compared to the extra compilation
time most people gets by default when they don't need this feature.
(Which is less than 10% slower when the feature is enabled)

Since then there is no need for compat-1-10, remove it

[1] by depending directly on image 0.24 in their Cargo.toml and enabling
the features, which will not work with Slint 1.10 that now use image 0.25
2025-02-22 11:15:18 +01:00
FloVanGH
48ae567cb0
usecases: port to android (#7695)
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-22 08:10:31 +01:00
Olivier Goffart
c94d494169 printerdemo_mcu esp-idf: increase the stack size
Otherwise we stack overflow when expendin the queue
2025-02-18 18:47:46 +01:00
Olivier Goffart
109878cd81 WIP: attempt to update the usecase demo for the P4 2025-02-17 14:48:54 +01:00
autofix-ci[bot]
650e0ef775 [autofix.ci] apply automated fixes 2025-02-16 14:04:13 +00:00
Simon Hausmann
607d70b3fa Python: run mypy on the tests 2025-02-16 08:58:47 +00:00
FloVanGH
d3c56e1f1f
added usecases demo (#7603)
* [autofix.ci] apply automated fixes

* Update demos/usecases/esp-idf/README.md

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>

* Update demos/usecases/esp-idf/rust-toolchain.toml

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2025-02-12 08:59:33 +00:00
Simon Hausmann
39f25adb55 Fix running Python examples
Match the python version requirement with Slint, otherwise uv complains.
2025-02-10 08:05:44 +01:00
Simon Hausmann
c46846b3cb
Switch Python tooling over from pipenv to uv (#7574)
It's faster and easier to use.
2025-02-09 12:09:23 +01:00
Yuri Astrakhan
9621cae218 Auto-fixed clippy::needless_lifetimes
`__CARGO_FIX_YOLO=1` is a hack, but it does help a lot with the tedious fixes where the result is fairly clear.

See https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes

```
__CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::needless_lifetimes

cargo fmt --all
```
2025-02-07 09:20:49 +01:00
Yuri Astrakhan
6324b35e94 Auto-fixed clippy::needless_borrow
`__CARGO_FIX_YOLO=1` is a hack, but it does help a lot with the tedious fixes where the result is fairly clear.

See https://rust-lang.github.io/rust-clippy/master/index.html#/needless_borrow

```
__CARGO_FIX_YOLO=1 cargo clippy --fix --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::needless_borrow

cargo fmt --all
```
2025-02-07 09:02:45 +01:00
Yuri Astrakhan
4ae2627ade A few more format arg inlining
Used these commands and some manual searching

```
cargo clippy --fix  --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --all-targets -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2025-02-07 06:43:19 +01:00
Tasuku Suzuki
ad61d029e5 Demo: fix documentation link to mcu-board-support 2025-01-28 06:25:22 +01:00
Simon Hausmann
7ba44271af CI: Fix esp-idf build
Pin espressif/button to a version that compiles.
2025-01-24 15:07:19 +01:00
Olivier Goffart
8a5df27469
Update to Image 0.25 (#7365)
Added image-default-formats with all the format supported by image by
default, and enable that feature by default.
Also put that feature in compat-1-2 for compatibility with user that
have used image 0.24 with enabled features.
Make a new compat-1-10 feature that does not enable default format by
default

ChangeLog: upgraded image crate to 0.25, added a new cargo feature
to enable all image formats. (that feature is enabled by default with
compat-1-2, added compat-1-10 to disable it

Fixes https://github.com/slint-ui/slint/issues/7251
2025-01-14 16:31:05 +01:00
Olivier Goffart
c1bab16d6d Janitor: dependencies update 2025-01-14 10:48:46 +01:00
ogoffart
c83af3ca5c Bump version number to 1.10.0 2025-01-13 13:38:41 +00:00
Simon Hausmann
f5909807ea esp-idf: Rename SlintPlatformConfiguration's color_swap to byte_swap and deprecate color_swap_16 2025-01-13 14:27:37 +01:00
Tasuku Suzuki
346d1c2df3 Fix typos
Ran `typos .` and fixed all typos that do make sense.
https://crates.io/crates/typos
2025-01-13 08:35:20 +01:00
Olivier Goffart
3e94bd2167 Janitor: Remove trailing whitespaces from all files
`git grep -I -l -O'sed -i "s/[[:space:]]*$//"' -e ''`
2025-01-10 13:23:22 +01:00
Nathan Collins
4e709e192a Increase the printer demo back button TouchArea size
Make the back button easier to hit on embedded touch devices.
2025-01-09 19:42:12 +01:00
Nathan Collins
43ed37e5bb Make the printer demo dark mode button easier to hit
Previously, the dark mode button was especially hard to hit on
embedded devices.

The TouchArea of the SideBarIcon used for this button was much smaller
than the others. By exposing a new property on the SideBarIcon:
icon-colorize, we can customize the colorize behaviour of the Image,
as well as the source. This allows us to re-use the internal Image for
the dark mode button. This allows us to use the default width, height
and x position of the icon. The touch areas of the sidebar buttons are
now uniform.
2025-01-09 19:42:12 +01:00
Nathan Collins
d1be6f69fd printerdemo_mcu PrinterQueueItem uses a status string
Use a string instead of the JobStatus enum.

This makes the PrinterQueue code compatible with the printerdemo code,
allowing us to switch between mcu and non-mcu versions of this demo,
depending on what will fit on a device.

A string is used, rather than porting the non-mcu demo to an enum,
because the non-mcu demo needs to work with the cpp_interpreted demo.
2025-01-02 13:54:53 +01:00