Commit graph

1227 commits

Author SHA1 Message Date
Florian Blasius
0045787e1c
node: api review adjustements part I (#3766)
* Update api/node/src/types/brush.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update tests/cases/callbacks/handler_with_arg.slint

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2023-10-26 10:02:49 +02:00
Olivier Goffart
0359071b1e
Winit initial size adjustments and wasm size fixes
Following the winit 0.29 merge, a few adjustments are in order:

 - Make slint::Window.set_size() before show keep the size
 - on wasm, attempt to keep the size of the canvas from CSS
 - on wasm, one must set the width and height explicitly on the canvas
   otherwise there is wierd scaling
 - on wasm, we can't set None as maximum or minimum size otherwise winit
   panics
 - It seems that the hack we had to keep the size in range is no longer
   necessary
 - The hack in the slide puzzle can be removed. (but unfortunately it
   doesn't follow resizes

Unfortunatelly we always call set_inner_size to avoid infinite loop when
the css properties are not specificed, so this will override layouts

Also we don't default anymore to the preferred size

* Update internal/backends/winit/winitwindowadapter.rs
2023-10-24 15:28:18 +02:00
Florian Blasius
bf77b064ab
Replace neon node port (#3744)
* Update api/node/README.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-24 15:07:59 +02:00
Olivier Goffart
58e5d62a02 Winit port: Fix wasm build
Port everything from instant to web-time
2023-10-23 14:22:48 +02:00
Update Translations Bot
1caa23547a Update Translations: extract strings 2023-10-19 03:04:11 +00:00
Tobias Hunger
b12575a4c4 janitor: Go over our spell checking setup
* Extend the cspell word list
* Remove those extensions from individual source files
* white-list licenses and such as we should not meddle with those
* Fix spelling
2023-10-16 09:01:51 +02:00
Olivier Goffart
6404924e4f Fix warning 2023-10-11 14:51:19 +02:00
Florian Blasius
2324b35d12
napi test driver setup (#3635)
* Export interpreter stuff on private_api namespace

* Update api/napi/src/interpreter/value.rs

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update tests/driver/napi/build.rs

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

* Update tests/driver/napi/Cargo.toml

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


* Avoid unwanted prompt on Windows when running npm run build twice

Don't generate "napi.js" as then Windows will try to open it when running just "napi",
if nodejs registered .js as extension.

* Remove windows path workaround

It doesn't look like that it is needed.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint-ui.com>
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-10-11 12:48:27 +02:00
Olivier Goffart
46847438ca Fix warnings about calling private functions
Recently added warning
2023-10-11 10:50:50 +02:00
Update Translations Bot
0fabba49ec Update Translations: extract strings 2023-10-11 03:04:49 +00:00
Florian Blasius
e34cd741a8
Create components from a slint file for napi (#3566)
* Get todo example running with napi.

* Code review fixes.

* Code review feedback.

* Code review fixes.

* docs fix

* Update api/napi/__test__/resources/error.slint

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update api/napi/__test__/resources/test.slint

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix test

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-06 12:39:17 +02:00
Simon Hausmann
e44f70c9df Fix build on Linux where GLESv3 is not present
Only build the texture example if GLESv3 headers are found
2023-10-02 13:16:20 +02:00
Update Translations Bot
8ba6fac21f Update Translations: extract strings 2023-09-29 03:04:51 +00: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
Aurindam Jana
f2652d955c Gallery wasm demo: Call loadGallery() once on window load 2023-09-22 11:29:08 +02:00
Aurindam Jana
96754d3148 Gallery wasm demo: Allow selection of style from url parameters 2023-09-22 00:30:36 +02:00
Olivier Goffart
adc697b1d1 cupertino: Remove experimental label 2023-09-19 13:41:30 +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
Update Translations Bot
f9a1b5d600 Update Translations: extract strings 2023-09-14 03:04:21 +00:00
Olivier Goffart
7b3b894051 Update rp_2040 deps 2023-09-13 18:11:19 +02:00
Olivier Goffart
8f61f1c2a7 Update esp deps 2023-09-13 14:33:44 +02:00
Update Translations Bot
50be7b9d13 Update Translations: extract strings 2023-09-13 03:04:24 +00:00
Aurindam Jana
e01e9685be
Update Slint logo folder with new design (#3432)
This PR updates the logos and branding guideline of Slint to match the new website design. The new logos are a 1:1 replacement of the old logos except for the circular logo. In the new logo design, there isn't a separate circular logo, as the square logo with circular crop can be used. Further, the logo folder also contains logos in CMYK for use in printed materials. The PMS is just the color value in the naming and can be used where Pantome colors are required. The README has been updated to explain which logos to use when as well as the Slint "blue" color.
2023-09-11 16:41:06 +02:00
Patryk
46bd17c02d
Fix typo in carousel example (#3434) 2023-09-08 15:43:51 +02:00
Simon Hausmann
090665de13 Remove traces of required C++ exception support
After commit cf19749943 this isn't needed anymore.
2023-09-07 11:32:56 +02:00
tronical
b8b9db4e42 Bump version number to 1.3.0 2023-09-05 15:46:36 +02:00
Olivier Goffart
c47e6cd029 C++: Api changes in the WindowAdapter
- s/physical_size/size/ (consistant with the slint::Window API)
 - remove const of virtual function  (they don't need to be const and
   make implementation potentially easier)
 - Move the WindowProperties in it
2023-08-30 14:59:41 +02:00
Olivier Goffart
9c3cba0c50 platform_qt example: implement clipboard 2023-08-28 21:21:53 +02:00
Simon Hausmann
d160eb7a31
Add support for set_position(), position(), and set_physical_size() to the C++ WindowAdapter (#3367)
Closes #3349
2023-08-28 18:43:04 +02:00
Olivier Goffart
d3b89df095 platform_qt example: fix closing the window
- QWindow::hide() don't terminate the application. QWindow::close() does.
- But QWindow::close() also recurse in the closeEvent, so we must
  prevent the recursion with m_visible

Fixes #3363
2023-08-28 18:06:15 +02:00
Olivier Goffart
d23ba885ca
C++: add WindowAdaptor::update_window_properties 2023-08-25 13:58:55 +02:00
Olivier Goffart
7904493e1c C++: dispatch close request and activation change 2023-08-24 17:27:04 +02:00
Update Translations Bot
439ce4455e Update Translations: extract strings 2023-08-22 03:04:44 +00:00
Olivier Goffart
cc006e8baf
Docs: Improve style documentation and mark the cuppertino style as experimental 2023-08-21 16:27:28 +02:00
Olivier Goffart
354208c123 esp-idf: Don't expose the platform: just a single function instead 2023-08-21 13:30:37 +02:00
Florian Blasius
80407d0375
Added cupertino style for std-widgets (#3301)
* Started with cupertino style
2023-08-21 11:04:18 +02:00
Tobias Hunger
0139eea4f9 xtask: Fix up license headers
* Keep project related .md files triple licensed as the rest of the
  crate
* Make vtable MIT OR Apache 2.0 (as suggested by @ogoffart)
2023-08-17 08:55:28 +02:00
Simon Hausmann
96d7bb132c reuse: remove glob for markdown files
Instead, place the copyright and license right into the source.

To satisfy reuse, this also removes the unnecessary MIT.txt
symlinks.
2023-08-17 08:55:28 +02:00
Tobias Hunger
09d3eaf00a Update license symlinks
run `cargo xtask check_reuse_compliance --fix-symlinks`
2023-08-16 11:46:15 +02:00
Olivier Goffart
8b73d8ce05 Dep updates 2023-08-15 15:43:59 +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
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
1005cc4a75 Ignore generated files 2023-08-11 15:53:51 +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