Tobias Hunger
f78ea5e7cf
janitor: Fix clippy "field assignment outside of initializer
...
... for an instance created with Default::default()"
2024-06-24 14:59:47 +02:00
Tobias Hunger
09e9cdebb1
janitor: Fix clippy "duplicated attribute"
2024-06-24 14:59:47 +02:00
Tobias Hunger
571ee7a0bb
janitor: Fix clippy "parameter is only used in recursion"
2024-06-24 14:59:47 +02:00
Tobias Hunger
caacd487ac
live-preview: Make the component list a bit prettier
2024-06-24 14:10:16 +02:00
Tobias Hunger
a810fc1df3
live-preview: Move renaming of component fucntionality into the ComponentLabel
...
... remobving the functionality fronm the ComponentList again.
2024-06-24 14:10:16 +02:00
Tobias Hunger
d0d0327049
live-preview: Only pass information on the component previewed once
2024-06-24 14:10:16 +02:00
Tobias Hunger
229fdb73ec
live-preview: Show the newly added component as preview
2024-06-24 14:10:16 +02:00
Tobias Hunger
127535b0e1
live-preview: Keep a stack of components previewed
...
... and add back/forward buttons to navigate between them.
2024-06-24 14:10:16 +02:00
Tobias Hunger
1b88f70086
live-preview: Add a "show preview" button into the component list
...
... It is *UGLY*, really *UGLY*. But it works ;-)
2024-06-24 14:10:16 +02:00
Tobias Hunger
35b61fa852
live-preview: Show a label of the component currently visible
...
* Make the location a click-target that asks the editor to navigate to that
component
2024-06-24 14:10:16 +02:00
Olivier Goffart
3764312561
Generate multiple components in Rust and C++ ( #5449 )
...
When lowering to the LLR, generate one PulbicComponent for each exported
component in the main file
Closes #784
2024-06-24 10:03:19 +02:00
Olivier Goffart
c89ea56abb
Update a bunch of dependencies
...
Bigger change is cause by resvg/usvg which now takes the font database
in a Arc, so we must store it in a Arc ourself to cheaply lend it to usvg
2024-06-23 16:47:13 +02:00
Simon Hausmann
d86ae620b4
Add a very basic and crude implementation for software rendering to the legacy Linux framebuffer interface
...
This assumes the same xrgb888 interface that the drm dumb buffer uses, too. Missing, beyond different pixel depths is:
- mode setting (requires fbset on the command line right now)
- vsync (not sure if possible)
- line padding
2024-06-22 09:37:34 +02:00
Simon Hausmann
011a3e8a47
linuxkms: Hide the drm dumb buffer software display implementation behind a trait
...
... to make room for a linuxfb fallback implementation
2024-06-22 09:37:34 +02:00
Simon Hausmann
977b827df2
Add Rust API to grab the contents of a slint::Window into a slint::SharedImageBuffer ( #5445 )
2024-06-22 09:33:18 +02:00
Simon Hausmann
e232648d01
Re-enable arm lsp and yocto builds
...
New winit version fixes the build
2024-06-21 20:28:00 +02:00
Simon Hausmann
3acf3216cb
Re-enable Python arm builds
2024-06-21 20:19:43 +02:00
Simon Hausmann
f3ed569592
Bump Python package alpha version
2024-06-21 20:17:18 +02:00
Tobias Hunger
37d6922983
live_preview: Wire up component renaming
2024-06-21 14:40:50 +02:00
Tobias Hunger
1cc63ea428
lsp: Borrow new_name in rename_component
2024-06-21 14:40:50 +02:00
Tobias Hunger
1b3765e53c
lsp: Move node ignore code into the common section
...
... it is conceptually meant to be used by the language server and the
live-preview.
2024-06-21 14:40:50 +02:00
Olivier Goffart
408637a677
Remove the is_root_component within the component
...
There will be serveral roots, so this makes no sense.
2024-06-21 11:58:09 +02:00
Olivier Goffart
8933f3308c
Remove the error when using @children on the root component
...
This complicates multi-component handling
2024-06-21 11:58:09 +02:00
Olivier Goffart
acb7da11d2
fix missing warning of missing export
...
... for last component when globals are exported
2024-06-21 11:57:49 +02:00
aurindam
786933966a
Update from slint-ui/website
...
Update index.html from commit 247e6489544d2ea42fb7d12f9965ebfea195067c (refs/heads/prod)
2024-06-21 01:45:38 +00:00
Olivier Goffart
845f40da9c
linuxkms: ignore warning when no renderer are active
2024-06-20 13:18:44 +02:00
Olivier Goffart
a4c0cc9f09
Move the used_types from the (root) Component in the Document
...
Preparation for multi-components
Note that this had to rename one instance of TextStyle because it
conflicts with the struct of the same name used in the FontSettings
in the style. This wasn't a problem before because it shares some
property in common, and the the order of processing of component has
changed leading to the other one being generated.
(But that is a wider bug in the compiler outside of the scope of this
refactoring)
2024-06-20 12:03:38 +02:00
Olivier Goffart
2fd8744cfc
compiler: Move embedded_file_resources from the root Component to the Document
2024-06-20 12:03:38 +02:00
Olivier Goffart
41d39c507f
Improve the documentation of Components libraries
2024-06-20 09:53:50 +02:00
Tobias Hunger
9e8e0ce307
lsp: Allow for local globals when collecting all components
2024-06-19 17:52:16 +02:00
Tobias Hunger
58148b4ca7
live-preview: Add test for component renaming with relative paths
...
.. and fix the code to handle them.
2024-06-19 17:11:24 +02:00
Tobias Hunger
b881d24367
janitor: Fix spelling
2024-06-19 17:01:19 +02:00
Olivier Goffart
11e7b12a81
compiler: perform remove return pass before const propagation
...
Otherwise we end up inlining "returns" in the wrong property
Fixes #5430
2024-06-19 12:51:47 +02:00
Tobias Hunger
1f0262c7a7
Update tools/lsp/preview/drop_location.rs
...
Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2024-06-19 11:45:37 +02:00
Tobias Hunger
15ac565737
live_preview: Show file local components in Library
2024-06-19 11:45:37 +02:00
Tobias Hunger
49d4fc5d0f
live-preview: Handle add_new_component
2024-06-19 11:45:37 +02:00
Tobias Hunger
97daf41245
live-preview: Add a button to add a new component with
...
... and make it trigger a function in preview.rs.
2024-06-19 11:45:37 +02:00
Olivier Goffart
3bbb6e9d0a
Rust quickstart: don't use the template if we're not using build.rs
...
The quickstart use the slint macro which doesn't use build.rs. The template is conter-productive
as it uses the slint-build and build.rs to compile Slint file.
If we're not using that, it is much easier to start with a fresh clean project.
2024-06-19 09:57:46 +02:00
Simon Hausmann
dde544726e
Disable ARM builds until next winit release
...
So that we can continue to have nightlies.
2024-06-19 09:05:59 +02:00
Update Translations Bot
ddc15c0813
Update Translations: extract strings
2024-06-19 03:04:16 +00:00
Simon Hausmann
20ca618343
Disable arm python cross builds until next winit update
2024-06-18 22:34:00 +02:00
Simon Hausmann
3be6e641c6
Python: Attempt to build python packages with the same features as the nodejs/tool/etc. binaries
2024-06-18 09:43:37 -07:00
Simon Hausmann
83e7f8c6af
Fix wasm build
2024-06-18 17:48:17 +02:00
Olivier Goffart
5d9682b2ad
Remove PhantomData
2024-06-18 17:48:17 +02:00
Olivier Goffart
563b77fa2c
Fix build of docs
...
Since winit depends on android-acrivity, and we build both winit and
android backend in this configuration, they must use the same version of
android-activity. And new version of winit uses new version of
android-activity
2024-06-18 17:48:17 +02:00
Simon Hausmann
9377d8ea75
Fix Skia Vulkan build on macOS
2024-06-18 17:48:17 +02:00
Simon Hausmann
1c54cce021
Skia: Fix windows build
2024-06-18 17:48:17 +02:00
Simon Hausmann
1066acac9d
Node.js: Use the same defaults as the slint rust create and interpreter crate
...
Fixes winit build warning about unused function
2024-06-18 17:48:17 +02:00
Simon Hausmann
b579bd577f
Remove unused rhw dependency
2024-06-18 17:48:17 +02:00
Olivier Goffart
fe6f845ca0
Android: port to rwh 0.6
2024-06-18 17:48:17 +02:00