Commit graph

9494 commits

Author SHA1 Message Date
Olivier Goffart
9a07e50224 Remove the preview from the rust docs
rustdoc removes the `no-preview` tag, and we anyway do not have a
slint file to preview in the docs anymore

(cherry picked from commit ea19c1e962)
2023-10-02 12:26:56 +02:00
Olivier Goffart
b6f116dae2 nightly job: allow to publish the released vscode extension from a branch
(cherry picked from commit 0b72a4fb1d)
2023-10-02 11:24:34 +02:00
Olivier Goffart
8e63687508 CI: merge the website copy job from the website repo into the release action
This tries to extract the version automatically, and put the files directly in the
right location

Also fill the tag and name with the version for the github release

Part of #2995

(cherry picked from commit 1286d466e7)
2023-10-02 11:24:34 +02:00
Simon Hausmann
6ca083817b Bump expected release date for 1.2.2
(cherry picked from commit 92f14c54f0)
2023-09-29 15:20:19 +02:00
Simon Hausmann
ad61587049 Move Cross-compile fix to 1.2.2 branch 2023-09-29 12:06:49 +02:00
Simon Hausmann
3d859a4413 Fix cross-compilation with a Yocto SDK
Since commit 7947f233f1a744f5ce9dfdf44372727d4fefb50b in Corrosion,
cmake will default to ${CMAKE_C_COMPILER} for linking a cdylib,
which means that C must be enabled as a language in the project.

Previously, it tried C, CXX, and Fortran and picked the first one.

(cherry picked from commit 87a548a972)
2023-09-29 12:04:57 +02:00
Simon Hausmann
b6d608131c ChangeLog for 1.2.1 release
(cherry picked from commit 62330273ed)
2023-09-29 10:31:37 +02:00
Simon Hausmann
80fae1058f Default to vsync for OpenGL rendering
Fixes #3516

(cherry picked from commit fd123b27bd)
2023-09-29 10:28:36 +02:00
Olivier Goffart
772a4455f2 Update URL for release 2023-09-29 10:25:56 +02:00
Olivier Goffart
4d77f446c4 Update Cargo.lock after version update 2023-09-29 10:25:36 +02:00
ogoffart
ac8427a3c6 Bump version number to 1.2.2 2023-09-29 10:05:23 +02:00
Simon Hausmann
3d097af455 Fix link to modules syntax docs
Fixes #3526

(cherry picked from commit 25d954b869)
2023-09-29 09:54:27 +02:00
Olivier Goffart
b4bb9082b8 Ran cargo update
but downgraded some crate to support Rust 1.66
2023-09-29 09:51:28 +02:00
Olivier Goffart
9d1f5eb1ab Unpin winit version
The new version of winit fixes an important bug for macOS Sonoma,
and the bugvix for the workaround won't happen before winit 0.29.
The branch that port to winit 0.29 already removed the workaround

Fixes #3559

(cherry picked from commit 89c269e1b9)
2023-09-29 09:38:32 +02:00
Olivier Goffart
8e1820bacb Qt style: Fix GroupBox not being clipped
Fixes #3541

(cherry picked from commit 0b4bfd3a40)
2023-09-29 09:38:06 +02:00
Niklas Cathor
d5d4868f4b expressions.md: fix typo in "greater than or equal" operator
(cherry picked from commit d1309faa14)
2023-09-29 09:37:33 +02:00
Olivier Goffart
b50d2f0da7 Qt Widgets: set the preferred-size to the minimum-size
Instead of setting it to 0 which cause `widget.preferred-width` ti be 0

Fixes #3527

(cherry picked from commit d3ed4dfad0)
2023-09-29 09:37:16 +02:00
Olivier Goffart
70ac856631 Fix compiler panic with popup.closes
Fixes #3513

