Commit graph

1664 commits

Author SHA1 Message Date
Simon Hausmann
cdb50aed7c Remove duplicated Cargo profile
(duplicated from workspace Cargo.toml)
2025-03-18 16:21:00 +01:00
Simon Hausmann
0b2bccddec Remove workaround for mcu-embassy example having its own workspace
Amends commit c47074e698
2025-03-18 13:34:58 +01:00
Simon Hausmann
8f0b69c95a stm32u5: Remove dummy DummyLoopProxy
That's better than `unimplemented!()`
2025-03-18 13:02:01 +01:00
Simon Hausmann
c47074e698 Initial support for the stm32u5g9j-dk2 2025-03-18 13:02:01 +01:00
Simon Hausmann
2ac9e7cc47 Comment out support for the ESP32 S3 Box for use with Rust
We're going to revive this with support for the S3-Box-3 next.
2025-03-18 13:02:01 +01:00
Simon Hausmann
e823acaa48 Remove support for the ESP32 S2 Kaluga board 2025-03-18 13:02:01 +01:00
ogoffart
178cf21c2e Bump version number to 1.11.0 2025-03-18 09:48:22 +00:00
dependabot[bot]
efb4d23f38
build(deps): bump typescript from 5.7.3 to 5.8.2 (#7780)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.3 to 5.8.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 16:39:14 +02:00
Simon Hausmann
7239d47c85 Remove leading whitespace 2025-02-28 11:54:17 +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
Olivier Goffart
39191e5acd
Menu API changes
`ContextMenu` -> `ContextMenuArea`

`ContextMenu` must have a `Menu` child.
`MenuItem` can no longer be put dirrectly in `MenuBar` and can no longer
have children
`Menu` is used now for sub menus
2025-02-21 16:03:47 +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
David Haig
7fe86d23e9 Change touchscreen i2c to blocking and add comments 2025-02-10 16:56:15 +01:00
autofix-ci[bot]
a34220558b [autofix.ci] apply automated fixes 2025-02-10 16:56:15 +01:00
David Haig
765e1eee13 Fix copyright ci failures 2025-02-10 16:56:15 +01:00
David Haig
08bc17511c Fixed issue with conflicting embassy-time-driver 2025-02-10 16:56:15 +01:00
David Haig
cd1acf58e1 Update readme with latest probe-rs install instructions 2025-02-10 16:56:15 +01:00
David Haig
9bf8e8d337 Further attempts with dependencies 2025-02-10 16:56:15 +01:00
David Haig
73162c2314 Fixed up dependencies 2025-02-10 16:56:15 +01:00
David Haig
08783b0ec5 Updated copyright notice and embassy dependency 2025-02-10 16:56:15 +01:00
David Haig
2943e5e359 Attempt to fix CI issue with mcu-embassy check 2025-02-10 16:56:15 +01:00
David Haig
d95fc2a18d Added mcu-embassy tests to CI 2025-02-10 16:56:15 +01:00
David Haig
f2eaa4b8ac Fixed some CI issues 2025-02-10 16:56:15 +01:00
David Haig
a541116c5f Add embassy microcontroller example demonstrating async 2025-02-10 16:56:15 +01: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
Olivier Goffart
ca2803fe73
Gallery: Dummy menu bar
Add dummy menu bar in the gallery since the gallery should ideally show all widgets, including a menu bar
2025-02-07 19:54:00 +01:00
Arnold Loubriat
0a7d7907b3
Fix Gallery example sidebar accessibility (#7559)
The accessible-delegate-focus property is currently confused by the presence of the label at the top, since it expects an index in the accessible children list. Therefore the focused item would be off by one as far as assistive technologies are concerned.

I also had to move the FocusScope because accessible-delegate-focus is searched for in the ancestors of the element which is focused.

The tablist is now properly reported. Unfortunately these changes raise a more confusing bug: focus changes inside the tablist (using the arrow keys) don't seem to trigger a rebuild of the tree. When a tab is selected it is properly reported though. Even stranger: the focus changes are triggered if the focus is on the sidebar, when the toplevel window gains focus. Tabbing out of the sidebar and back on triggers the bug again though.
2025-02-07 09:11:11 +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
43ede0b1c3
pico_st7789: Turn on backlight after first frame is drawn (#7482) 2025-01-29 18:41:38 +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
Simon Hausmann
7d69b8ca04 Remove bazel build example again
We'll keep the patches that help with it, of course, but downstream that we were supporting Bazel for dropped its use.
2025-01-23 07:27:02 +01:00
Gašper Zajc
00580a7483 Tested gstreamer example on Windows and updated README.md 2025-01-17 17:37:15 +01:00
Simon Hausmann
2edd97bf8b gstreamer-player: Make the EGL integration easier to re-use
By not requiring a pipeline and having a lower-level SlintOpenGLSink type,
it's easier to re-use this code in application code that for example doesn't use playbin.
2025-01-17 14:14:02 +01:00
Simon Hausmann
6d475603d2 Rework the gstreamer example
- Play a real video, not just the test source.
- Provide an egl integration on Linux.
  Based on commit c3596baa0c, further fixed
  up by Sebastian Dröge <sebastian@centricular.com>
2025-01-17 11:54:43 +01:00
Simon Hausmann
438ebae52e gtreamer-player: minor cleanup
Since we're in a callback invoked from within the event loop, we don't
need to us upgrade_in_event_loop().
2025-01-17 07:32:50 +00:00
OwerPlay
ae25c64ac0 Implemented Play/Pause for gstreamer example 2025-01-17 08:28:15 +01:00
Simon Hausmann
37ed7e6129 Fix Bazel build
Work around rav1e's use of the built crate panicing if certain cargo
provided environment variables aren't set. These don't seem to be needed
by rav1e, it merely wants the version, but still...
2025-01-15 08:27:48 +00: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
dependabot[bot]
870805ec19 build(deps): bump typescript from 5.2.2 to 5.7.3
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.2.2 to 5.7.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.2.2...v5.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-14 15:25:56 +01:00
Simon Hausmann
4aa81b671a Make glow a Cargo workspace dependency 2025-01-14 14:24:41 +01:00
Simon Hausmann
37be696cd6 Bump glow and femtovg versions 2025-01-14 14:24:41 +01:00
Olivier Goffart
404956f919 Update mipidsi dependency 2025-01-14 14:02:44 +01:00
Olivier Goffart
6e9c991933 Janitor: cargo fmt 2025-01-14 11:24:15 +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
Simon Hausmann
d7b44d2686 Bump gstreamer dependencies 2025-01-13 12:45:38 +01:00