Commit graph

10295 commits

Author SHA1 Message Date
Simon Hausmann
81a53110c4 Fix window always coming to the front on Ubuntu 20.04 when window properties change
Only call set_window_level if the value changes.

Fixes #3280
2023-08-16 11:29:33 +02:00
Florian Blasius
06c8a85181 Changelog update 2023-08-16 09:59:53 +02:00
Eric
4b9fb89332
add property for slider to support vertical orientation (#3236) 2023-08-16 09:58:50 +02:00
Simon Hausmann
12e064b07d
Improve the Slint esp-idf component README (#3278)
Provide a brief introduction into what the component provides and how to use it. This is very brief, but
hopefully a good starting point.

We should link to C++ platform docs once we have them, for example.

When the component includes an example, its README will be automatically rendered below this one.

Also make the esp_lcd_touch component a public dependency,
since it's included from `esp_slint.h`.
2023-08-16 08:52:45 +02:00
Simon Hausmann
21e06cd636 Begin documenting supported (target) platforms 2023-08-15 16:32:37 +02:00
Simon Hausmann
56f7080746 Upload the esp-idf component into the slint namespace 2023-08-15 16:17:52 +02:00
Simon Hausmann
65f371cca7 Add explicit link title for cross-links
myst-parser fills the blanks in automatically, but when rendered on GH it won't.
2023-08-15 16:15:54 +02:00
Simon Hausmann
26347b7c7a Cross-link HorizontalBox and VerticalBox 2023-08-15 16:15:54 +02:00
Simon Hausmann
3356cf508d Add the Slint version to the title of the C++ reference and Slint reference
The Rust docs already have it in their default, and this adds it to the other two.
2023-08-15 16:10:52 +02:00
Simon Hausmann
5f48dca2c0 Skia: Fix re-rendering quality of SVGs when the scale factor changes
Make sure that the scale factor to compute the target size for an SVG is
a property dependency.
2023-08-15 15:46:09 +02:00
Olivier Goffart
8b73d8ce05 Dep updates 2023-08-15 15:43:59 +02:00
Olivier Goffart
1288bb6848 C++ Rgb565Pixel: Invert red and blue 2023-08-15 14:45:33 +02:00
Simon Hausmann
e591f8d8ed Fix broken link to EventResult enum
It's an enum, thus in enums.md, not structs.md.
2023-08-15 12:04:43 +02:00
Simon Hausmann
d61a929e34 Move widgets out of builtins/ and into its own section under the language reference 2023-08-15 12:04:43 +02:00
Simon Hausmann
2f66331b2b doc: re-order language reference
Move builtins to after the syntax, so that it's

- intro
- concepts
- syntax
- builtins
2023-08-15 12:04:43 +02:00
Simon Hausmann
b775ec45af Move widget style selection under advanced topics 2023-08-15 10:43:49 +02:00
Simon Hausmann
5058b80cd6 Rename reference/src/language/reference to reference/src/language/syntax
This is the reference about the syntax, not a reference in a reference :)
2023-08-15 10:43:49 +02:00
Simon Hausmann
ae3abc6d8d Ignore generated .md files 2023-08-15 10:43:49 +02:00
Simon Hausmann
6412c2d8aa Improve wording of getting started
Without the language introduction, this needs a little clarification.
2023-08-15 10:43:49 +02:00
Simon Hausmann
18031c7a43 Move "Getting Started" into the Introduction section 2023-08-15 10:43:49 +02:00
Simon Hausmann
bf7e7e7323 Move debugging techniques under advanced topics in the Slint reference 2023-08-15 10:43:49 +02:00
Simon Hausmann
870e0e541d Restructure the Slint reference documentation
- Move the language reference into a sub-section of its own
- Made Reciples & Examples a top-level section

This paves the way for adding more top-level sections, such as advanced topics (with debugging techniques), or the list of supported
platforms.
2023-08-15 10:43:49 +02:00
Simon Hausmann
8cf88c99a3 Fix napi Cargo.toml
- Fix version to match Slint version
- Add missing fields
2023-08-15 10:21:38 +02:00
Simon Hausmann
2e3f5637ea Fix license header check on napi/.npmignore
Fixes

Error: checking /Users/simon/src/slint/api/napi/.npmignore

Caused by:
    Cannot determine the expected license header style. Please fix the license checking xtask.
2023-08-15 10:21:38 +02:00
Simon Hausmann
fa93cc3c0a Don't ignore the return value of the license checker xtask
Not everything is fixable, so if there's another problem, the task aborts but we just ignore it. That's bad.
2023-08-15 10:21:38 +02:00
Simon Hausmann
904a840292 Bump esp-idf version 2023-08-15 09:26:28 +02:00
Simon Hausmann
789a5fe3ab Add action to upload esp-idf component 2023-08-15 09:16:14 +02:00
Simon Hausmann
951bad5e4c Add missing license symlinks
These are resolved at upload time to the actual files. The markdown source isn't quite perfect, but it's something. The component registry doesn't detect the
license correctly yet either.
2023-08-14 10:23:47 +02:00
Simon Hausmann
992ab706f6 Add some fields for the idf component registry 2023-08-14 09:45:27 +02:00
Simon Hausmann
036b1b044d esp-idf: upgrade to the latest esp-idf release
This allows removing compiler flags to silence the compiler about bogus
warnings.
2023-08-11 15:53:51 +02:00
Simon Hausmann
6c627c4c06 Fix use of deprecated Kconfig variable for the main stack size on the s2 2023-08-11 15:53:51 +02:00
Simon Hausmann
a137ccae00 Add the carousel esp-idf build to the CI 2023-08-11 15:53:51 +02:00
Simon Hausmann
f9f16391d5 Make embedding for software renderer the default for the esp-idf component 2023-08-11 15:53:51 +02:00
Simon Hausmann
5af303a711 Remove the kaluga from the README until we know for sure it works 2023-08-11 15:53:51 +02:00
Simon Hausmann
d25158a7c4 Add an esp-idf example of the carousel for the s3 box, s3 usb otg stick, and s2 kaluga kit 2023-08-11 15:53:51 +02:00
Simon Hausmann
9bb402b1ad esp-idf: Fix esp_lcd_touch dependency on non-s3
esp_lcd_touch is an implicit dependency on the s3, but it needs to be explicit for the slint component.
2023-08-11 15:53:51 +02:00
Simon Hausmann
1005cc4a75 Ignore generated files 2023-08-11 15:53:51 +02:00
Olivier Goffart
a6488bb7ed CI: test more MCU targets 2023-08-11 12:37:47 +02:00
Olivier Goffart
d835c02151 Update dependancy for the S3box 2023-08-11 10:48:12 +02:00
Simon Hausmann
9c614e00a7 Fix Rust build of printerdemo_mcu on the s2 kaluga kit
- Update compiler flags
- Update to latest HAL
- Remove floating pointer arithmetic functions that are now implemented
2023-08-11 10:26:33 +02:00
Olivier Goffart
9edd8d1dce Fix build of the rust S3-box examples
We recently added a `[target.xtensa-esp32s3-none-elf]` key in the root
.cargo/config which override the  rustflag sets in the
cargo-config.toml, so put the flags in the same section so they take
precedence
2023-08-10 13:13:57 +02:00
Olivier Goffart
7f0ba774ec Use portable_atomic instead of deprecated atomic_polyfill 2023-08-10 13:12:04 +02:00
Olivier Goffart
a310fdc912 Fix panic when parsing invalid gradiant
Fixes #3241
2023-08-09 21:20:54 +02:00
Florian Blasius
94ba420c01
napi: Added global support to ComponentInstance (#3246)
* napi: Added global support to ComponentInstance

* code review feedback.

* Update api/napi/__test__/globals.spec.ts

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

* Update api/napi/__test__/globals.spec.ts

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

* Update api/napi/__test__/globals.spec.ts

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

* Update api/napi/__test__/globals.spec.ts

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

* Update api/napi/__test__/globals.spec.ts

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

* Update api/napi/__test__/globals.spec.ts

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

* Code review feedback

* Code review feedback

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-08-09 16:04:08 +02:00
Florian Blasius
ed09b95fd1
Remove image data constructor to fix release build (#3245)
* Removed from_data_array from ImageData to fix release build

* Fix test.

* code review feedback

* ci

* code review feedback

* Update api/napi/__test__/js_value_conversion.spec.ts

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
2023-08-09 16:03:51 +02:00
Kavindra Palaraja
f8e9d62379 Change "Slint design markup language" to "Slint language" to make it clearer and catchier. 2023-08-09 14:13:51 +02:00
Simon Hausmann
5101eb3dd9 napi: Fix calling setProperty on image properties with external image data
Accept any object that has the ImageData shape

cc #2474
2023-08-09 07:22:26 +02:00
Simon Hausmann
a7cb1cfed6 doc: Add links to VS Code and our extension 2023-08-08 17:54:43 +02:00
Simon Hausmann
1060d453b3 Fix headline of C++ docs
Remove exclamation mark and "welcome", as advised by Kavindra.
2023-08-08 17:20:39 +02:00
Simon Hausmann
bbc192b141 napi: Improve error message when setting non-existent properties and callbacks 2023-08-08 13:52:59 +02:00