(cherry picked from commit 44c3ac5c52)
2023-09-29 09:35:55 +02:00
Simon Hausmann
2f18260698 Skia renderer: Fixed the source property of Image elements sometimes not changing when setting dynamically loaded images
After loading an image with `Image::load_from_path` and setting to a
source property, upon rendering with Skia, it would get replaced with a
Skia renderer specific image representation. When later setting another
image that was also using `ImageInner::BackedStorage`, the property
would not get set because PartialEq::eq would return true because the
image inner types are the same, instead of comparing the vtable
pointers.

Fixes #3510

(cherry picked from commit a7b6bcae6e)
2023-09-29 09:34:54 +02:00
Olivier Goffart
eaeb84f009 qt style: Fix animation when the QStyle uses update() on the widget
Example Breeze do that.

Fixes #3482

(cherry picked from commit 86402483f8)
2023-09-29 09:32:45 +02:00
Simon Hausmann
dee1025e83 Troubleshoot Slint for ESP-IDF on Windows
(cherry picked from commit 55b2ff280d)
2023-09-19 13:14:28 +02:00
Olivier Goffart
1b2945a019 esp-idf README: add information about missing stack or RAM
(cherry picked from commit 855cc025b0)

 Conflicts:
	api/cpp/esp-idf/slint/README.md

Added mention of `CONFIG_COMPILER_CXX_EXCEPTIONS=y`
2023-09-19 13:11:16 +02:00
Simon Hausmann
e90de093db Don't show a preview for the sample component in the Rust docs
It's not a visual example.

