J-P Nurmi
030a33796e
Tests: add support for //ignore: <driver(s)>
2023-09-28 09:16:50 +02:00
Olivier Goffart
8e2757093a
Workaround cargo-bundle bug
...
cargo-bundle used to bundle the lsp on macOs doesn't support workspace
fields. (https://github.com/burtonageo/cargo-bundle/issues/122 )
Revert to explicit keys in this file for the one needed by cargo-bundle
2023-09-27 09:49:24 +02:00
Olivier Goffart
08b6393af9
material style todo demo polish
...
- Remove extra padding from the todo demo. Box in Box causes the
padding to be added twice otherwise. And the Box have extra big
padding with the material style.
- Fixup the combobox size to be consistant with fluent wrt sizing
- Use the proper color for the checkbox border, following the
style specification
2023-09-26 08:42:31 +02:00
Olivier Goffart
2d793d93de
README.md: fix logo showing twice
...
Apparently, the #gh-light-mode-only no longer work if the image is in the title.
(note that the cspell words no longer appear in the readme so i removed them)
2023-09-26 08:11:04 +02:00
Olivier Goffart
4398a64add
Fluent: fix selection foreground color
...
When selecting text, the foreground color is inverted
2023-09-26 07:25:59 +02:00
Tobias Hunger
85e1c6020b
janitor: Use workspace dependnecies for the slint crates
...
This moves most of the version information we need to update into one
place.
Note that the workplace dependency features are in *addition* to any
feature set when using the workspace dependency. So we have all
workspace dependencies defined with `no-default-features = true`.
2023-09-25 16:34:16 +02:00
Tobias Hunger
da7023a073
Update version information to 1.3.0
2023-09-25 16:34:16 +02:00
Tobias Hunger
d6695c55cb
Janitor: Use cargo workspace package data more
2023-09-25 16:34:16 +02:00
Olivier Goffart
0b4bfd3a40
Qt style: Fix GroupBox not being clipped
...
Fixes #3541
2023-09-25 12:35:41 +02:00
Olivier Goffart
9466819421
Qt style: fix enabled state in some widgets
2023-09-25 10:48:51 +02:00
Olivier Goffart
834068a20e
Rename "native" style to "qt", make "native" an alias
...
First step of https://github.com/slint-ui/slint/issues/3431
2023-09-25 09:06:47 +02:00
Niklas Cathor
d1309faa14
expressions.md: fix typo in "greater than or equal" operator
2023-09-22 16:21:58 +02:00
Olivier Goffart
d3ed4dfad0
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
2023-09-22 14:31:46 +02:00
Aurindam Jana
f2652d955c
Gallery wasm demo: Call loadGallery() once on window load
2023-09-22 11:29:08 +02:00
Olivier Goffart
57ac24e776
Fix compilation of the generated code with deny(rust_2018_idioms)
...
Fixes #3524
2023-09-22 10:21:00 +02:00
Olivier Goffart
36f43d535f
fix typo in esp-idf README
...
Also lists in lists don't render well on components.espressif.com, so
don't use two level of numbers
2023-09-22 09:07:25 +02:00
Aurindam Jana
96754d3148
Gallery wasm demo: Allow selection of style from url parameters
2023-09-22 00:30:36 +02:00
Simon Hausmann
25d954b869
Fix link to modules syntax docs
...
Fixes #3526
2023-09-21 19:31:44 +02:00
Olivier Goffart
e475e9aa3c
Update ChangeLog
2023-09-21 17:27:51 +02:00
Olivier Goffart
6594729395
skia: correct default for the supports_graphics_api
2023-09-21 17:23:08 +02:00
Olivier Goffart
4446a17b24
Skia renderer: reset the surface when the app is resumed on android
...
Part of #3430
2023-09-21 17:23:08 +02:00
Aurindam Jana
9cb87d717c
Update the docs index.html to match that in the website
2023-09-21 08:41:13 +02:00
Tobias Hunger
783083868a
janitor: Fix clippy errors about wrong clone implementations
...
... for Copy types.
2023-09-20 20:23:38 +02:00
Olivier Goffart
44c3ac5c52
Fix compiler panic with popup.closes
...
Fixes #3513
2023-09-20 13:20:18 +02:00
Simon Hausmann
fd123b27bd
Default to vsync for OpenGL rendering
...
Fixes #3516
2023-09-20 12:00:04 +02:00
Simon Hausmann
2b14806cd5
Default for false for ImageInner's PartialEq::eq fallback
...
This may help to reduce the risk of introducing issues similar to #3510 .
2023-09-20 11:18:29 +02:00
Simon Hausmann
a7b6bcae6e
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
2023-09-20 11:18:29 +02:00
Olivier Goffart
86402483f8
qt style: Fix animation when the QStyle uses update() on the widget
...
Example Breeze do that.
Fixes #3482
2023-09-19 21:39:59 +02:00
Olivier Goffart
84aaaa0363
Bring the ChangeLog from 1.2.1 from the 1.2.1 branch
2023-09-19 14:48:42 +02:00
Olivier Goffart
adc697b1d1
cupertino: Remove experimental label
2023-09-19 13:41:30 +02:00
Olivier Goffart
855cc025b0
esp-idf README: add information about missing stack or RAM
2023-09-19 12:51:35 +02:00
Simon Hausmann
55b2ff280d
Troubleshoot Slint for ESP-IDF on Windows
2023-09-19 12:28:00 +02:00
Simon Hausmann
cc7ce65c0d
Don't show a preview for the sample component in the Rust docs
...
It's not a visual example.
2023-09-19 10:56:34 +02:00
Tobias Hunger
efd83e9929
slintpad: Do not ask for properties without URI
2023-09-19 10:45:55 +02:00
Thorbjørn Lindeijer
7ee17d0914
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.
2023-09-19 10:07:25 +02:00
J-P Nurmi
123406338d
StandardTableView: prevent internal FocusScope from eating the first press ( #3495 )
...
* TableView: prevent internal FocusScope from eating the first press
Fixes : #3436
* Restore keyboard navigation
2023-09-19 09:45:19 +02:00
Olivier Goffart
f2c3b98a7d
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
2023-09-19 09:41:49 +02:00
J-P Nurmi
78cb4c07f4
Add clarifying comment and make the code easier to read
2023-09-19 09:28:49 +02:00
J-P Nurmi
f7900f1614
FemtoVG: fix vertical alignment of elided text
2023-09-19 09:28:49 +02:00
Aurindam Jana
c69fd0f6c0
Update LicenseRef-Slint-commercial.md
...
re-arrange the clauses so that the generated pdf is not broken.
2023-09-19 09:25:24 +02:00
J-P Nurmi
ddf1038ea7
Skia: fix eliding of multiline text
2023-09-19 08:50:01 +02:00
J-P Nurmi
792e639e18
FemtoVG: fix eliding empty lines
2023-09-18 10:16:25 +02:00
Olivier Goffart
14f7fe4ba2
cmake: add flags to only build the compiler
...
... and to use an external compiler
For example, this is how one only build the compiler:
```
cmake .. -DSLINT_BUILD_RUNTIME=OFF -DCMAKE_INSTALL_PREFIX=/tmp/slint_compiler
make install
```
And this only build the runtime
```
cmake .. -DSLINT_FEATURE_COMPILER=OFF -DCMAKE_INSTALL_PREFIX=/tmp/install_runtime
make install
```
And then this can be used in a project like so:
```
cmake .. -DCMAKE_PREFIX_PATH=/tmp/install_runtime/ -DSLINT_COMPILER=/tmp/install_compiler/bin/slint-compiler
```
2023-09-15 14:42:52 +02:00
Aurindam Jana
d299f0bf3e
Update LicenseRef-Slint-Royalty-free-1.1.md
...
Update links to About Slint widget and Made With Slint logo
2023-09-15 10:00:21 +02:00
Olivier Goffart
b7f57eba1e
Fix readme of opengl_texture example
...
Fix typos + add screenshot
2023-09-15 06:49:50 +02:00
Update Translations Bot
0937a9f059
Update Translations: extract strings
2023-09-15 03:04:22 +00:00
Florian Blasius
9af3d6a546
Fix two visual issues in cupertino TextEdit.
2023-09-14 19:20:02 +02:00
Simon Hausmann
84f120bcd1
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
2023-09-14 17:38:28 +02:00
Olivier Goffart
c4f83c624d
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
2023-09-14 17:38:23 +02:00
Tobias Hunger
82e0ef9c1d
slintpad: Actually inform the LSP about style changes
...
We went around the LSP and informed the preview only.
2023-09-14 13:57:45 +02:00