Tobias Hunger
c92960b9d3
live-preview: Remove setters that are not too helpful
...
We are getting too many setters for properties in our Api IMHO,
so remove two that are easy enough to replicate with `set_code_property`.
2024-08-30 19:52:55 +02:00
Tobias Hunger
aadff0ca42
live-preview: Show properties for Empty
...
For beauty-reasons we no longer report `Empty` though and replace
that with `""`. This prevents the property editor from showing a UI:
The `type-name` field being empty was abused to indicate that no
data is available -- we do not have options in Slint :-/
Replace that test with the length of the model holding the properties.
We assume we got no data when that model is empty... which is probably
a safer bet for "no property data availabel" than the `type-name`
field.
2024-08-30 18:56:04 +02:00
Tobias Hunger
a7c0ae30e8
live-preview: Report property values with units to UI
2024-08-29 17:08:26 +02:00
Tobias Hunger
e0cf679c0f
live-preview: Improve conversion of property info to UI
...
... and use that in the (still almost unchanged) UI.
2024-08-28 18:02:47 +02:00
Tobias Hunger
7572869541
live-preview: Remove splitter from PropertyEditor
2024-08-28 11:01:57 +02:00
Olivier Goffart
3a59950751
Experimental support for named callback parameters
...
And use that in the lsp/ui implementation instead of comments.
This is only a parser support for now, the name is otherwise unused.
Hence I rather keep that experimental.
2024-08-19 14:10:01 +02:00
Tobias Hunger
0b99a3d023
live-preview: Use preferred size when requesting preview
...
Force the preview to preferred size when explicitly asking to
preview something.
2024-08-15 13:47:25 +02:00
Olivier Goffart
6f51c975f5
LSP: don't answer "Empty" for component that do not inherit
...
... instead of chekcing for "Empty" in the Slint code
Do the suggestion from https://github.com/slint-ui/slint/pull/5625#issuecomment-2228976684
2024-08-08 12:05:29 +02:00
Tobias Hunger
3f41b6f69d
live-preview: Make component selection more robust
...
... by not relying on the component name, which could be used in several
files.
2024-07-17 17:52:12 +02:00
Tobias Hunger
f9320b4aff
live-preview: Low-hanging fruit in the Property editor
...
* Resizing the key field works again (using an invisible hand-crafted splitter)
* The color of the active/inactive `f(x)` icon was inversed as suggested by
Daniel.
2024-07-16 18:27:47 +02:00
Tobias Hunger
3733070c33
live-preview: Remove the functionality to add components
2024-07-16 14:20:46 +02:00
Tobias Hunger
a384d957b4
live-preview: Disable the Component Label
...
It is too ugly and since we can no longer add components, it is not absolutely
necessary to rename comoponents either.
2024-07-16 14:20:13 +02:00
Florian Blasius
ed8b05548d
lsp-ui: apply ux feedback for headers ( #5628 )
2024-07-16 11:57:13 +02:00
Tobias Hunger
c7f5e8df2e
live-preview: Never report "Empty" as a base type of an element
...
... in the properties view.
2024-07-15 16:28:50 +02:00
Florian Blasius
96f2f15552
editor: added borders to groups ( #5612 )
2024-07-12 15:24:35 +02:00
Florian Blasius
86cde942b7
editor: fixed different bar heights
2024-07-11 20:07:47 +02:00
Florian Blasius
f32bec395b
Editor: Design Review fixes for library, properties and preview ( #5604 )
2024-07-11 16:36:57 +02:00
Florian Blasius
4bedeb5489
lsp: switch interact and edit on header
2024-07-10 21:09:57 +02:00
Florian Blasius
b573f1c7d8
Design Review: refactored lsp header
2024-07-10 21:09:57 +02:00