Commit graph

13 commits

Author SHA1 Message Date
szecket
983a544a47
live-preview: adjusted data-widget to match the other widgets. header + scroll 2025-08-23 11:18:56 +02:00
szecket
43a3b9a6b3
live-preview: split out the data tab and used menus for widgets (#9148) 2025-08-21 16:11:22 +02:00
szecket
416c6d0f34
visual-editor: clean up property and data display (#9049) 2025-08-02 13:47:44 +02:00
Nigel Breslaw
2da6bf4add
live-preview data tab floating table editor (#8123)
Adds a table editor based on the color picker floating draggable panel.

This includes behaviours that keep the panel inside the bounds of the live preview window and light / dark mode.
2025-04-13 14:57:50 +03:00
Tobias Hunger
ee61df3d7e live-preview: janitor work: Split up the property-widgets.slint file
It got *WAY* to big.
2025-03-21 18:11:45 +01:00
Tobias Hunger
bd20cb5a19 live-preview: Polish: Do not expand empty Property Groups
Those contain only one element informing about there not being any
properties to show. While I think it is important to show
that information so users have a chance to figure out how to
actually use the live data tab, it is not that important that
we need to always show it.
2025-03-06 16:51:54 +01:00
Tobias Hunger
3703005557
live-preview: Show why no live data is present (#7783)
* live-preview: Show why no live data is present

Always list all elements that *could* have live
data, add a Text about "no properties" into empty
ones.

Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2025-03-04 10:41:05 +01:00
Tobias Hunger
8fd18b66fd
live-preview: Remove bottons and then fix the fallout caused by all the layouts around us f-ing up all of a sudden (#7734)
* live-preview: Disable Code and Reset buttons in live data mode

They make no sense there.

* live-preview: Fix up breakage due to hiding the buttons

* live-preview: Improve input handling for preview data

* Ignore changes while editing
* Apply chanegs once editing is done

* live-preview: Bring back the CodeWidget in PropertyEditor

* live-preview: Fix Code and Reset button in ColorWidget

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 18:32:14 +01:00
Tobias Hunger
15955cca75 Avoid if in PropertyValueWidget
This prevents the widgets from being re-generated all the
time, which in turn makes them loose their state.
2025-02-24 19:08:08 +01:00
autofix-ci[bot]
03b80df515 [autofix.ci] apply automated fixes 2025-02-21 16:25:05 +01:00
szecket
d9fb96b18e fixed the component display
some strange focus issue remains
2025-02-21 16:25:05 +01:00
Tobias Hunger
0909397b7a live-preview: Polish: A container should not contain components
A PropertyContainer should not contain component_name and component_id.
Rename those to container_name and container_id.
2025-02-20 18:12:54 +01:00
Tobias Hunger
2b59df1355 live-preview: Simple Data edit mode
We can now set all the properties exposed to the
business logic of a UI we are previewing.

Simple properties only so far, everything else falls
back to JSON data.

Next step is to add more sophisticated UI to actually
edit more complex data like arrays more graphically.
2025-02-20 09:43:24 +01:00