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.
- 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.
- 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.
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.
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
Based on API review, PlatformBuilder becomes BackendSelector with
a slightly smaller API surface but more options, such as selecting
Metal or Vulkan rendering.
* 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>
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.