Commit graph

1252 commits

Author SHA1 Message Date
ogoffart
0a5bf6c37b Bump version number to 1.3.1 2023-11-23 07:47:07 +00:00
Update Translations Bot
6d8e2caedc Update Translations: extract strings 2023-11-21 03:04:07 +00:00
Update Translations Bot
037e5e462e Update Translations: extract strings 2023-11-20 03:04:04 +00:00
Update Translations Bot
48c05c9c84 Update Translations: extract strings 2023-11-19 03:04:00 +00:00
Simon Hausmann
e054684bb2 Bump femtovg and associated ttf-parser, glow, and rustybuzz dependencies
cc #3922
2023-11-14 19:40:40 +08:00
Florian Blasius
b7b0266454
added image-filter example typescript port (#3907)
* added image-filter example typescript port

* Update examples/imagefilter/node/main.ts

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

* Update examples/imagefilter/node/main.ts

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

* Update examples/imagefilter/node/package.json

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

* Update examples/imagefilter/node/package.json

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

* Update examples/imagefilter/node/tsconfig.json

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

---------

Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-11-13 15:42:37 +01:00
Update Translations Bot
6a7c7056a2 Update Translations: extract strings 2023-11-08 03:03:51 +00:00
Florian Blasius
110689bad1
Added Spinner widget (#3871) 2023-11-07 15:04:24 +01:00
Olivier Goffart
f4591d4771 Gallery: don't hinerit from layout
it has performences implication as if you inherit from a layout it is always inlined
Since this component is used many times, it makes a difference
2023-11-07 12:03:06 +01:00
Simon Hausmann
7b61e455eb Initial implementation of a Slint event loop sitting on top of Node.js
At the moment this is implemented using polling.

cc #2477
2023-11-06 11:37:45 +01:00
Simon Hausmann
5a8dbfc623 Combine animation button and duration into one row
This way the animate-all button is not over-sized.
2023-11-06 10:55:00 +01:00
Simon Hausmann
7378f0122c Polish easing curve animation button
Avoid shouting exclamation mark in labels.
2023-11-06 10:55:00 +01:00
Simon Hausmann
fd1c987c65 Add spaces surrounding curly braces
Minor formatting nit :)
2023-11-06 10:55:00 +01:00
Olivier Goffart
582855f634 Energy monitor: restore wasm canvas size to demo's preferred size 2023-11-06 08:26:03 +01:00
Update Translations Bot
8becbeb292 Update Translations: extract strings 2023-11-04 03:04:04 +00:00
Olivier Goffart
89c80f3b6d Fix animation expression not being visited for use count of property
resulting in properties being optimized when they shouldn't
2023-11-03 15:11:06 +01:00
Olivier Goffart
c70f203157 Easing: add changelog entry and remove rectangle with hardcoded background in gallery 2023-11-03 09:27:03 +01:00
Ken Carpenter
b20536131f
Add more easing formulas (#3812)
Closes #2655
2023-11-03 09:20:44 +01:00
Update Translations Bot
01f8307160 Update Translations: extract strings 2023-11-03 03:04:48 +00:00
Simon Hausmann
b925460635 gallery: Remove SpinBox from group box title
Commit 7784e37928 removed the widget, but the
title was not adjusted.

The SpinBox is in the separate section below.
2023-11-02 15:16:02 +01:00
Florian Blasius
4ec63a9c71
cleanup examples according to upcoming code guidelines (#3809) 2023-11-02 11:04:40 +01:00
Olivier Goffart
d63ff9c4c6 WIP: introduce an android-activity backend 2023-10-31 16:22:11 +01:00
Simon Hausmann
55085d43af
Fix Node.js version of memory game not working properly (#3789)
The rules require comparing if tiles are equal, which used to be a string comparison as we just
converted the image to a path. With ImageData this doesn't
work anymore, so this patch proposes an optional path
property that makes the code also a tad bit more readable.
2023-10-31 08:50:32 +01:00
Olivier Goffart
0c529cd345 janitor: Some no-brainer deps update 2023-10-27 19:11:38 +02:00
Update Translations Bot
2f3a69f7dc Update Translations: extract strings 2023-10-27 03:04:53 +00:00
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