Commit graph

13596 commits

Author SHA1 Message Date
Nigel Breslaw
bd093b5119
docs: Tweak the tutorial (#7967) 2025-04-02 12:10:59 +02:00
Simon Hausmann
5760c1f168 Fix CI filter for xtask changes 2025-04-02 11:53:20 +02:00
Olivier Goffart
e5289af154 Introduce MenuSeparator
Fixes #7790
2025-04-02 11:50:45 +02:00
Simon Hausmann
3797ed79bc Fix crash when opening ComboBox
Don't do partial tree rebuilds if we know that a full rebuild is pending and that the current focus node may thus not be node mapped yet.

Amends 5ff5c0464c

Fixes #7854
2025-04-02 11:49:54 +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
Nigel Breslaw
51f7834f56
fix: Reszing live-preview could leave the color picker off screen (#8018) 2025-04-01 20:21:21 +03:00
Nigel Breslaw
60234663ad
Add light mode style to color picker (#8016) 2025-04-01 18:53:33 +03:00
Tobias Hunger
1822f95be8
live-preview: Implement backend code to handle tables of live data
This is just the backend side, no UI changes were done.
2025-04-01 17:36:50 +02:00
Simon Hausmann
0aa79a47f1 Apply the text input's type check also to the commit string from input
methods

Fixes #7705
2025-04-01 17:17:11 +02:00
Nigel Breslaw
03c74383dc
nigel/picker-polish (#8015) 2025-04-01 17:38:36 +03:00
Tobias Hunger
a7b6d3a13b lsp: Update ElementRcNode to return the full debug info 2025-04-01 16:10:10 +02:00
Nigel Breslaw
047377e94a
Simplify the live-preview widget layouts (#8011) 2025-04-01 15:50:05 +03:00
Nigel Breslaw
79382187ef
live-preview: Visual color picker (#7971) 2025-04-01 14:50:19 +03:00
dependabot[bot]
f930e363d1
build(deps-dev): bump cspell from 8.17.5 to 8.18.1 (#7992) 2025-04-01 10:08:24 +03:00
dependabot[bot]
387f144d40
build(deps): bump the react group with 2 updates (#8003) 2025-04-01 10:07:46 +03:00
dependabot[bot]
f3a2b19b59
build(deps-dev): bump esbuild from 0.25.1 to 0.25.2 (#7989) 2025-04-01 09:50:55 +03:00
dependabot[bot]
b4ffef7d39
build(deps-dev): bump vitest from 3.0.9 to 3.1.1 (#8005) 2025-04-01 09:49:35 +03:00
dependabot[bot]
719e8d4e3f
build(deps-dev): bump @lumino/default-theme from 2.1.8 to 2.1.9 (#8006) 2025-04-01 09:49:11 +03:00
dependabot[bot]
32566ce9c9
build(deps-dev): bump @lumino/widgets from 2.6.0 to 2.7.0 (#8007)
Bumps [@lumino/widgets](https://github.com/jupyterlab/lumino) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/jupyterlab/lumino/releases)
- [Changelog](https://github.com/jupyterlab/lumino/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jupyterlab/lumino/compare/@lumino/widgets@2.6.0...@lumino/widgets@2.7.0)

---
updated-dependencies:
- dependency-name: "@lumino/widgets"
  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-03-31 23:31:21 +03:00
Nigel Breslaw
0d3a06b4de
Dedupe lock file to remove old versions of Vite (#8009) 2025-03-31 23:07:27 +03:00
dependabot[bot]
2f6b57956f
build(deps-dev): bump vite from 6.2.3 to 6.2.4 (#8004)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.3 to 6.2.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.4/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  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-03-31 23:00:05 +03: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
Simon Hausmann
41acc93e71 Fix typo and silence cspell 2025-03-31 16:44:05 +02:00
Simon Hausmann
95aaf73653 doc: Add Python language tabs for various sections in the docs
cc #4139
2025-03-31 16:44:05 +02:00
Nigel Breslaw
9d5984dfa8
Dependabot should group react and react-dom (#8002) 2025-03-31 17:43:58 +03:00
dependabot[bot]
86e9a9dc80
build(deps): bump the starlight_astro group with 2 updates (#7988)
Bumps the starlight_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.32.4 to 0.32.5
- [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.32.5/packages/starlight)

Updates `astro` from 5.5.4 to 5.5.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.5.5/packages/astro)

---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
- 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-03-31 17:35:46 +03:00
Olivier Goffart
bf3c47f1fa C++: add code sample form model adapters
Fixes #4967
2025-03-31 16:13:45 +02:00
Simon Hausmann
bdae506fd6 Fixed Fixed multiplication to work with u16 2025-03-31 14:46:21 +02:00
Simon Hausmann
0841c71776 Implement Fixed multiplication via intermediate i64 2025-03-31 14:46:21 +02:00
Olivier Goffart
84261ee01c Avoid overflow in Fixed::mul 2025-03-31 14:46:21 +02:00
Simon Hausmann
54b188b0d7 Fix texture src offset precisions for TargetPIxelBuffer::Draw_texture
Implement Mul<Fixed> for Fixed instead of truncation.
2025-03-31 14:46:21 +02:00
Sam Cristall
c4a4913ce5 Experimental Software Renderer: fix texture offset for partial draws when hwaccel 2025-03-31 14:46:21 +02:00
Simon Hausmann
7a25256050 Fix wrong rect being used for target pixel buffer calls 2025-03-31 14:46:21 +02:00
Simon Hausmann
a5bc428509 Fix TargetPixelBuffer functions being called with regions not clipped against the dirty region
This got lost in the rebase/squash session of https://github.com/slint-ui/slint/pull/7685
2025-03-31 14:46:21 +02:00
Olivier Goffart
6010cf724c Hover on MenuBar should activate menu if a menu is already open
Fixes #7822
2025-03-31 14:06:24 +02:00
Olivier Goffart
fa650ed5ec Allow to have builtin item function to return a value
This does some refactoring to allow builtin item functions to return a
value:
 - builtin member functions are no longer BuiltinFunction, but they are
   just normal NamedReference
 - Move special case for them in the LLR/eval
2025-03-31 14:06:24 +02:00
Simon Hausmann
28b295b33d Revert "Attempt to work around llvm / clang-cl bug for Skia build"
This reverts commit 4fef985fbc.

As per https://github.com/rust-skia/rust-skia/pull/1114 this shouldn't be needed anymore.
2025-03-31 12:17:42 +02:00
Simon Hausmann
8d7d947e31 Update Skia
This aligns with Milestone 135, see https://github.com/rust-skia/rust-skia/releases/tag/0.84.0 for more details.
2025-03-31 11:12:27 +02:00
Simon Hausmann
a1c2e2f805
Fix up Python doc and template links
(Oops)
2025-03-29 21:08:01 +01:00
Simon Hausmann
e8ad03a357 doc: Add Python to the top-level README
cc #4139
2025-03-29 21:05:46 +01:00
Simon Hausmann
ed878f01ac Python: Add third-party licenses page to the docs
Fixes #6634
2025-03-29 18:04:30 +01:00
Olivier Goffart
aca30901be C++: put the parent in a weak pointer
Right now we always `lock().value()` it which is the equivalent of
`upgrade().unwrap()` in rust, this helps because it keeps the parent
alive when we are calling function in it.

Ideally we should also check that it wasn't deleted, but that's another
issue.

Fixes #7880
2025-03-28 17:24:14 +01:00
Simon Hausmann
ad5d769aee Introduce a CI file filter
... and use the figma-inspector as an initial test case.
2025-03-28 16:50:51 +01:00
Olivier Goffart
a80f14e7d8 Fix re-instentiating if elements when the condition is dirty
Fixes #3953
2025-03-27 15:37:07 +01:00
Nigel Breslaw
30dca1423e
demos: Simplify home auto weather component (#7964) 2025-03-27 15:12:52 +02:00
Olivier Goffart
3621fbcbd3
C++: fix mod with negative number again
`mod(-42, 2)` would return 2 instead of 0
2025-03-27 13:41:29 +01:00
Olivier Goffart
18b05d0734
Janitor: update derive_mire dependency 2025-03-26 20:49:50 +01:00
Tobias Hunger
14b55e54b4 live-preview: Do not pass on signals from "invisible" widgets
This stops e.g. the color widget filling in default values for
empty strings.
2025-03-26 12:54:40 +01:00
Nigel Breslaw
daba39e34b
Better dev commands for VScode development (#7951)
These changes make developing the vscode extension more productive.

- The lsp is compiled for Skia which on the Mac ensures the fonts render correctly and the UI will run at 120fps on displays that support high frame rates.
- The compiled plugin will open with an actual project. This saves at least 2 extra clicks to open some project everytime you compile the extension and want to see it.
2025-03-26 10:46:43 +02:00