Commit graph

1664 commits

Author SHA1 Message Date
Olivier Goffart
c7424a6300
bevy example: Update screenshot in readme 2025-06-02 13:26:23 +02:00
Olivier Goffart
2ee0904169 uefi demo: Fix compilation in master
After 80de96488a we now detect binding
loop if the window's layout depends on itself
2025-05-26 15:44:30 +02:00
Tasuku Suzuki
30981ca672 muc-board-support: doc - fix tasks.json 2025-05-23 11:40:25 +02:00
Nigel Breslaw
182a4dc58a
Tweak Bevy demo to have a transparent background (#8481)
This shows that Bevy can be composed into a Slint app beyond just taking over a rectangular area. Slint can also be used underneath Bevy rendered objects.
2025-05-20 11:31:16 +03:00
Tasuku Suzuki
1424dbfe7b MCU pico2: increase heap size
Some checks are pending
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
400 kB would be alright because pico 2 has 520 KB on-chip SRAM

See https://github.com/slint-ui/slint/discussions/8477
2025-05-20 07:45:22 +02:00
Simon Hausmann
35c972c227
Add example of rendering a Bevy scene into Slint (#8380)
Some checks are pending
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
2025-05-19 15:25:40 +02:00
Tasuku Suzuki
9bf36d6120 Gallery: Add Japanese translation
Some checks are pending
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, 1.82) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, 1.82) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
2025-05-15 22:09:14 +02:00
Montel Laurent
4cd6f92013
Hide action when widget is disabled
ChangeLog: TextEdit/LineEdit : disable context menu action when the widget is disabled or read-only
ChangeLog: Added ContextMenuArea::enabled
2025-05-02 13:20:46 +02:00
Simon Hausmann
2f2478d1ea WGPU: Clean up public API
- Create a `slint::wgpu_24` module
- Re-export `wgpu` in it
- Place the WGPU config types used by the `BackendSelector::require_wgpu_24` function in it, and remove the 24 infix.

As an upside, this also adds the feature guard to the docs at least for the `wgpu_24` module.
2025-04-30 15:54:06 +02:00
ogoffart
e0099ea500 Bump version number to 1.12.0 2025-04-30 13:27:50 +00:00
Simon Hausmann
8f68ededcf Gallery Example: Make the data tab work
Provide a default unfiltered/unsorted view of the table, so that
editing the data in the data tab changes.
2025-04-30 14:50:29 +02:00
Simon Hausmann
33581182ef backend-selector: Add the ability to configure WGPU
The `require_wgpu_24` function accepts either a fully setup WGPU, or one
can configure individual aspects such as features/limits.

The wgpu_texture example uses this to add push constants to the required
features and thus eliminates the need for uniform buffers.
2025-04-29 17:46:57 +02:00
Simon Hausmann
da5e7d5b22 WGPU: Add support for using WGPU textures in Slint
This adds a `unstable-wgpu-24` feature that exposes WGPU types in the
GraphicsAPI enum, adds `require_wgpu_24()` to the backend selector,
and adds a conversion from `wgpu::Texture` to `slint::Image`.

The `require_wgpu_24()` function in the selector will be extended in the
future (before the next release) to permit specifying additional aspects
of the WGPU configuration.

Co-Authored-By: Olivier Goffart <olivier.goffart@slint.dev>
2025-04-29 17:46:57 +02:00
Tobias Hunger
dbf8c9e16a
examples: Do not fail todo example test (#8293)
* examples: Do not fail `todo` example test

... when `SLINT_ENABLE_DEBUG_INFO` is not set.

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2025-04-28 13:20:52 +02:00
Montel Laurent
3cea092fd2
Gallery example: Disable button widget too (#8205) 2025-04-28 11:05:51 +02:00
Olivier Goffart
387a106850 Fix embassy build after dependency updates 2025-04-23 14:11:22 +02:00
Olivier Goffart
680df91f7f Update mcu-embassy dependencies
Most importently env_logger that depends on a deprecated atty that is
raising security issues
2025-04-23 13:28:23 +02:00
Laurent Montel
63756e90cb Add missing include(FetchContent) 2025-04-18 15:27:37 +02:00
Simon Hausmann
e39086c45e Remove unused tt21100 dependency 2025-04-15 11:32:27 +02: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
autofix-ci[bot]
b963046943 [autofix.ci] apply automated fixes 2025-04-15 11:32:27 +02:00
Juraj Michálek
ff876f35ac muc-board-support: esp32-s3-box-3 use Instant::now(), remove timer 2025-04-15 11:32:27 +02:00
autofix-ci[bot]
bfefe72348 [autofix.ci] apply automated fixes 2025-04-15 11:32:27 +02:00
Juraj Michálek
cc76e8f1d7 muc-board-support: doc - update README 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
Juraj Michálek
4caf947399 muc-board-support: esp-hal dependency only for esp32-s3-box-3 2025-04-15 11:32:27 +02:00
Juraj Michálek
a73b5668ba esp32-s3-box clean up 2025-04-15 11:32:27 +02:00
Juraj Michálek
5712704b6b add timer handling 2025-04-15 11:32:27 +02:00
Juraj Michálek
eeb2f2602c use default gt911 crate without modification 2025-04-15 11:32:27 +02:00
Juraj Michálek
6573b12f9a use fallback address 2025-04-15 11:32:27 +02:00
Juraj Michálek
bdf40967da implement esp32-s3-box initialization correction from ESP-IDF 2025-04-15 11:32:27 +02:00
Juraj Michálek
718a71e4da add delay handling to the driver 2025-04-15 11:32:27 +02:00
Juraj Michálek
4db101fd56 remove driever modification 2025-04-15 11:32:27 +02:00
Juraj Michálek
a4312fd67f fix initialization sequence 2025-04-15 11:32:27 +02:00
Juraj Michálek
cd0274f353 graceful handling of touch 2025-04-15 11:32:27 +02:00
Juraj Michálek
48172c995b add esp32-s3-box-3 with gt911 touch 2025-04-15 11:32:27 +02:00
Juraj Michálek
fafde05338 initial migration to esp-hal-1.0.0 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
dependabot[bot]
2feb048fa5
build(deps): bump typescript from 5.8.2 to 5.8.3 (#8069)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.2 to 5.8.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 11:00:19 +03:00
Simon Hausmann
93701162d5 Upgrade defmt to Version 1.0
0.3.100 has been published and is effectively 1.0
2025-04-07 11:55:48 +02:00
Olivier Goffart
e5289af154 Introduce MenuSeparator
Fixes #7790
2025-04-02 11:50:45 +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
7b8ef71ddd link_section needs unsafe with edition 2024
Second part of #7998
2025-03-31 17:35:22 +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
Olivier Goffart
18b05d0734
Janitor: update derive_mire dependency 2025-03-26 20:49:50 +01:00
Oleh Kulish
58447c99e7
Add error handling for the slide puzzle example (#7917)
* Add impl From<PlatformError> for JsValue
2025-03-25 10:07:16 +01:00
Olivier Goffart
029857291b
Update instructions for ffmpeg on Windows
Untested, but according to #4621

Closes #4621
2025-03-24 20:15:52 +01:00
Simon Hausmann
8248cc886c Simplify defmt::println call for debug_log implementation 2025-03-20 13:51:47 +01:00
Simon Hausmann
ce2cd01383 Separate the stm32 independent part of the slint::platform::Platform impl from stm32 specific bits
... by moving them into an embassy backend to be shared in the future
with other board support packages.
2025-03-20 13:51:47 +01:00