Olivier Goffart
c695869344
Fix typo in docs
2023-11-17 14:31:25 +01:00
Olivier Goffart
1a0e065a54
Speedup SharedPixelBuffer::clone_from_slice in debug mode
...
Discussed in https://github.com/slint-ui/slint/discussions/3912
2023-11-17 12:06:44 +01:00
Olivier Goffart
e008019243
C++: Fix warning on macOS about unused variable
2023-11-17 10:58:20 +01:00
Florian Blasius
80bcdee646
added requestRedraw to node window ( #3940 )
2023-11-16 06:49:49 +01:00
Florian Blasius
aeace4c4ed
fluent: fixed scrollbar width / height ( #3939 )
2023-11-16 06:49:34 +01:00
Florian Blasius
440f1a5a1d
Added more documentation to the node port ( #3938 )
...
* Added more documentation to the node port
* Update api/node/index.ts
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update api/node/index.ts
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* Update api/node/index.ts
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
* code review feedback
---------
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-11-16 06:49:16 +01:00
Florian Blasius
95582e6794
fluent: make scrollbars overlay ( #3932 )
2023-11-15 19:04:02 +01:00
Florian Blasius
450443d8f8
Florian/fix node nightly ( #3937 )
2023-11-15 19:03:43 +01:00
Simon Hausmann
2c775156f7
janitor: bump metal and foreign-types dependencies
2023-11-14 23:03:30 +08:00
Simon Hausmann
cb51fdfe81
janitor: bump xkbcommon dependency
2023-11-14 16:00:56 +01:00
Simon Hausmann
269b327cff
janitor: bump calloop dependency
2023-11-14 15:56:24 +01:00
Simon Hausmann
1d085cb47e
janitor: Bump core-text dependency
...
cc #3922
2023-11-14 22:53:40 +08:00
Simon Hausmann
e054684bb2
Bump femtovg and associated ttf-parser, glow, and rustybuzz dependencies
...
cc #3922
2023-11-14 19:40:40 +08:00
Simon Hausmann
ba28846dc3
Bump fontdb and resvg version
...
The memmap and fontconfig features of fontdb are enabled by default.
2023-11-14 19:40:40 +08:00
Simon Hausmann
d68b981a16
Upate cocoa dependency
...
cc #3922
2023-11-14 19:23:32 +08:00
Simon Hausmann
a9d6eded16
Fix publishing of wasm demos in nightly
2023-11-14 13:16:04 +08:00
Olivier Goffart
89fc27e73c
xtask: Check that dev dependencies don't have a version
...
otherwise can't be uploaded to crates.io
And we have to do last minute patchup like 0b70cbc9a9
2023-11-13 18:37:16 +01: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
Florian Blasius
a1c14e1126
create index.d.ts on compile ( #3923 )
2023-11-13 15:42:13 +01:00
Simon Hausmann
34d3309f00
Select macOS 11 as deployment target in central place
...
... for all workflos that run macOS jobs.
Latest GH images somehow seem to have "lost" the minimum deployment
target (either setting or maybe the sysroot), so set it explicitly.
That is a good idea for us to do anymore for a more deterministic
deployment.
2023-11-13 22:22:37 +08:00
Simon Hausmann
58f9cf5d36
Port to new vulkano
...
This might fix the issue with resizing causing swapchain re-creation
errors, because "Swapchain creation no longer returns an error when the
swapchain extent doesn't match the current surface extent."
cc #3850
2023-11-13 12:39:59 +01:00
Simon Hausmann
0118363bec
Fix build with only backend-linuxkms
...
Activate the kms feature of softbuffer correctly, when building without
default features.
2023-11-13 11:14:03 +01:00
Simon Hausmann
df7657dc2d
doc: fix typo
2023-11-11 00:28:52 +08:00
Olivier Goffart
326d0b6414
LSP Preview: add a --fullscreen
command arg
...
Useful to preview on devices
2023-11-10 15:43:02 +01:00
Olivier Goffart
cec9818123
Revert "Prepare for 1.3.0 release"
...
This reverts commit e63720b341
.
Release was done, this can be removed
2023-11-10 11:04:33 +01:00
Olivier Goffart
770751a6ce
Updates to the publish script
2023-11-10 11:04:07 +01:00
Olivier Goffart
0b70cbc9a9
Don't use workspace deps for dev-dependencies
...
They can't have version otherwise we can't upload to crates.io
2023-11-10 11:03:10 +01:00
Olivier Goffart
e63720b341
Prepare for 1.3.0 release
...
add Cargo.lock and set the version number in the docs
2023-11-10 08:22:56 +01:00
Olivier Goffart
5f9a6731b0
Update ChangeLog
2023-11-10 08:22:56 +01:00
Florian Blasius
1d30ff9352
node: code cleanup ( #3894 )
2023-11-09 18:43:09 +01:00
Olivier Goffart
b27264934a
Fix BorrowMut error showing the preview with the software renderer
...
We used to called borrow_mut twice in a row, that can never work.
I suspect we never reached this code path before, but the preview does
because the ComponentContainer probably instentiate its contents in
places that can cause the geometry cache to be empty while doing the
rendering (while it is most likely being filled when computing the dirty
regions
2023-11-09 16:58:19 +01:00
Florian Blasius
bb9ba91255
moved slint classed to private_api ( #3893 )
2023-11-09 16:03:08 +01:00
Florian Blasius
9e393a6f74
Florian/node model notify ( #3892 )
2023-11-09 14:19:15 +01:00
Olivier Goffart
1f5f07f65a
Fix timers not firing on Windows
...
On Windows, winit doesn't respect the set_control_flow from the
AboutToWait event.
This is a bug in winit, but we can easily work it around
Fix #3875
2023-11-08 22:10:24 +01:00
Simon Hausmann
1c0ebe4c0e
Node.js docs: Add some missing type mappings
2023-11-08 19:52:50 +01:00
Simon Hausmann
ad21ecb2c5
Node.js docs: Link to SlintBrush, SlintImageData for getters
2023-11-08 19:52:50 +01:00
Simon Hausmann
ad95dc3ad7
Various changes to the Node.js docs
...
- Make the walkthrough actually work
- Fix incorrect file paths
- Link between loadFile and the component instantiation section, as well as ComponentHandle
- Declare that loadFile may throw an exception
2023-11-08 19:52:50 +01:00
Tobias Hunger
d758735241
janitor: clippy and typo fixes in the LSP
2023-11-08 18:39:52 +01:00
Olivier Goffart
73a6ec910b
LSP: hold the recursion guard in process_preview_to_lsp_message
...
This is the only non-trivial wasm_bindgen function that doesn't have it
This would cause borrow mut panic as we re-enter while waiting on files
2023-11-08 18:32:26 +01:00
Tobias Hunger
06dbf73d7a
vscode: Make icons load in WASM preview mode again
...
Fixes : #3857
2023-11-08 17:50:18 +01:00
Tobias Hunger
0774d01a59
lsp: Send contents to preview for implicitly loaded slint files
...
This fixes the no preview in slintpad issue when retrieving the contents
of files is slow (e.g. when loaded from the web).
Fixes : #3855
2023-11-08 17:50:18 +01:00
Olivier Goffart
aeb512686e
LSP preview: small UI adjustments
...
- Add a title and icon to the window
- remove dead code (Spinner)
- Make the text of error align to the left and word-wrap
- With a pointer mouse cursor so the user knows they are clickable
2023-11-08 16:23:49 +01:00
Olivier Goffart
18a244bb62
LSP preview: make sure that we always update the preview with the latest state
...
If a preview command is issued while we were compiling, we need to
recompile.
2023-11-08 16:22:56 +01:00
Olivier Goffart
8fe1dd9ff8
winit: WindowAdapter::set_visible shouldn't do anything if it is already in that state
...
calling show() on a visible window or hide() on a hidden window
shouldn't do anything.
Especially currently it would resize to the preferred size.
So that makes the preview UI to alsways resize to the preferred size
because we always call show()
2023-11-08 16:06:12 +01:00
Olivier Goffart
7a04b9a643
Qt Spinner: different design without hardcoded strong colors
2023-11-08 12:04:18 +01:00
Olivier Goffart
e25a19cbe8
Docs: adjust style documentation to the new behavior in 1.3 ( #3879 )
...
Co-authored-by: Simon Hausmann <simon.hausmann@slint.dev>
2023-11-08 09:11:19 +01:00
Olivier Goffart
31ba24bbe2
VScode extension: include the software renderer in our binary
...
Make it possible to preview with the software renderer (using the
lsp-args settings)
2023-11-08 08:18:05 +01:00
Update Translations Bot
6a7c7056a2
Update Translations: extract strings
2023-11-08 03:03:51 +00:00
Tobias Hunger
d82e3d4e5c
slintpad: Force previewer to fluent-light style
2023-11-07 15:07:04 +01:00
Florian Blasius
110689bad1
Added Spinner widget ( #3871 )
2023-11-07 15:04:24 +01:00