FloVanGH
f01ac8fc39
node: added url support to loadFile ( #6507 )
2024-10-10 11:43:32 +00:00
Olivier Goffart
1c3eb46752
Fixup dead links to the old tutorial
2024-10-03 10:15:52 +02:00
ogoffart
eb273a63ee
Bump version number to 1.9.0
2024-09-25 11:49:15 +00:00
Olivier Goffart
58db7cabc1
examples: Fix links in READMEs
2024-09-14 14:44:41 +02:00
ogoffart
4dd7d96a28
Bump version number to 1.8.0
2024-08-15 12:44:46 +00:00
Nigel Breslaw
048c0eaf08
Update example readmes
...
Tidy up the main examples/README.md.
All the main examples now live in a table with a thumbnail and description.
Then each project has it's own README.md with more details.
2024-08-13 11:35:39 +02:00
ogoffart
bbf7edc5a3
Bump version number to 1.7.2
2024-08-09 09:52:17 +00:00
ogoffart
aa25e3cd44
Bump version number to 1.7.1
2024-07-23 12:05:34 +00:00
Rafael Bachmann
19116252f4
Fix cheating in memory game
...
one could cheat :) by simply clicking again on an opened tile, closing it again.
2024-07-15 09:34:26 +02:00
Simon Hausmann
e3aab79fdb
Python: Improve Struct mapping
...
When reading, create the local equivalent of a dataclass, so that access
doesn't require ["foo"] key syntax.
Also implement the copy protocol, so that we can safely make clones of
the references returned by the ListModel.
2024-07-11 22:08:10 +02:00
Olivier Goffart
66370b6bda
Add export { ... } from "....slint";
syntax. ( #5533 )
2024-07-03 12:50:40 +02:00
ogoffart
3a6e34ba45
Bump version number to 1.7.0
2024-06-04 20:34:29 +00:00
Simon Hausmann
f86f4993fa
Python: Replace import magic with an auto-loader
...
As discussed on Reddit, the magic import logic is not very tool friendly and a little too magic perhaps. Instead, this patch introduces an automatic loader (`slint.loader`), which can traverse `sys.path` and lazily load `.slint` files by attribute lookup.
Closes #4856
2024-04-18 16:04:20 +02:00
Simon Hausmann
ef9fa27800
Node.js: fix creation of initial tiles
...
Make sure we create an Array before calling concat or map. Could also use Array.from, but this matches commit edc46a0839
2024-03-31 09:32:50 +02:00
ogoffart
6bf40989d9
Bump version number to 1.6.0
2024-03-27 07:49:22 +00:00
ogoffart
20c570ab1d
Bump version number to 1.5.1
2024-03-18 08:55:01 +00:00
Simon Hausmann
b967ca4182
Python: Add Memory tutorial port
2024-03-07 19:48:48 +01:00
ogoffart
a0eed4e58e
Bump version number to 1.5.0
2024-02-20 17:33:11 +00:00
ogoffart
fec2b961db
Bump version number to 1.4.1
2024-02-01 09:12:42 +00:00
ogoffart
b081c489d6
Bump version number to 1.4.0
2023-12-11 11:21:37 +00:00
ogoffart
b9255ab8e2
Bump version number to 1.3.2
2023-12-01 08:05:15 +00:00
ogoffart
0a5bf6c37b
Bump version number to 1.3.1
2023-11-23 07:47:07 +00: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
Florian Blasius
4ec63a9c71
cleanup examples according to upcoming code guidelines ( #3809 )
2023-11-02 11:04:40 +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
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
tronical
b8b9db4e42
Bump version number to 1.3.0
2023-09-05 15:46:36 +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
ogoffart
aebaa7d6c9
Bump version number to 1.2.0
2023-07-25 10:44:53 +00:00
ogoffart
c8c9496722
Bump version number to 1.1.1
2023-06-26 12:50:02 +00:00
Olivier Goffart
11dea135f7
Domain: slint-ui.com -> slint.dev
2023-06-16 10:55:08 +02:00
Tobias Hunger
04d1229685
Fix licnese information using xtask
2023-06-16 09:14:20 +02:00
ogoffart
641cab0e75
Bump version number to 1.1.0
2023-06-15 16:01:28 +00:00
Aurindam Jana
e4338300de
Change license for examples to MIT ( #2887 )
2023-06-15 11:23:17 +02:00
ogoffart
dfd5fc38b3
Bump version number to 1.0.3
2023-04-26 14:04:08 +00:00
ogoffart
53cce5bf44
Bump version number to 1.0.2
2023-04-26 11:33:16 +02:00
ogoffart
bd63218412
Bump version number to 1.0.1
2023-04-18 14:56:40 +00:00
Simon Hausmann
9c9f01b849
janitor: Add trailing semicolons to be tidy :)
2023-03-28 09:46:45 +02:00
Tobias Hunger
6934b7b779
cmake: Fix SLINT_EMBED_RESOURCES
...
* Do not use the initialize_from feature introduced in cmake 3.23
2023-03-27 16:18:05 +02:00
Tobias Hunger
52a70b7d89
cmake: Bump minimal cmake version to 3.23
2023-03-27 09:27:44 +02:00
Olivier Goffart
6889dfa5f5
Rust: Make new(), run() and show() report errors from the backend
...
Fixes #2198
2023-02-10 05:00:03 +01:00
ogoffart
e7f48512ee
Bump version number to 1.0.0
2023-02-03 11:07:15 +01:00
Florian Blasius
520df46998
Update examples to new syntax ( #2067 )
...
* run slint-updater on examples
* manual syntax updates
2023-01-16 12:11:25 +00:00
ogoffart
ce07d078ce
Bump version number to 0.3.4
2022-12-16 09:36:15 +00:00
ogoffart
fb02b4118b
Bump version number to 0.3.3
2022-11-28 13:11:11 +00:00
ogoffart
2171773a3e
Bump version number to 0.3.2
2022-10-28 09:30:14 +00:00
ogoffart
261614b914
Bump version number to 0.3.1
2022-09-15 14:39:51 +02:00