dependabot[bot]
04d2d2e8b9
build(deps-dev): bump @playwright/test in the playwright group ( #8698 )
...
Bumps the playwright group with 1 update: [@playwright/test](https://github.com/microsoft/playwright ).
Updates `@playwright/test` from 1.52.0 to 1.53.0
- [Release notes](https://github.com/microsoft/playwright/releases )
- [Commits](https://github.com/microsoft/playwright/compare/v1.52.0...v1.53.0 )
---
updated-dependencies:
- dependency-name: "@playwright/test"
dependency-version: 1.53.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: playwright
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-17 11:01:35 +03:00
dependabot[bot]
fc5637d4ed
build(deps-dev): bump @types/react in the react group ( #8702 )
...
Bumps the react group with 1 update: [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react ).
Updates `@types/react` from 19.1.6 to 19.1.8
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react )
---
updated-dependencies:
- dependency-name: "@types/react"
dependency-version: 19.1.8
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: react
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-17 10:25:03 +03:00
dependabot[bot]
605d3d55b8
build(deps-dev): bump vitest from 3.2.2 to 3.2.3 ( #8704 )
2025-06-17 09:17:41 +03:00
dependabot[bot]
94e834ed2a
build(deps-dev): bump @vitejs/plugin-react from 4.5.1 to 4.5.2 ( #8700 )
2025-06-17 09:16:30 +03:00
dependabot[bot]
bb2fbb5d56
build(deps-dev): bump @figma/plugin-typings from 1.113.0 to 1.114.0 ( #8701 )
2025-06-17 09:13:40 +03:00
ogoffart
92f9f0e85d
Bump version number to 1.12.1
2025-06-16 13:32:39 +00:00
Olivier Goffart
52c978238e
live-preview: lazily compute the palette
...
Computing the palette can be quite expensive if there are many globals
with many big struct (in the case for example of a big figma export).
This is done for every refresh or selection making the UI not responsive
at all.
This change lazily compute the palette when needed by the color picker.
2025-06-16 15:24:32 +02:00
szecket
c740ed2f5b
figma-inspector: updated sanitizer for enums plus test ( #8683 )
2025-06-14 01:16:40 +12:00
Olivier Goffart
6cbdbc2f62
live-preview: optimize evaluation (
...
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
We are evaluating recursively all properties. If properties are structs
that have many fields, all the fields are evaluated. This patch tries to
only evaluate the relevant fields, assuming no side effect.
2025-06-13 09:24:59 +02:00
szecket
5d9d9dc5db
figma-inspector: corrected some erroneous mode value logic ( #8676 )
...
* figma-inspector: corrected some erroneous mode value logic
* leading emoji showed another case for sanitizing
2025-06-13 00:53:05 +12:00
szecket
cb31c8ff93
figma-inspector: missed using the values from old variable named mode when renaming to 'mode-var' ( #8675 )
2025-06-13 00:47:38 +12:00
Olivier Goffart
5874e6afe0
live-preview: Respect the global color scheme when computing the Palette
...
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
Pass the window_adapter over, this could also be usefull to do the
conversion from phx to px and so on.
2025-06-11 18:49:47 +02:00
Olivier Goffart
aad04eae7a
live-preview: Evaluate conditions
...
Enough that we can get the proper palette for the builtin style
2025-06-11 18:49:47 +02:00
Olivier Goffart
b81429631e
live-preview: Fix stack overflow when there is a binding loop
...
Since the eval code might run before the binding analysis, we'd get a
stack overflow if there is a loop.
Protect against that by having a limit of property call we can do.
Also we shouldn't re-use the same local variable and return value for a
different property binding
2025-06-11 13:37:22 +02:00
Olivier Goffart
d34e54e872
live-preview: auto-clear log message after parsing
...
... instead of after the view was updated.
So that we don't see the errors prom a previous parse,
and we don't miss the debug from init callback
2025-06-11 10:33:17 +02:00
Nigel Breslaw
85f004b72f
live-preview: Mark strings as translatable ( #8661 )
2025-06-10 16:48:34 +03:00
dependabot[bot]
ea42f4d577
build(deps-dev): bump @vitejs/plugin-react from 4.5.0 to 4.5.1 ( #8649 )
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
2025-06-09 23:49:26 +03:00
dependabot[bot]
a52bb85ffc
build(deps-dev): bump vitest from 3.1.4 to 3.2.2 ( #8653 )
...
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest ) from 3.1.4 to 3.2.2.
- [Release notes](https://github.com/vitest-dev/vitest/releases )
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.2.2/packages/vitest )
---
updated-dependencies:
- dependency-name: vitest
dependency-version: 3.2.2
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-09 16:54:55 +03:00
dependabot[bot]
fc6e2719be
build(deps-dev): bump shiki from 3.4.2 to 3.6.0 ( #8651 )
...
* build(deps-dev): bump shiki from 3.4.2 to 3.6.0
Bumps [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki ) from 3.4.2 to 3.6.0.
- [Release notes](https://github.com/shikijs/shiki/releases )
- [Commits](https://github.com/shikijs/shiki/commits/v3.6.0/packages/shiki )
---
updated-dependencies:
- dependency-name: shiki
dependency-version: 3.6.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* [autofix.ci] apply automated fixes
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-09 16:53:48 +03:00
dependabot[bot]
9950a95148
build(deps-dev): bump @types/react-dom in the react group ( #8648 )
...
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / build_and_test (--exclude bevy-example, ubuntu-22.04, 1.82) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, --exclude bevy-example, windows-2022, 1.82) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, macos-14, stable) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
Bumps the react group with 1 update: [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom ).
Updates `@types/react-dom` from 19.1.5 to 19.1.6
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom )
---
updated-dependencies:
- dependency-name: "@types/react-dom"
dependency-version: 19.1.6
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: react
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-09 09:41:57 +03:00
szecket
26b7a3c73e
figma-inspector: reducing complexity and not displaying followed variables in figma as part of the export. ( #8640 )
...
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
* tests for export-variables
* added test for formatting for variable name prints corrected
* figma-inspector: formatting for variable name prints corrected
* make correction to property name sanitizer
* WIP: attempting to fix resolution by breaking everything
* figma-inspector: simplifying for release - resolving all variables to values rather than refs
* figma-inspector:corrected lost mode values
* figma-inspector: corrected some comments that were still referencing VariableID
* update docs to match
* removed obsolete test file
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-07 09:20:09 +12:00
Tobias Hunger
a9ec6c72a7
live-preview: Simplify hide/show handling
...
Get rid of the `ui_is_visible` flag. That made more sense when
it was in the contents cache wich allowed for multi-threadded access.
When that changed, the flag moved next to `ui`, so it makes
no sense to keep anymore.
2025-06-06 19:22:22 +02:00
Tobias Hunger
ed9056de1f
lsp: Extract the fuzzy matching code into common
...
... so it is easier to reuse
2025-06-06 18:45:20 +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
Olivier Goffart
ba7e31dd3b
Fix more nightly warnings
2025-06-06 12:30:45 +02:00
szecket
900ec64c7e
made the date format in the README.md YYYY-MM-DD format ( #8610 )
...
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
one line, tested, works.
2025-06-04 06:54:48 +12:00
szecket
5fb38afbdd
figma-inspector: resolve some extra self referencing loops ( #8602 )
...
same-collection and cross-collection references that needed resolving so they don't error
2025-06-04 04:22:15 +12:00
Nigel Breslaw
ff5ac80aea
Ensure consistent margins in new Color/Brush items ( #8608 )
2025-06-03 17:51:54 +03:00
szecket
c7c887d85c
figma-inspector: optimize out a second struct for current that duplicates current-scheme ( #8601 )
...
* optimize out a second struct for current that duplicates current-scheme
and replace the whole thing simply with *current*
* adjusted docs and comments in code to reflect change
* remove duplicate definition of current in the docs
2025-06-04 02:15:31 +12:00
Tobias Hunger
c18ddd59c3
live-preview: Add warning about missing panics doc to eval.rs
...
That is supposed to help catch some cases, where functions panic,
but it missed the two `expect(...)` calls, so it is definitely not
a complete solution.
I'd love to fuzz this, but AFAICT `rowan` does not support the
`arbitrary` crate, so I can not have the fuzzer create random
Expressions as input.
Fix the few clippy warnings in the LSP.
2025-06-03 15:13:12 +02:00
Nigel Breslaw
2fa21ea200
Make Slintpad startup message neutral
2025-06-03 15:12:14 +02:00
Tobias Hunger
8faa22292e
live-preview: Filter non-colors/brushes in color/brush dialog
CI / wasm_demo (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude bevy-example, ubuntu-22.04, 1.82) (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
2025-06-02 20:00:48 +02:00
Tobias Hunger
25b2b32bc8
live-preview: Update palettes when selection changes
...
Selection might change to something in another file,
which will have other imports. So refresh the palettes
on selection changes.
We do not (yet?) want to support all possible globals,
auto-importing the needed types. We are afraid that this
will make a huge mess in no time when users end up having
slint files open that belong to different UIs!
2025-06-02 20:00:48 +02:00
Tobias Hunger
0439f53ba6
live-preview: Move unrelated function out from between two related functions
2025-06-02 20:00:48 +02:00
Olivier Goffart
db18f4e2e5
Change the new error that detects binding loop through the window into a warning
...
In 80de96488a
(#3397 ) we introduced a new
error if we detect a binding loop from the Window geomerty to its layout.
But it looks like this causes a lot of error in existing project, so
make it a warning instead.
It will continue to be an error in the live preview as this will cause a
panic otherwise.
This commit also change the text of the error to include the actual
binding loop. I hope this makes it easier for users to see the loop and
help to fix it.
2025-06-02 19:01:47 +02:00
Tobias Hunger
118d85dfc7
live-preview: Fix crash when dragging/propping components onto the canvas
2025-06-02 18:46:18 +02:00
Nigel Breslaw
05c2b38a52
Polish picker for release ( #8591 )
...
Rename svg color to css.
Ensure 'Apply' is at the bottom in all modes.
Give empty recent colors a frame so there isn't a huge empty space when there are no recents.
Tweak the layout based on these changes.
2025-06-02 17:22:26 +03:00
Nigel Breslaw
6332050a23
Use Rnd to resize the Figma window ( #8576 )
2025-06-02 16:27:13 +03:00
Tobias Hunger
b9ada531f0
live-preview: s/unwrap()/unwrap_or_default()/ in eval.rs
...
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, beta) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
I did nto bother so far as we have code we know compiles and can thus
not trigger most of the unwrap calls, but then we do have places
where we have less information than the compiler and that might trigger
an unwrap.
So let's be safe and just `unwrap_or_default()` (which is typically
return `Value::Void` here). That is fine as we need to expect
`Value::Void` a lotmore often than in the compiler anyway due to
not being able to evaluate all the things.
2025-06-02 13:28:25 +02:00
Tobias Hunger
ce8b42b3a1
live-preview: Get better basic values for the property editor
2025-06-02 13:28:25 +02:00
dependabot[bot]
2a40b5d066
build(deps-dev): bump @types/react in the react group ( #8585 )
2025-06-02 10:18:10 +03:00
Nigel Breslaw
16dedbec2f
Use gradients in globals palette ( #8566 )
...
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, windows-2022, stable) (push) Has been cancelled
CI / build_and_test (ubuntu-22.04, nightly) (push) Has been cancelled
CI / node_test (macos-14) (push) Has been cancelled
CI / node_test (ubuntu-22.04) (push) Has been cancelled
CI / node_test (windows-2022) (push) Has been cancelled
CI / python_test (macos-14) (push) Has been cancelled
CI / python_test (ubuntu-22.04) (push) Has been cancelled
CI / cpp_test_driver (macos-13) (push) Has been cancelled
CI / cpp_test_driver (ubuntu-22.04) (push) Has been cancelled
CI / cpp_test_driver (windows-2022) (push) Has been cancelled
CI / cpp_cmake (macos-14, 1.82) (push) Has been cancelled
CI / tree-sitter (push) Has been cancelled
CI / cpp_cmake (ubuntu-22.04, stable) (push) Has been cancelled
CI / cpp_cmake (windows-2022, nightly) (push) Has been cancelled
CI / cpp_package_test (push) Has been cancelled
CI / vsce_build_test (push) Has been cancelled
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Has been cancelled
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Has been cancelled
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Has been cancelled
CI / mcu-embassy (push) Has been cancelled
CI / ffi_32bit_build (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / wasm (push) Has been cancelled
CI / wasm_demo (push) Has been cancelled
CI / updater_test (0.3.0) (push) Has been cancelled
CI / fmt_test (push) Has been cancelled
CI / esp-idf-quick (push) Has been cancelled
CI / android (push) Has been cancelled
CI / miri (push) Has been cancelled
CI / test-figma-inspector (push) Has been cancelled
* Use GradientIndicator in Globals palette
* GradientIndicator can have rounded corners
2025-05-28 16:17:26 +03:00
Tobias Hunger
c1ee38d5cd
live-preview: More tests for brushes in globals
2025-05-28 14:54:19 +02:00
Nigel Breslaw
ab7f884106
Show svg color or global name ( #8560 )
...
Tapping the widget will then open the picker to the svg-color tab or the globals tab.
2025-05-28 10:49:38 +03:00
szecket
c900649840
figma-inspector: corrected export regression for circular collection … ( #8525 )
CI / python_test (macos-14) (push) Blocked by required conditions
CI / python_test (ubuntu-22.04) (push) Blocked by required conditions
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_test_driver (windows-2022) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.82) (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / vsce_build_test (push) Blocked by required conditions
CI / mcu (pico-st7789, thumbv6m-none-eabi) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / ffi_32bit_build (push) Blocked by required conditions
CI / docs (push) Blocked by required conditions
CI / wasm (push) Blocked by required conditions
CI / tree-sitter (push) Blocked by required conditions
CI / updater_test (0.3.0) (push) Blocked by required conditions
CI / android (push) Blocked by required conditions
CI / miri (push) Blocked by required conditions
CI / test-figma-inspector (push) Blocked by required conditions
CI / build_and_test (ubuntu-22.04, nightly) (push) Blocked by required conditions
CI / node_test (macos-14) (push) Blocked by required conditions
CI / node_test (ubuntu-22.04) (push) Blocked by required conditions
CI / node_test (windows-2022) (push) Blocked by required conditions
CI / python_test (windows-2022) (push) Blocked by required conditions
CI / cpp_test_driver (macos-13) (push) Blocked by required conditions
CI / cpp_cmake (windows-2022, nightly) (push) Blocked by required conditions
CI / cpp_package_test (push) Blocked by required conditions
CI / wasm_demo (push) Blocked by required conditions
CI / fmt_test (push) Blocked by required conditions
CI / esp-idf-quick (push) Blocked by required conditions
2025-05-27 11:18:08 -04:00
Olivier Goffart
2536f73885
wasm prevew: Make sure the call to show preview work
...
The lsp_to_preview_message is being sent from the JS runtime and
this is not called from the event loop.
When the preview is starting the 50ms timer to refresh itself,
since this is not called from the event loop, there is nothing to
wake the event loop up to fire this timer until a mouse event or some
other event wakes the event loop.
To make sure this works, call lsp_to_preview_message from the event
loop to make sure that the timer is already started when the event
loop goes to sleep and only sleep for the duration of that timer
2025-05-27 16:55:54 +02:00
Tobias Hunger
25c1085b50
compiler: Add a struct to hold a ChildrenInsertionPoint
...
I expect I will need to add something here to handle
indices on children and then a tuple might get unwieldy.
2025-05-27 10:49:26 +02:00
dependabot[bot]
6161e7f7bb
build(deps-dev): bump vitest from 3.1.3 to 3.1.4 ( #8532 )
...
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest ) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/vitest-dev/vitest/releases )
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.1.4/packages/vitest )
---
updated-dependencies:
- dependency-name: vitest
dependency-version: 3.1.4
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-27 00:23:37 +03:00
dependabot[bot]
d5983b34d2
build(deps-dev): bump @figma/plugin-typings from 1.112.0 to 1.113.0 ( #8533 )
...
Bumps [@figma/plugin-typings](https://github.com/figma/plugin-typings ) from 1.112.0 to 1.113.0.
- [Commits](https://github.com/figma/plugin-typings/commits )
---
updated-dependencies:
- dependency-name: "@figma/plugin-typings"
dependency-version: 1.113.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-27 00:17:38 +03:00
dependabot[bot]
4fc931f354
build(deps-dev): bump @vitejs/plugin-react from 4.4.1 to 4.5.0 ( #8537 )
...
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react ) from 4.4.1 to 4.5.0.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases )
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@4.5.0/packages/plugin-react )
---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
dependency-version: 4.5.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-27 00:10:48 +03:00