(cherry picked from commit cc7ce65c0d)
2023-09-19 10:56:58 +02:00
Tobias Hunger
de8ee28149 slintpad: Do not ask for properties without URI
(cherry picked from commit efd83e9929)
2023-09-19 10:51:43 +02:00
Simon Hausmann
2138ad9b60 Add entry about cupertino style 2023-09-19 10:42:18 +02:00
Simon Hausmann
6d9c32de5e First round of updates for the changelog for 1.2.1 2023-09-19 10:39:59 +02:00
Thorbjørn Lindeijer
128e926478 Native style: Fixed scroll bar handle size for ScrollView (#3489)
This reverts commit 07f42afef3, but applies
the same change specifically to the Slider, without affecting the
ScrollView.

The scaling up by factor 1024.0 of the min, max and value caused problems
for the ScrollView, which needs these values to match the viewport size
in order to correctly calculate the size of the scrollbar handle.

(cherry picked from commit 7ee17d0914)

 Conflicts:
	CHANGELOG.md
2023-09-19 10:15:46 +02:00
J-P Nurmi
5601b8920c StandardTableView: prevent internal FocusScope from eating the first press (#3495)
* TableView: prevent internal FocusScope from eating the first press

Fixes: #3436

* Restore keyboard navigation

(cherry picked from commit 123406338d)
2023-09-19 10:15:08 +02:00
Olivier Goffart
4033d5699f Hide the ComponentFactory from the docs
It was not meant to be public.

Added a deprecated note even if deprecared on `pub use` don't show warnings

(cherry picked from commit f2c3b98a7d)
2023-09-19 10:15:00 +02:00
J-P Nurmi
5f732e5a29 FemtoVG: fix vertical alignment of elided text
(cherry picked from commit f7900f1614)
2023-09-19 10:14:46 +02:00
J-P Nurmi
5a4fbf9f0f Skia: fix eliding of multiline text
(cherry picked from commit ddf1038ea7)
2023-09-19 10:14:26 +02:00
J-P Nurmi
abaeac06af FemtoVG: fix eliding empty lines
(cherry picked from commit 792e639e18)
2023-09-19 10:14:16 +02:00
Aurindam Jana
57be4cea0b Update LicenseRef-Slint-Royalty-free-1.1.md
Update links to About Slint widget and Made With Slint logo

(cherry picked from commit d299f0bf3e)
2023-09-19 10:14:03 +02:00
Olivier Goffart
ff0bb80105 Fix computation of the item sub range
We need to account for the repeater count in the item sub-range

(cherry picked from commit e04835d209)
2023-09-15 17:39:45 +02:00
Olivier Goffart
1e74d8b8e3 Fix optimization pass removing rectangle that have a x and y set
(cherry picked from commit 2e5b98ba88)
2023-09-15 17:35:07 +02:00
Tobias Hunger
4f44c57aac Fix typo in error message
(cherry picked from commit 1c6a3aeee5)
2023-09-15 17:34:15 +02:00
Simon Hausmann
325e0f48fe Don't panic when the windowing system tries to assign a zero size to a GL surface
Apply https://github.com/slint-ui/slint/pull/3179 also to the Skia OpenGL surface.

A zero size is permitted with Metal for example, but
we panic'ed.

Fixes #3472

(cherry picked from commit 84f120bcd1)
2023-09-15 17:28:12 +02:00
Simon Hausmann
79e70ea68e Remove workaround for issue with trailing slash in VCINSTALLDIR when building Skia on Windows
(cherry picked from commit 5cdb279c1f)
2023-09-15 17:26:56 +02:00
Simon Hausmann
b31ff93630 Add a note about Skia build issues on Windows
(cherry picked from commit eaf634f618)
2023-09-15 17:26:53 +02:00
Simon Hausmann
ef59c1e182 Attempt to work around trailing slash in VCINSTALLDIR
(cherry picked from commit 461dec0052)
2023-09-15 17:26:05 +02:00
Simon Hausmann
cf1fd11b28 Help the Skia build to find clang
..even if cmake sets CC/CXX to GCC.

(cherry picked from commit 8b478431a7)
2023-09-15 17:25:51 +02:00
Simon Hausmann
aed5ea0c25 Update to skia-safe 0.66.1 (skia 116/117)
This new version compiles with LLVM 16 that's now in the GH action
runner windows images.

cc #3365

(cherry picked from commit 779e216b2a)

 Conflicts:
	.github/workflows/ci.yaml
2023-09-15 17:25:39 +02:00
Olivier Goffart
91792ebc74 compiler: Fix loading the same file twice would result in infinite pending state
The problem is that the file stays in the `currently_loading` hashmap
and therefore we thinkg we need to await for the result, while it is not
actually loading

Regression since f1f5a86d0d

Fixes #3468

(cherry picked from commit c4f83c624d)
2023-09-15 17:24:36 +02:00
Olivier Goffart
038adf1b41 C++: Fix crash when deleting a component from the click event within a sub component
The parent is already deleted when we delete the component that is kept
alive by the `grabber` ItemRc in `handle_mouse_grab`
When the ItemRc goes out of scope, we delete the component, but the
parent was already gone.

This doesn't solve a broader issue that we use the parent in many place
and it is not kept alive (for example when using properties of the
parent)

(cherry picked from commit f546d22861)
2023-09-15 17:24:05 +02:00
Florian Blasius
ff10fea31e Fix two visual issues in cupertino TextEdit.
(cherry picked from commit 9af3d6a546)
2023-09-15 17:23:59 +02:00
Florian Blasius
078eea795c Finish state visuals of cupertino style. (#3462)
(cherry picked from commit 493f3bd236)
2023-09-15 17:23:53 +02:00
Olivier Goffart
2ee8549c5c Software renderer: partial rendering with winit and fix non-opaque background
Implement the partial rendering with winit and our software renderer.

When the background is not opaque, we must still initialize all the
pixel with 0 otherwise we blend over the previous frame.
(That wasn't visible before because the buffer was always empty)

(cherry picked from commit 46ec7875ed)
2023-09-15 17:23:49 +02:00
Olivier Goffart
049cfee3d7 Update esp deps
(cherry picked from commit 8f61f1c2a7)
2023-09-15 17:22:41 +02:00
Olivier Goffart
1a3a4e94bc Update to corrosion 0.4.3
That include a fix for parsing espressif target so workaround can be
removed

(cherry picked from commit 5d37a4a158)
2023-09-15 17:15:21 +02:00
Simon Hausmann
33ce979cf1 Add documentation about the different renderers, their pros/const, and availability in backends and API
(cherry picked from commit c8b05c2b05)
2023-09-15 17:15:03 +02:00