Commit graph

30 commits

Author SHA1 Message Date
szecket
75c5ec7763 live-preview: update library search
- updating search
 - integrated search and ViewHeader into Library
 - fix up header to accomodate other views
2025-09-08 17:46:55 +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
b763bf65ef
Tooling: Debug console for live-preview (#8630)
Previously to see errors or debug info using debug(...) required the output panel of a speperate IDE or for Slintpad to open the browser developer tools.

This PR adds a dedicated panel to the live-preview. Log messages include a link back to the source file and line number for fast finding where the message was generated. Syntax errors also now show in the logs.

By default the panel is minimised and logs will clear themselves on UI recompile. The last log message does show as a preview on the minimised bar meaning in many cases you never need to open the panel.
---------

Co-authored-by: Tobias Hunger <tobias.hunger@slint.dev>
2025-06-06 15:40:56 +03:00
Nigel Breslaw
22143a04ff
Tidy the brush pickers (#8277)
This refactor is to help make future maintenance easier.

Items are now consistently named as brush instead of color.
Instead of one huge brush picker file, various elements such as gradients live in their own file.
The brush picker is also made a bit less 'smart' and doesn't have to fully understand how the current color or brush needs to be updated or if the data tab live preview needs to be updated. In turn the PickerData has been made smarter and looks after these updates.

This has fixed a few bug regarding gradient stops.
2025-04-28 12:29:43 +03:00
Nigel Breslaw
6364f2ecc3
Fix brush editor contrast when using light mode (#8232) 2025-04-22 13:17:35 +03: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
Nigel Breslaw
36c7dcaf81
New Brush widget (#8082) 2025-04-10 22:58:01 +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
szecket
28f83c64e2 live-preview: fixed indicator and made it show up when control is focused also
The indicator used to collapse secondary parts of the
property edit widgets did not work. Fix that.
2025-02-19 17:40:23 +01:00
Tasuku Suzuki
346d1c2df3 Fix typos
Ran `typos .` and fixed all typos that do make sense.
https://crates.io/crates/typos
2025-01-13 08:35:20 +01:00
szecket
bf66b9756f
hack to keep focus as hover steals it (#7093) 2024-12-13 16:59:15 -05:00
szecket
ba4b3cf5b4
change the icon, recolor and reposition it (#7053)
* change the icon, recolor and reposition it

* added filter and removed search duplicate
2024-12-11 08:58:57 +13:00
Tobias Hunger
4d309f69ba live-preview: Filter in Selection Popup
Add a filter into the Selection popup to filter out
anything not matching.

If all letters are lowercase, then it will do a case-insensitive
match, if there are non-lowercase characters it will do
case-sensitive matching instead.
2024-12-10 18:21:41 +01:00
szecket
ba14285332
Szecket/cupertino colours (#6801)
* creating a lookup table of colors based on the set on apple docs
then selecting from these colors rather than always typing hex
also added an in property for setting selected color (future)

* splitting out method of changing selection colour for later

* forgot to pull CupertinoColors from import

* Squashed commit of the following:

commit 4924aa908d6e039a7bf1f79ede3dc7c26f71007f
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 17:31:45 2024 -0500

    use  defined Palette for states

commit 80711ee7188f37b1b29ce11855b6a636d7a39306
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 17:29:51 2024 -0500

    make control colour consistent with style and other controls

commit 1cfd39e6da6643600e8b553dfab2418c8552cdc4
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 13:58:07 2024 -0500

    selection of controls when focused is not current cupertino style and too strong

commit 4bf4ae6ad385e118687f752362b34e079c03fe22
Author: szecket <szecket@magrittescow.com>
Date:   Fri Nov 15 13:42:58 2024 -0500

    make foreground color contrast when selected

* removing property that is only in cupertino
2024-11-22 08:18:27 +13:00
Tobias Hunger
828385b918 live-preview: Sort some properties 2024-11-19 20:20:14 +01:00
Tobias Hunger
004ade9d44 live-preview: Implement a UI for the selection stack 2024-11-19 20:20:14 +01:00
Tobias Hunger
cfb29c51ae live-preview: Move drop mark colors into styling.slint 2024-11-14 14:07:37 +01:00
Tobias Hunger
51d8205e08 live-preview: Use another seelction color for interactive building blocks
... like TouchArea and such. This might help a bit with what
you are actually selecting.
2024-11-14 14:07:37 +01:00
Tobias Hunger
88f705a777 live-preview: Move selection colors into styling.slint 2024-11-14 13:24:38 +01:00
szecket
8f8eb0d120
made adjustments using the awesome new data in api (#6223) 2024-09-20 03:32:10 +12:00
Tobias Hunger
bdf173d08c live-preview: Update the down-arrow icon
... using the chevron-down icon from the codicons
icon set.
2024-09-18 21:30:18 +02:00
szecket
126ab85366 live-preview: Prettify the property editor 2024-09-17 18:39:37 +02:00
Florian Blasius
a32b0ac6d0 live-preview: Refactoring of property editor ui code 2024-09-17 18:39:37 +02:00
Tobias Hunger
e0426353a8
live-preview: Improve icons in hide/show sidebar buttons (#6128) 2024-09-13 09:06:02 -04:00
Tobias Hunger
026e723029 live-preview: Add buttons to hide sidebars 2024-09-11 16:16:18 +02:00
Tobias Hunger
f5667b4d2b live-preview: Clean up icon handling 2024-09-11 13:22:04 +02:00
Florian Blasius
ca5ac29665 Editor: increase group header min height 2024-07-12 06:28:46 +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