Olivier Goffart
e8012c70d0
Fix MenuBar on android
...
The ContextMenuArea on android intercepts clicks to trigger on long clicks
and this prevent the MenuBar's TouchArea to work properly
Fixes #8353
2025-05-09 08:58:12 +02:00
Tasuku Suzuki
eb1ae3d3bc
Home Automation: Improve player's play button ( #8405 )
2025-05-08 13:37:12 +03:00
Tasuku Suzuki
0051c95b1b
Add real-time clock to home automation demo ( #8390 )
2025-05-08 13:19:03 +03:00
Simon Hausmann
6ba3b8586e
FemtoVG: Fix occasional panic on shutdown with wgpu
...
When closing the wgpu_texture example on Linux with Wayland,
we first suspend() the renderer and then drop it. Suspend() will
do the right thing and invoke the RenderingState::ReanderingTeardown
notifier, but the subsequent drop will try to do the same thing again,
and then we don't have wgpu device/instance/etc. anymore and the
attempt of unwrapping the graphics API panics.
2025-05-07 14:41:22 +00:00
Olivier Goffart
9a6458dd26
Issue templates: Make use of issue types
2025-05-07 16:01:41 +02:00
Olivier Goffart
3a9ae8af0e
Remove CompositionMode enum
...
It was used in the previous TargetPixelBuffer interface, but this is no
longer the case
2025-05-07 15:49:58 +02:00
Nigel Breslaw
d30dbeab58
Use specific versions with Mise ( #8399 )
...
Mise keeps freezing. One suggestion was to list specific versions and not use "latest" https://github.com/jdx/mise/issues/4302
2025-05-07 14:10:05 +03:00
Olivier Goffart
b98fd065c5
Update Changelog
2025-05-07 12:19:19 +02:00
Olivier Goffart
31867fad61
compiler: Reject comparison on unsupported types
...
The compiler was accepting the comparison of types such as color, or
struct, and then later we'd get rust compilation error or interpreter
panic.
Example seen in the crash reporter:
`internal/interpreter/eval.rs:257:35`
```
unsupported Value::Brush(SolidColor(Color { red: 0, green: 0, blue: 0, alpha: 0 })) ≤ Value::Brush(SolidColor(Color { red: 255, green: 0, blue: 0, alpha: 255 }))
```
Note that some code hapenned to compile with rust or C++.
For example, comparison of bool, or anonymous struct (represented as
tuples), or color represeted as int)
So technically this is a breaking change.
But this should be fine as this was not working in the interpreter and
this is a bug fix.
ChangeLog: Slint compilation error for comparison of types that can't be
compared with less or greater operator.
2025-05-07 11:39:27 +02:00
Tasuku Suzuki
d85f11758c
Home Automation: fix color of month ( #8393 )
2025-05-07 11:30:47 +03:00
Tasuku Suzuki
37ad2445a7
Fix time display in home automation demo ( #8392 )
...
Show 12 instead of 0 for noon/midnight and fix AM/PM logic
2025-05-07 11:27:34 +03:00
Olivier Goffart
9289940371
Prospective panic fix in the rust generated code
...
From the v1.11.0 crash reporter:
There is a panic in
`target/x86_64-unknown-linux-gnu/release/build/slint-lsp-8494405be069a534/out/main.rs:115729:64`
```
called `Result::unwrap()` on an `Err` value: Other("Could not initialize any renderer for LinuxKMS <REDACTED: user-file-path> from Skia renderer: Error opening device <REDACTED: user-file-path>: No such file or directory (os error 2)\\nError from FemtoVG renderer: Error reading DRM resource handles: Permission denied (os error 13)\\nError from Software renderer: Error opening device <REDACTED: user-file-path>: No such file or directory (os error 2)\\nNo renderers configured.")
```
That line in the generated file is in
```
115728 │ fn window_adapter_impl (& self) -> sp :: Rc < dyn sp :: WindowAdapter > {
115729 │ sp :: Rc :: clone (self . window_adapter_ref () . unwrap ()) }
```
Relevant backtrace:
```
6 "core::result::unwrap_failed"
7 "slint_lsp::preview::ui::slint_generatedPreviewUi::PreviewUi::new"
8 "slint_lsp::preview::ui::create_ui"
```
So the theory is that user_init need the window for some reason.
(eg, could be needing the scale factor to conver sizes or some other
things that needs the window)
So make sure we do the test before calling user_init
2025-05-07 09:04:02 +02:00
Tobias Hunger
750efffbd7
Fix assert in LSP (SubElement != Component) when renaming properties
2025-05-06 21:31:24 +02:00
Simon Hausmann
ac1233491d
cupertino: Fix missing title in GroupBox widget
...
Regression from commit c931cc28ae , which removed the two-way binding.
2025-05-06 17:26:10 +02:00
Olivier Goffart
e42c4b18c2
swrenderer: interface for hw rendering of rectangle with border or gradients ( #8384 )
2025-05-06 15:53:53 +02:00
Olivier Goffart
c07c0840f6
docs: Add a web section
...
In particular, this also document how to enable the clipboard to
close #8338
2025-05-06 15:53:08 +02:00
szecket
c335dcb8c7
figma-inspector: text color variable now also working in dark mode ( #8332 )
2025-05-06 09:48:48 -04:00
Simon Hausmann
ba6fde99b4
doc: Add some changelog entries
2025-05-06 13:09:45 +02:00
Tobias Hunger
a3aacb4c82
live_preview: Do not apply live data changes after "Reload"
...
Do not apply the live data after hitting the reload button
in live preview.
2025-05-06 13:06:30 +02:00
Simon Hausmann
f983cf0b19
Add Platform.os as well as a rudimentary test
2025-05-06 13:06:27 +02:00
Simon Hausmann
904bc56e62
Introduce Platform.style-name
...
This replaces the previously hidden `StyleMetrics.style-name` that was only accessible for internal use.
2025-05-06 13:06:27 +02:00
szecket
062cfb0b56
figma-inspector: fix regression when exporting separate files
...
now checking for cross-collection references correctly
2025-05-06 07:16:29 +12:00
Olivier Goffart
86978e9fc1
Rust generated: fix constant non-inlined global
...
We must take care that all access to property that we consider constant
in global are accessed after the global has been initialized.
So initialize the global before the properties.
Fixes #8375 , #8337
2025-05-05 18:55:19 +02:00
Nigel Breslaw
23daf50422
(figma) dev-mode snippet can now toggle using variables ( #8372 )
2025-05-05 18:18:01 +03:00
Simon Hausmann
94b257bdd4
Skia: Delegate texture import to the surface trait
...
This makes it easier to keep cfg'ed code in the cfg' surfaces than cfg'ing in cached_image.rs :)
2025-05-05 15:34:52 +02:00
Olivier Goffart
e69ba5caec
Ci: prospective fix for MSRV build
2025-05-05 14:09:31 +02:00
Tobias Hunger
10d83e9e96
ci: Try to improve mise hanging sometimes
...
* Crank to logging of the install step
* Do not cache the result. One idea is that the caching
runs into locking issues or something.
2025-05-05 13:27:07 +02:00
Nigel Breslaw
818e3a30e8
(figma) Fix for design mode snippet clipping badly ( #8368 )
...
This fixes an issue where the code snippet was drawing horizontaly outside its bounds.
2025-05-05 14:24:37 +03:00
Nigel Breslaw
666c48f83d
(figma) Spellcheck the figma project ( #8366 )
2025-05-05 14:24:13 +03:00
Nigel Breslaw
127ca31da0
figma: remove tailwind ( #8355 )
...
It doesn't seem to work well with the Figma-Kit componenets and styling can be done via the style props.
2025-05-05 14:23:22 +03:00
Olivier Goffart
6e316a9929
docs: Fix missing paragraphs in the slint crate docs
...
Regression in e1a6cbf8b4
2025-05-05 12:56:32 +02:00
dependabot[bot]
fca384c401
build(deps-dev): bump the lumino group with 2 updates ( #8362 )
...
Bumps the lumino group with 2 updates: [@lumino/default-theme](https://github.com/jupyterlab/lumino ) and [@lumino/widgets](https://github.com/jupyterlab/lumino ).
Updates `@lumino/default-theme` from 2.1.9 to 2.1.10
- [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/default-theme@2.1.9...@lumino/default-theme@2.1.10 )
Updates `@lumino/widgets` from 2.7.0 to 2.7.1
- [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.7.0...@lumino/widgets@2.7.1 )
---
updated-dependencies:
- dependency-name: "@lumino/default-theme"
dependency-version: 2.1.10
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: lumino
- dependency-name: "@lumino/widgets"
dependency-version: 2.7.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: lumino
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 13:37:11 +03:00
Simon Hausmann
f4cab86d43
qt backend: Fix mouse up not being sent when pressing multiple buttons
...
Detect if a button is still pressed before deciding that no button is down.
Fixes #8335
2025-05-05 12:03:05 +02:00
wuwbobo2021
7cf5fc2bde
Android: use android-build dev dependency; small fixes ( #8334 )
2025-05-05 11:47:54 +02:00
Nigel Breslaw
057f7cb907
(Figma-plugin) Editing a property should update the snippet in design view ( #8354 )
...
In Figma dev-mode once you select an item in Figma it shows the slint snippet. If you then change any properties on the selected item the snippet updates. This is because the dev-mode automatically detects those changes and requests an update.
In the design view the api is different. The 'selection changed' event is used to show the initial snippet but subsequent changes will not be detected untill the user selects another item and then reselects the changed one. This PR adds a listener to the currently selected item to react to the NodeChanged event and update the snippet.
This PR also tidies up some dead async code. There were try catch blocks on code that according to the figma api docs never throw exceptions. Plus a few awaits on non async functions.
2025-05-05 12:31:06 +03:00
Nigel Breslaw
892be07377
(figma) Add line numbers to the design mode snippet view ( #8356 )
2025-05-05 12:28:34 +03:00
dependabot[bot]
bef4afcf2e
build(deps): bump the starlight_astro group with 2 updates ( #8344 )
...
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.34.1 to 0.34.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.34.2/packages/starlight )
Updates `astro` from 5.7.5 to 5.7.10
- [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.7.10/packages/astro )
---
updated-dependencies:
- dependency-name: "@astrojs/starlight"
dependency-version: 0.34.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: starlight_astro
- dependency-name: astro
dependency-version: 5.7.10
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-05-05 11:56:21 +03:00
dependabot[bot]
586e9e8e16
build(deps-dev): bump @types/react-dom in the react group ( #8345 )
...
Bumps the react group with 1 update: [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ).
Updates `@types/react-dom` from 19.1.2 to 19.1.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-version: 19.1.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: react
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 11:54:47 +03:00
dependabot[bot]
558aaedd89
build(deps-dev): bump ava from 6.2.0 to 6.3.0 ( #8352 )
...
Bumps [ava](https://github.com/avajs/ava ) from 6.2.0 to 6.3.0.
- [Release notes](https://github.com/avajs/ava/releases )
- [Commits](https://github.com/avajs/ava/compare/v6.2.0...v6.3.0 )
---
updated-dependencies:
- dependency-name: ava
dependency-version: 6.3.0
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-05-05 11:53:26 +03:00
dependabot[bot]
9ed60ed543
build(deps-dev): bump typedoc from 0.28.3 to 0.28.4 ( #8348 )
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.28.3 to 0.28.4.
- [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.28.3...v0.28.4 )
---
updated-dependencies:
- dependency-name: typedoc
dependency-version: 0.28.4
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-05-05 11:53:03 +03:00
dependabot[bot]
38652cb4f1
build(deps-dev): bump cspell from 8.19.3 to 8.19.4 ( #8347 )
...
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell ) from 8.19.3 to 8.19.4.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases )
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md )
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v8.19.4/packages/cspell )
---
updated-dependencies:
- dependency-name: cspell
dependency-version: 8.19.4
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-05-05 11:52:52 +03:00
dependabot[bot]
dd213f3494
build(deps): bump zustand from 5.0.3 to 5.0.4 ( #8346 )
...
Bumps [zustand](https://github.com/pmndrs/zustand ) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/pmndrs/zustand/releases )
- [Commits](https://github.com/pmndrs/zustand/compare/v5.0.3...v5.0.4 )
---
updated-dependencies:
- dependency-name: zustand
dependency-version: 5.0.4
dependency-type: direct:production
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-05-05 11:52:38 +03:00
Nigel Breslaw
93a03726ad
Try again to group lumino packages ( #8359 )
2025-05-05 11:43:55 +03:00
Nigel Breslaw
fba3faca95
dependabot: group lumino dependencies ( #8358 )
2025-05-05 11:29:42 +03:00
Montel Laurent
4cd6f92013
Hide action when widget is disabled
...
ChangeLog: TextEdit/LineEdit : disable context menu action when the widget is disabled or read-only
ChangeLog: Added ContextMenuArea::enabled
2025-05-02 13:20:46 +02:00
Olivier Goffart
bc5a468513
Readme edits
...
- Polish the wording of the intro
- Remove the "current status" section. Slint has been stable for a long time
and we don't need to put the keep that status in the readme
- A few more wording updates or remove outdated contents
2025-05-02 13:18:35 +02:00
Simon Hausmann
0002df2520
slint crate: Expose parts of the winit backend's previously private API ( #8315 )
...
Similar to the wgpu access, the `unstable-winit-030` feature exposes a
`slint::winit_030` module, which in turn re-exports `winit` but also
provides access to the `WinitWindowAccessor` trait. The
`BackendSelector` is extended to provide a way to hook into window
attribute creation as well as providing a custom event loop builder,
similar to what `i_slint_backend_winit::BackendBuilder` provides.
2025-05-02 09:21:13 +02:00
FloVanGH
c931cc28ae
ChangeLog: std-widgets: added content-padding to GroupBox ( #8314 )
...
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-02 07:11:52 +00:00
Simon Hausmann
4d41be428e
CI: Fix build with unstable-wgpu-24 and renderer-skia feature flags
2025-05-01 21:11:19 +02:00
szecket
9062095822
figma-inspector: added em dash to the sanitizers ( #8320 )
2025-05-01 11:28:54 -04:00