Commit graph

1664 commits

Author SHA1 Message Date
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
Olivier Goffart
cfbcf0b1d7
Introduce Window::try_dispatch_event (#7313)
That is the same as Window::dispatch_event, but it reports an error
instead of panicking
2025-01-09 19:39:38 +01:00
Olivier Goffart
f645492240 Map example: do image decoding in a thread 2025-01-08 21:15:52 +01:00
Olivier Goffart
0248790228 Maps demo: cache the reqwest client
Building it is actually expensive
2025-01-08 14:49:08 +01:00
Olivier Goffart
120230825d Janitor: update dependency 2025-01-06 17:25:08 +01:00
Arnold Loubriat
9c25040b00 Set accessible-action-default on tabs 2025-01-06 09:30:11 +01:00
Arnold Loubriat
14466d1be6 Set accessible-label on tab panels 2025-01-06 09:30:11 +01:00
Arnold Loubriat
3304df0f82 Add AccessibleRole::TabPanel 2025-01-06 09:30:11 +01:00
Arnold Loubriat
60aacc8f82 Set accessible-item-selected on tabs 2025-01-06 09:30:11 +01:00
Arnold Loubriat
67f6e1a737 Set accessible-item-selectable on tabs 2025-01-06 09:30:11 +01:00
Arnold Loubriat
23e37ce4de Set accessible-item-index on tabs 2025-01-06 09:30:11 +01:00
Arnold Loubriat
38499962a9 Set accessible-item-count on tab bar widgets 2025-01-06 09:30:11 +01:00
Arnold Loubriat
c3cfa6044a Remove tab title label from the accessibility tree 2025-01-06 09:30:11 +01:00
Simon Hausmann
a25a17ea29 Updated proc-macro-patch based on upstream feedback 2025-01-05 20:36:17 +00:00
Simon Hausmann
852b6c8ccc Remove commented out crate specs 2025-01-05 18:23:06 +00:00
Simon Hausmann
b1c35b2a3a Fix logic error in proc-macro-crate patch 2025-01-05 18:22:07 +00:00
Simon Hausmann
db5d9063fc Simplify khronos_api patch for Bazel build
Use relative paths to CARGO_MANIFEST_DIR in build.rs. Patch is
also submitted upstream at https://github.com/brendanzab/gl-rs/pull/549
2025-01-05 09:50:41 +00:00
Simon Hausmann
ab37bc4b61 Remove the lock file from the Bazel build
As long as we're building from slint git, there's no point in a lock
file, as dependencies may get bumped in the Cargo.toml files.
2025-01-05 09:24:54 +00:00
Simon Hausmann
f5ca7a071c Make the Bazel build more robust
Ashpd doesn't compile out of the box because it uses zvariant-derive's
macro, which uses proc-macro-crate to find out if the zvariant types are
in `zvariant::` directly or indirectly via `zbus::zvariant::`. This is
checked by using proc-macro-crate to parse ashpd's Cargo.toml to see if
there's a dependency on zbus or zvariant, and if this fails the fallback
of zvariant-derive is to just use `zvariant::`. That's why before this
patch the Bazel build was injecting the zvariant dependency.

Instead of injecting this dependency to ashpd, it's better to fix
proc-macro-crate. This is less error prone in terms of version encoding
and it feels like the right approach. So the applied patch is also
submitted upstream as a PR.
2025-01-05 09:24:14 +00:00
Simon Hausmann
7212ecb2a8 Bazel: Build from git without patches 2025-01-04 12:43:53 +00:00
Simon Hausmann
2d4d4f608f Upgrade to Slint 1.9.0 2025-01-04 08:51:47 +00:00
Simon Hausmann
261c241eac Update to latest rules_rust release 2025-01-03 15:45:06 +00:00
Simon Hausmann
a2ab82a8de Remove i-slint-backend-testing and i-slint-backend-winit dependencies
Those aren't needed
2025-01-03 14:56:46 +00:00
Simon Hausmann
2cc99af43c Re-generate Bazel lock file with my local build... 2025-01-03 14:56:46 +00:00
Simon Hausmann
c5565305a5 Add copyright notices and SPDX license identifiers 2025-01-03 14:55:04 +01:00
Andrew Wagner
760106bcd5 Start adding CICD config 2025-01-03 14:55:04 +01:00
Andrew Wagner
2bf530588e Add more information on building with bazel and pin the bazel version in .bazelversion 2025-01-03 14:55:04 +01:00
Andrew Wagner
999c52fa7c Add a README.md file to show how non-bazel users how to build 2025-01-03 14:55:04 +01:00
Andrew Wagner
65ce94949c Add an example for building slint code in bazel 2025-01-03 14:55:04 +01:00
ogoffart
f309a551b5 Bump version number to 1.9.2 2024-12-30 10:18:16 +00:00
Tasuku Suzuki
95d29e9b90
dial example: Restrict angle to the defined range and refine angle calculation (#7181)
- Enforce that the angle stays within the specified start and end angles.
- Transition from using the initial touch angle as a reference to using the previous angle.
2024-12-20 19:39:28 +02:00
Tasuku Suzuki
2edb59d71b
dial example: simplify source code (#7179)
- Eliminated `in` qualifier from properties not used as inputs for clarity.
- Removed the default lightOff state as it served no purpose.
- Removed Rectangles used as containers for simplification.
2024-12-20 09:22:38 +02:00
Tasuku Suzuki
8719c0e5ec
dial example: rotate dial only if initial touch is within its bounds (#7142)
Add a boundary check to ensure that rotation only occurs when the
first pointer contact is inside the circular dial area.
If the initial touch is outside, the dial remains stationary.

Mouse cursor is set properly to show current status.
2024-12-19 16:55:12 +02:00
autofix-ci[bot]
a715fb9fa0 [autofix.ci] apply automated fixes 2024-12-19 15:26:29 +01:00
Simon Hausmann
d90d882ede Move failing image-filter type check
Since we don't build the node.js API anymore, we can't run this as part of pnpm type-check. Move it to the nodejs test. It runs very quickly and we've already built the Node.js port by then.

Amends 028884926a
2024-12-19 15:13:10 +01:00
aurindam
dc3f29b6da Bump version number to 1.9.1 2024-12-19 12:57:19 +00:00
Olivier Goffart
2a2a53b758 Update esp-hal dependency 2024-12-17 14:53:55 +01:00
Olivier Goffart
60c10213d2
Remove LayoutSpec and undeprecate StyleMetrics.layout-* properties (#7069)
StyleMetrics is the right name for these
2024-12-16 14:52:28 +01:00
Simon Hausmann
0d36f88152 Revamp BackendSelector API
Based on API review, PlatformBuilder becomes BackendSelector with
a slightly smaller API surface but more options, such as selecting
Metal or Vulkan rendering.
2024-12-16 13:06:05 +01:00
Olivier Goffart
fe428b376d janitor: fix slint warning in example
```
warning: Linking input properties to input output properties is deprecated
 --> /home/olivier/slint/examples/opengl_underlay/scene.slint:8:41
  |
8 |     in property <bool> rotation-enabled <=> apply-rotation.checked;
  |                                         ^
```
2024-12-07 08:34:38 +01:00
Nigel Breslaw
92534a8a27
1.9 Organise docs folder. (#7005)
Move astro files to docs/astro
2024-12-05 15:40:04 +02:00
Nigel Breslaw
4c1ececc67
1.9 docs: Flesh out docs guide 2024-12-05 00:19:37 +02:00
FloVanGH
901afde11f
api review: callback parameters and properties name adjustements 2024-12-02 16:22:39 +00:00
Arnold Loubriat
f105519071 Add accessible labels to the CRUD example 2024-12-01 17:41:17 +01:00
Simon Hausmann
8b18bf6ea6 Remove the s2 kaluga kit from the esp-idf nightly tests
This configuration has been causing build issues for many weeks now and this isn't something we've ever seen in production.

cc #6713
2024-11-26 15:16:31 +01:00
Borys Boiko
8bbaedbbf3 MCU board support for Raspberry Pi Pico 2 2024-11-26 15:09:58 +01:00
dependabot[bot]
888fc275a6
build(deps): bump typescript from 5.2.2 to 5.7.2 (#6897)
NOTE: This updates typescript to 5.72 for all projects except api/node which cannot be updated
till typedoc is also updated.

* build(deps): bump typescript from 5.2.2 to 5.7.2

Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.2.2 to 5.7.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.2.2...v5.7.2)

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

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2024-11-25 19:32:07 +02:00
FloVanGH
a16d2dad6f
gallery: added filter example (#6847)
* Update examples/gallery/main.cpp

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Update examples/gallery/main.cpp

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>

* Avoid conversion to std::string as SharedString also offers a string_view and std::string::find takes a StringViewLike

* Update examples/gallery/main.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-22 11:56:54 +01:00
Tobias Hunger
10edaaa7f1 reuse: Update to a newer reuse version
Update from reuse 2 as packaged by Ubuntu to reuse 5
from pypi.

This moves configuration from .reuse/dep5 into REUSE.toml.

Make sure to only have one entry per license with all
the file under that license in one place.

This does change some licenses in demos and examples from
our triple-license to MIT. I *think* those were meant to
be under MIT all along as all docs and examples are supposed
to be MIT.
2024-11-22 09:24:39 +01:00