Commit graph

13307 commits

Author SHA1 Message Date
Olivier Goffart
ce7a785138
Qt: don't clear selection when the window gain focus
(or popup menu gets closed)

We receive an empty `QInputMethodEvent` when the window gets active
and we should not have a replacement range if there is nothing to
replace, otherwise we clear the selection
2025-02-11 18:10:09 +01:00
Olivier Goffart
22317d29b4
Qt: Fix event forwarding for native popups
So that popup menus can handle hover events.

This also remove some of the code in the qt backend that used the
private API
2025-02-11 17:11:43 +01:00
Nigel Breslaw
e3a0e1dc93
PNPM 'override' old esbuild versions. (#7605)
0.24 causes security warnings.
2025-02-11 16:31:08 +02:00
Nigel Breslaw
45cd9a9719
Upgrade PNPM 9.x to 10.3 (#7602)
This also recreates the lock file in an attempt to clear out the old version of esbuild that is causing alerts.
2025-02-11 15:00:43 +02:00
Olivier Goffart
4f4bc787fb
esp-idf: deprecate old slint_esp_init variant and restore 1.6 compatibility
Only support the one that take a configuration

ChangeLog: esp-idf: Deprecate old version of `slint_esp_init` and restore 1.6 behavior with regards to color swap

Fix: #7597
2025-02-11 12:54:39 +01:00
Olivier Goffart
ceb7ea00f5
Qt: don't call deleteLater on the main widget
Otherwise we crash at exit

Fixes #7570
2025-02-11 12:53:53 +01:00
Nigel Breslaw
f68f943a61
Possible fix for esbuild security update (#7601) 2025-02-11 13:42:48 +02:00
Nigel Breslaw
bfcd56de0d
Figma Plugin: Handle colors that are part of common styles and border-radius (#7588) 2025-02-11 13:25:14 +02:00
dependabot[bot]
e21efee376
build(deps-dev): bump esbuild from 0.24.2 to 0.25.0 (#7582) 2025-02-11 13:13:15 +02:00
Tobias Hunger
33928e4958 lsp: Do not send status nmessages
Nigel says those are annoying as they tend to overstay
their welcome.
2025-02-11 11:29:01 +01:00
Olivier Goffart
c85b20d431 ContextMenu on the LineEdit and TextEdit
With usual copy/paste entries

We need to make sure that showing the popup window don't clear the
selection in the TextInput which happens if the TextInput gets a
FocusOut event.
2025-02-11 10:30:11 +01:00
Simon Hausmann
9195f3e265 Fix build with renderer-skia-vulkan
We always offer the Skia software renderer fallback in
`new_try_vulkan_then_opengl_then_software`, so make sure that the drm
and mmemap dependencies are activated, needed to compile swdisplay.rs.
2025-02-11 09:15:38 +00:00
dependabot[bot]
3fa315489e
build(deps-dev): bump vscode-uri from 3.0.8 to 3.1.0 in the vscode group (#7579)
Bumps the vscode group with 1 update: [vscode-uri](https://github.com/microsoft/vscode-uri).


Updates `vscode-uri` from 3.0.8 to 3.1.0
- [Release notes](https://github.com/microsoft/vscode-uri/releases)
- [Commits](https://github.com/microsoft/vscode-uri/compare/v3.0.8...v3.1.0)

---
updated-dependencies:
- dependency-name: vscode-uri
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: vscode
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-11 11:06:52 +02:00
dependabot[bot]
01f0bd6404
build(deps-dev): bump vite from 6.0.11 to 6.1.0 (#7583)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.0.11 to 6.1.0.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.1.0/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  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-02-11 10:50:58 +02:00
dependabot[bot]
938634707d
build(deps-dev): bump typedoc from 0.27.6 to 0.27.7 (#7584)
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.27.6 to 0.27.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.27.6...v0.27.7)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  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-02-11 10:50:40 +02:00
Olivier Goffart
2e4353d3c9 Implement closing of popup menus 2025-02-10 20:27:43 +01:00
David Haig
7fe86d23e9 Change touchscreen i2c to blocking and add comments 2025-02-10 16:56:15 +01:00
Simon Hausmann
85bcfb6c25 Remove trailing whitespace
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2025-02-10 16:56:15 +01:00
David Haig
76f4283ce1 Ensure correct target installed for cargo check mcu-embassy 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
f56100b9ed Fix continuous integration failure 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
479bee7c87 Add support for exposing PopupWindow instances in the element tree when active 2025-02-10 13:57:55 +01:00
Simon Hausmann
8372cd6412
Convey clipping of children to accesskit (#7587)
and while at it, move is_clipping_item() that casts a function of the ItemVTable.

Fixes #2341
Fixes #7382
2025-02-10 13:42:10 +01:00
Olivier Goffart
4a5fcb27af Preview: filter invisible items out from the selection popup
Filter out elements that are clipped out (invisible or other pages) from
the selection popup
2025-02-10 13:38:43 +01:00
dependabot[bot]
6de6f354eb
build(deps): bump astro from 5.2.3 to 5.2.5 in the starlight_astro group (#7580)
Bumps the starlight_astro group with 1 update: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `astro` from 5.2.3 to 5.2.5
- [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@5.2.5/packages/astro)

---
updated-dependencies:
- dependency-name: astro
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 11:03:55 +02:00
dependabot[bot]
49049eb24f
build(deps): bump pnpm/action-setup in the github-actions group (#7578)
Bumps the github-actions group with 1 update: [pnpm/action-setup](https://github.com/pnpm/action-setup).


Updates `pnpm/action-setup` from 4.0.0 to 4.1.0
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 11:01:28 +02: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
Arnold Loubriat
9375f9a08b Track the accessible-delegate-focus property of the focused item 2025-02-09 21:36:52 +01:00
Simon Hausmann
5564972e82
Doc wrong Code fence and work around pdoc bug
It seems that with two subsequent fences the second one isn’t rendered.
2025-02-09 20:51:00 +01:00
Simon Hausmann
ddfb18b3cc
doc: fix bullet numbering 2025-02-09 20:32:21 +01:00
Olivier Goffart
aa234c2a6e Material SpinBox: Fix binding loop in some layout
Having the width depending on the height is asking for trouble because
usually it is the height that depends on the width, so if the SpinBox is
getting in a complex layout, it causes a binding loop.
Workaround the problem by using the computed height.

This should fix the gallery build with the material style
(which is currently making the nightly build fail)
2025-02-09 16:31:40 +01:00
Simon Hausmann
94c655731f
Add Python typings for Rust declared types (#7575)
This comes with a bump of the Python version to 3.11
due to the need for typing.Self.
2025-02-09 16:06:34 +01:00
Simon Hausmann
30aefd4957 Python: Some Image docs 2025-02-09 13:50:26 +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
Simon Hausmann
e3b1b6a9d8 Set up display for import to work 2025-02-09 00:04:30 +01:00
Simon Hausmann
355a343a98 Build Python API docs in the CI 2025-02-09 00:04:30 +01:00
Simon Hausmann
74f1674c57 Python: Make the re-exported classes show up property in the documentation
The variable assignment trick doesn't work for pdoc. Instead, fix the name properly and import them as re-export cleanly.
2025-02-09 00:04:30 +01:00
Simon Hausmann
08fc503f68 Add scaffolding for Python API docs 2025-02-09 00:04:30 +01:00
Simon Hausmann
a8909dfbfa Revert "stm32: Fix compilation with newer STM BSPs"
This reverts commit af2f8a5ab8 as it
breaks the build with the STM32H7 BSP. This needs to be solved
differently.
2025-02-08 23:18:08 +01:00
Yuri Astrakhan
2567880db8 Fix clippy::empty_line_after_doc_comments 2025-02-08 11:39:18 +01:00