Commit graph

12541 commits

Author SHA1 Message Date
Simon Hausmann
cf9601e270 Fix up license header checker to permit file with third-party copyright 2024-11-26 15:09:58 +01:00
Borys Boiko
8bbaedbbf3 MCU board support for Raspberry Pi Pico 2 2024-11-26 15:09:58 +01:00
Simon Hausmann
112608b6bd Fix Yocto CI nightly tests
Work around #6875 via pinning.
2024-11-26 14:49:19 +01:00
Olivier Goffart
e44f7d7a4c LSP: fix reloading loaded dependencies
The change in https://github.com/slint-ui/slint/pull/6747
invalidated the cache, but it was only reloaded when one of the dependent was reloaded.
We need to reload the cache for all open file so that LSP feature continue to work on
open document even if they get no changes
2024-11-26 14:27:56 +01:00
Tobias Hunger
6534ac9ab4 live-preview: Do not show components in selection popup
The component was mentioned when it was used in the code, so
filter out the frame for the component defintiton itself.
2024-11-26 10:30:18 +01:00
FloVanGH
56b2c280fd
docs: improved std-widgets snippets (#6913) 2024-11-26 09:00:54 +00:00
Nigel Breslaw
852f686607
(1.9 docs) Update the old std-widgets to the new mdx syntax 2024-11-26 10:01:46 +02:00
dependabot[bot]
511d49ea17 build(deps): bump @napi-rs/cli from 2.16.5 to 2.18.4
Bumps [@napi-rs/cli](https://github.com/napi-rs/napi-rs) from 2.16.5 to 2.18.4.
- [Release notes](https://github.com/napi-rs/napi-rs/releases)
- [Commits](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@2.16.5...@napi-rs/cli@2.18.4)

---
updated-dependencies:
- dependency-name: "@napi-rs/cli"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-26 09:01:23 +01:00
Tobias Hunger
326758b8d0 live-preview: Elide text in the selection popup 2024-11-25 22:52:41 +01:00
Nigel Breslaw
d834e031c1
1.9 Docs. Update std-widgets to new mdx syntax 2024-11-25 19:32:38 +02: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
Simon Hausmann
d1d7a26cb3
Add arm64 node packages (#6908) 2024-11-25 18:07:58 +01:00
dependabot[bot]
e5285e0607
build(deps): bump the playwright group with 2 updates (#6901)
Bumps the playwright group with 2 updates: [@playwright/test](https://github.com/microsoft/playwright) and [playwright](https://github.com/microsoft/playwright).


Updates `@playwright/test` from 1.48.2 to 1.49.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.48.2...v1.49.0)

Updates `playwright` from 1.48.2 to 1.49.0
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.48.2...v1.49.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: playwright
- dependency-name: playwright
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: playwright
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-25 17:56:17 +02:00
Simon Hausmann
408d816fc8
Fix Torizon demo image build
The top-level directory demos exists now, that clashed.
2024-11-25 16:14:54 +01:00
Simon Hausmann
9714bc3130
Prospective fix for Torizon demo image
Skip armv7 as it seems the Wayland-base images have... vanished?
2024-11-25 15:56:42 +01:00
dependabot[bot]
707d2ba215
build(deps): bump the astro group with 2 updates (#6893)
Bumps the astro group with 2 updates: [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight) and [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `@astrojs/starlight` from 0.29.0 to 0.29.2
- [Release notes](https://github.com/withastro/starlight/releases)
- [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md)
- [Commits](https://github.com/withastro/starlight/commits/@astrojs/starlight@0.29.2/packages/starlight)

Updates `astro` from 4.16.12 to 4.16.14
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@4.16.14/packages/astro)

---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: astro
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-25 16:41:48 +02:00
Nigel Breslaw
97edda9848
1.9 Docs update
Fix the low res banner on home page.
Add snippets to Timer.
Move Color details into Reference.
2024-11-25 13:02:51 +02:00
Nigel Breslaw
56d8984157
Allow dependabot to raise more PR's
The previous limit was 5 and this is now raised to 20
2024-11-25 12:09:26 +02:00
Nigel Breslaw
2f885fc840
Group dependabot playwright updates 2024-11-25 11:52:06 +02:00
Nigel Breslaw
3d65947d07
Group Astro and Starlight Dependabot updates 2024-11-25 11:36:36 +02:00
dependabot[bot]
e659a686ea build(deps-dev): bump @ava/typescript from 4.1.0 to 5.0.0
Bumps [@ava/typescript](https://github.com/avajs/typescript) from 4.1.0 to 5.0.0.
- [Release notes](https://github.com/avajs/typescript/releases)
- [Commits](https://github.com/avajs/typescript/compare/v4.1.0...v5.0.0)

---
updated-dependencies:
- dependency-name: "@ava/typescript"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 09:54:42 +01:00
dependabot[bot]
5c15e967c8 build(deps-dev): bump ava from 5.3.0 to 6.2.0
Bumps [ava](https://github.com/avajs/ava) from 5.3.0 to 6.2.0.
- [Release notes](https://github.com/avajs/ava/releases)
- [Commits](https://github.com/avajs/ava/compare/v5.3.0...v6.2.0)

---
updated-dependencies:
- dependency-name: ava
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 08:14:55 +01:00
Nigel Breslaw
a10cdf8048
More 1.9 docs
Show hide 'run in slintpad' button with same logic as copy paste code button.
Move std-widgets into reference.
Stop using code styling for h3 headers.
Make better use of Astro to reduce runtime javascript.
Make better use of Astro to ensure UI is built at build time and isn't dynamic at runtime.
2024-11-24 18:06:55 +02:00
Arnold Loubriat
12e7b8019d Update accesskit to 0.17 and accesskit_winit to 0.23 2024-11-24 13:36:06 +01:00
szecket
613b2982f1
experiment for highlighting UX (#6837)
* experiment for highlighting UX

this works really well but ideally goes back to what was selected before right click OR the selection actually moves rather than the hover color

* live-preview: Unselect in SelectionPopup again

When un-hovering some item to preview it's selection,
switch selection back to the original selection.

---------

Co-authored-by: Tobias Hunger <tobias.hunger@slint.dev>
2024-11-23 02:57:08 +13:00
Nigel Breslaw
47ab230cad
Setup a Playwright smoke test for Slintpad (#6874)
Remove cypress.
Use vite preview to serve the built bundle.
Setup playwright.
Run smoke test in CI.
2024-11-22 15:52:31 +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
Simon Hausmann
1888e58735 Add API to set the XDG app id
ChangeLog: Added function to set the XDG app id on Wayland/X11. This needs to be added with respective function names in the language sections.

Fixes #1332
2024-11-22 11:24:06 +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
Aurindam Jana
83ae918d76 Docs: Hero section styling 2024-11-21 22:45:47 +01:00
szecket
ba14285332
Szecket/cupertino colours (#6801)
* creating a lookup table of colors based on the set on apple docs
then selecting from these colors rather than always typing hex
also added an in property for setting selected color (future)

* splitting out method of changing selection colour for later

* forgot to pull CupertinoColors from import

* Squashed commit of the following:

commit 4924aa908d6e039a7bf1f79ede3dc7c26f71007f
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 17:31:45 2024 -0500

    use  defined Palette for states

commit 80711ee7188f37b1b29ce11855b6a636d7a39306
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 17:29:51 2024 -0500

    make control colour consistent with style and other controls

commit 1cfd39e6da6643600e8b553dfab2418c8552cdc4
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 13:58:07 2024 -0500

    selection of controls when focused is not current cupertino style and too strong

commit 4bf4ae6ad385e118687f752362b34e079c03fe22
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 13:42:58 2024 -0500

    make foreground color contrast when selected

* removing property that is only in cupertino
2024-11-22 08:18:27 +13:00
FloVanGH
6ebce7e5f4
cpp: added to_lowercase and to_uppercase to SharedString (#6869)
* cpp: added to_lowercase and to_uppercase to SharedString

* Update api/cpp/include/slint_string.h

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

* Update api/cpp/include/slint_string.h

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

* Update api/cpp/include/slint_string.h

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

* Update api/cpp/include/slint_string.h

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

* Update internal/core/string.rs

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

* Update internal/core/string.rs

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

* Update internal/core/string.rs

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

* Update internal/core/string.rs

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

* code review feedback

* Update api/cpp/tests/datastructures.cpp

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

* code review feedback

* Update api/cpp/include/slint_string.h

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

* Update api/cpp/include/slint_string.h

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

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-21 18:53:02 +00:00
Simon Hausmann
5f08e09810 Prospective CI fix
Don't try to install Qt 5.15 on Apple Silicone. This went unnoticed in the original change to the macos-14 images as somehow this was cached.
2024-11-21 17:41:10 +01:00
Simon Hausmann
2a54e88e64 Switch the regular CI builds to use apple silicon machines
(All but the C++ test, because Qt 5.15 binaries don't seem to have aarch64?)

Those tend to be faster than the Intel Macs.
2024-11-21 16:39:58 +01:00
Nigel Breslaw
20926e0fa7
1.9 docs - more work on the guide
Start to have common properties.
Tweak version selector.
Update image docs with examples.
2024-11-21 17:37:46 +02:00
Tobias Hunger
62804ff8e4 slintpad: Update dependencies
The rollup version bump fixes slintpad packaging for me.
2024-11-21 16:27:23 +01:00
Simon Hausmann
05a309c86c Clean up winit window creation on startup
Create the window adapter first without a window, and then resume. This deduplicates code and means that there's now only one single place where we resume/create the renderer and
accesskit adapters.
2024-11-21 13:27:30 +01:00
Simon Hausmann
ea6e5b2841 Fix accesskit adapter lifecycle
Let the adapter live as long as we have a winit window.
2024-11-21 13:27:30 +01:00
dependabot[bot]
92f4a291ea
build(deps): bump the vscode group with 2 updates (#6859)
Bumps the vscode group with 2 updates: [vscode-languageclient](https://github.com/Microsoft/vscode-languageserver-node/tree/HEAD/client) and [vscode-languageserver](https://github.com/Microsoft/vscode-languageserver-node/tree/HEAD/server).


Updates `vscode-languageclient` from 8.1.0 to 9.0.1
- [Release notes](https://github.com/Microsoft/vscode-languageserver-node/releases)
- [Commits](https://github.com/Microsoft/vscode-languageserver-node/commits/release/client/9.0.1/client)

Updates `vscode-languageserver` from 8.1.0 to 9.0.1
- [Release notes](https://github.com/Microsoft/vscode-languageserver-node/releases)
- [Commits](https://github.com/Microsoft/vscode-languageserver-node/commits/release/client/9.0.1/server)

---
updated-dependencies:
- dependency-name: vscode-languageclient
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: vscode
- dependency-name: vscode-languageserver
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: vscode
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-21 11:58:45 +02:00
dependabot[bot]
9226051e17
build(deps): bump jimp from 0.22.8 to 1.6.0 (#6860)
* build(deps): bump jimp from 0.22.8 to 1.6.0

Bumps [jimp](https://github.com/jimp-dev/jimp) from 0.22.8 to 1.6.0.
- [Release notes](https://github.com/jimp-dev/jimp/releases)
- [Changelog](https://github.com/jimp-dev/jimp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jimp-dev/jimp/compare/v0.22.8...v1.6.0)

---
updated-dependencies:
- dependency-name: jimp
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* Fix import

---------

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-21 11:58:24 +02:00
Olivier Goffart
b208691034 docs: fix typos in callback docs
Apply suggestions from code review

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2024-11-21 09:53:17 +01:00
Olivier Goffart
bc628116b6 LSP: test named callback arguments 2024-11-21 09:53:17 +01:00
Olivier Goffart
c0a123b6b9 Callback arguments names is no longer experimental
ChangeLog: named callback arguments
2024-11-21 09:53:17 +01:00
Olivier Goffart
6e91b9bc91 Give name to the builtin element's callback argument 2024-11-21 09:53:17 +01:00
Olivier Goffart
f225f79d49 compiler: Put the argument names in the Type
That simplifies things a bit and will allow to have names for builtin callback and functions
2024-11-21 09:53:17 +01:00
Simon Hausmann
b6baa4a587 Prospective fix for nightly job
Make the Slint sources (just Cargo.toml) available to the version determination step
2024-11-21 08:13:26 +01:00
Aurindam Jana
f02b35cf2b Nightly - extract version from Cargo.toml file 2024-11-21 07:13:31 +01:00
dependabot[bot]
75b843c14b
build(deps-dev): bump vite from 5.4.8 to 5.4.11 (#6861) 2024-11-21 08:06:37 +02:00
dependabot[bot]
ad8a23571a
build(deps): bump @biomejs/biome from 1.9.3 to 1.9.4 (#6863)
* build(deps): bump @biomejs/biome from 1.9.3 to 1.9.4

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/biomejs/biome/releases)
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md)
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.9.4/packages/@biomejs/biome)

---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* format:fix

* Ignore lint item

---------

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-21 00:28:19 +02:00
Nigel Breslaw
97652c3f29
Stop dependabot grouping large PR's
Dependabot will no longer group the npm PR's into 2 huge patch and major PR's. Instead it will now create about 15 small pr's for each of the seperate dependancies. Some things are grouped such as the vscode engine libs and we can group more.

The thinking here is that when this PR lands dependabot will close the old PR's and open 10-20 new ones. Pretty much most of which we can approve right away and will not see again. But now the troublesome ones such as the node api test framework which we don't want to upate for now can be closed. Dependabot will then ignore that framework till a new update comes out.
2024-11-20 23:07:38 +02:00