Commit graph

2197 commits

Author SHA1 Message Date
dependabot[bot]
a66aa2df2f
build(deps-dev): bump shiki from 3.2.1 to 3.2.2 (#8130)
Bumps [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Commits](https://github.com/shikijs/shiki/commits/v3.2.2/packages/shiki)

---
updated-dependencies:
- dependency-name: shiki
  dependency-version: 3.2.2
  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-04-14 09:27:55 +03:00
dependabot[bot]
e2a49abd86
build(deps-dev): bump @types/react in the react group (#8129)
Bumps the react group with 1 update: [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react).


Updates `@types/react` from 19.1.0 to 19.1.1
- [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.1
  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-04-14 09:27:43 +03:00
Nigel Breslaw
ff04828466
live-preview color/brush picker allows hex values to be text editable (#8126)
* Allow stop and alpha % to be text editable

* Generalise PickerTextInput

* hex values are now text editable
2025-04-14 00:23:44 +03:00
Nigel Breslaw
1eab3eea9f
live-preview Color/Brush Picker looks wrong in light mode (#8125)
In dark mode the new picker looked fine, however in light mode text was misaligned and the brush mode icons were not visible. This PR fixes those issues.
2025-04-13 17:43:52 +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
dependabot[bot]
80df58e0ac
build(deps-dev): bump vite from 6.2.5 to 6.2.6 (#8116)
* build(deps-dev): bump vite from 6.2.5 to 6.2.6

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.5 to 6.2.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.2.6
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* pnpm dedupe

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2025-04-11 20:50:07 +03:00
Nigel Breslaw
cbb5b96ade
Refactor out a reusable DraggablePanel (#8111) 2025-04-11 16:07:08 +03:00
Tobias Hunger
7a1bc6f6d7 live-preview: Add gradient support to the property editor
Parse the gradient data from source code and pass it on to the
UI side to do its magic.

SQUASH ME
2025-04-11 13:34:18 +02:00
Nigel Breslaw
36c7dcaf81
New Brush widget (#8082) 2025-04-10 22:58:01 +03:00
Tobias Hunger
d06671f587 live-preview: Extract the property_view related code from ui.rs
The file is just too big!

This patch does not contain any intended code changes.
2025-04-10 13:00:32 +02:00
Tobias Hunger
d6a19d78cb
live-preview: Improve std-widget use detection (#8086)
live-preview: Improve std-widget use detection

... so we do not hide the Style combobox when std-widgets get used by
imported components, even if they are not used by the previewed
component.

Co-authored-by: Olivier Goffart <olivier.goffart@slint.dev>
2025-04-10 12:59:52 +02:00
Simon Hausmann
3fc67f89b9 Ignore generated dist.zip as well 2025-04-09 16:15:04 +02:00
Olivier Goffart
78a3757b7f
Remormat all the toml file again to fix npm upload
Commit cd6f2e2 reformated the .toml, but the 80 char width column is
judged too small to be practical

Add a .taplo.toml file

Also do not split feature array
2025-04-09 15:06:00 +02:00
dependabot[bot]
47949ad94a
build(deps-dev): bump @types/react-dom in the react group (#8093)
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.1 to 19.1.2
- [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.2
  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-04-09 11:31:44 +03:00
Tobias Hunger
081452bee9 live-preview: Explicitly set live-data values on reload
Set all values that are changed compared to the initial
set of values right after loading a new component.

This also includes a small change to the printerdemo,
so that it exposes more data to the business logic,
so that we have something to demonstrate;-)
2025-04-09 09:39:04 +02:00
Tobias Hunger
e1b85bbb93 component-container: Accept focus
So that we can pass the focus into the container when it first
shows.

I thought this would be super complex to do property! What a
nice surprise:-)

Fixes: #4055
2025-04-09 09:37:28 +02:00
Simon Hausmann
ac256d61d8 winit: replace special private function to spawn event loop with public API in the winit backend builder
This means the event loop spawning goes through the backend, which will permit for state from the Backend struct to be available when spinning the event loop even when spawning it merely.
2025-04-09 08:50:39 +02:00
Simon Hausmann
33561b0457 Remove unnecessary try / catch blocks when using the winit-based wasm-preview
Commit b2645dff6c and 4b37d9a1f1 introduced the use of spawn, which doesn't thrown anymore.
2025-04-09 08:50:39 +02:00
dependabot[bot]
2feb048fa5
build(deps): bump typescript from 5.8.2 to 5.8.3 (#8069)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.2 to 5.8.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.8.3
  dependency-type: direct:production
  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-04-08 11:00:19 +03:00
dependabot[bot]
05e12d71b6
build(deps): bump html-react-parser from 5.2.2 to 5.2.3 (#8074)
Bumps [html-react-parser](https://github.com/remarkablemark/html-react-parser) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/remarkablemark/html-react-parser/releases)
- [Changelog](https://github.com/remarkablemark/html-react-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/remarkablemark/html-react-parser/compare/v5.2.2...v5.2.3)

---
updated-dependencies:
- dependency-name: html-react-parser
  dependency-version: 5.2.3
  dependency-type: direct:production
  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-04-08 11:00:04 +03:00
dependabot[bot]
6ad9882641
build(deps): bump playwright-ctrf-json-reporter in the playwright group (#8068) 2025-04-08 08:24:56 +03:00
dependabot[bot]
a222ddbdca
build(deps-dev): bump the react group with 2 updates (#8079) 2025-04-08 08:23:12 +03:00
dependabot[bot]
20b6f52552
build(deps-dev): bump vite from 6.2.4 to 6.2.5 (#8058)
* build(deps-dev): bump vite from 6.2.4 to 6.2.5

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.4 to 6.2.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.2.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* dedupe

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2025-04-07 20:32:44 +03:00
Nigel Breslaw
8b7c61a9d3
Simplify the color picker window dragging (#8053)
The previous solution meant a hidden TouchArea the size of the live-preview handled dragging the color picker. This won't scale as now multiple pickers need to show for the brush picker gradient editor.

This change means the picker now handles the drag logic itself with it's own internal TouchArea.

This change also fixes an issue where moving the window very quickly showed a bug in the code that stops the window moving out side the bounds of the live-preview. It would stop, but too early with a few pixels to spare. Now the picker stops at the actual window bounds.
2025-04-04 00:38:13 +03:00
Nigel Breslaw
566b5ed889
Slight tweaks to prepare for the brush/gradient widget (#8046) 2025-04-03 16:07:18 +03:00
Nigel Breslaw
d607651fb1
Make the new color picker work in the data tab mode (#8030) 2025-04-02 21:55:49 +03:00
Tobias Hunger
cd6f2e2cf2 ci: Format toml files
... using taplo with default settings

I tried this with 4 spaces indentation, but the patch is almost as
big as this one, so I went with default settings instead as that
is just easier:-)
2025-04-02 11:03:41 +02:00
Nigel Breslaw
51f7834f56
fix: Reszing live-preview could leave the color picker off screen (#8018) 2025-04-01 20:21:21 +03:00
Nigel Breslaw
60234663ad
Add light mode style to color picker (#8016) 2025-04-01 18:53:33 +03:00
Tobias Hunger
1822f95be8
live-preview: Implement backend code to handle tables of live data
This is just the backend side, no UI changes were done.
2025-04-01 17:36:50 +02:00
Nigel Breslaw
03c74383dc
nigel/picker-polish (#8015) 2025-04-01 17:38:36 +03:00
Tobias Hunger
a7b6d3a13b lsp: Update ElementRcNode to return the full debug info 2025-04-01 16:10:10 +02:00
Nigel Breslaw
047377e94a
Simplify the live-preview widget layouts (#8011) 2025-04-01 15:50:05 +03:00
Nigel Breslaw
79382187ef
live-preview: Visual color picker (#7971) 2025-04-01 14:50:19 +03:00
dependabot[bot]
387f144d40
build(deps): bump the react group with 2 updates (#8003) 2025-04-01 10:07:46 +03:00
dependabot[bot]
b4ffef7d39
build(deps-dev): bump vitest from 3.0.9 to 3.1.1 (#8005) 2025-04-01 09:49:35 +03:00
dependabot[bot]
719e8d4e3f
build(deps-dev): bump @lumino/default-theme from 2.1.8 to 2.1.9 (#8006) 2025-04-01 09:49:11 +03:00
dependabot[bot]
32566ce9c9
build(deps-dev): bump @lumino/widgets from 2.6.0 to 2.7.0 (#8007)
Bumps [@lumino/widgets](https://github.com/jupyterlab/lumino) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/jupyterlab/lumino/releases)
- [Changelog](https://github.com/jupyterlab/lumino/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jupyterlab/lumino/compare/@lumino/widgets@2.6.0...@lumino/widgets@2.7.0)

---
updated-dependencies:
- dependency-name: "@lumino/widgets"
  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-03-31 23:31:21 +03:00
dependabot[bot]
2f6b57956f
build(deps-dev): bump vite from 6.2.3 to 6.2.4 (#8004)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.3 to 6.2.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.4/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  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-03-31 23:00:05 +03:00
Tobias Hunger
14b55e54b4 live-preview: Do not pass on signals from "invisible" widgets
This stops e.g. the color widget filling in default values for
empty strings.
2025-03-26 12:54:40 +01:00
dependabot[bot]
74d37a6e25
build(deps-dev): bump vite from 6.2.2 to 6.2.3 (#7955)
* build(deps-dev): bump vite from 6.2.2 to 6.2.3

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.2 to 6.2.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.3/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* dedupe lock-file

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>
2025-03-25 18:15:28 +02:00
szecket
d2e839a7c4 live-preview: Use context menu
... in the spreadsheet.
2025-03-25 15:48:31 +01:00
Tobias Hunger
731289c018 live-preview: Get rid of the "dummy" workaround
... used to get changed notifications for aliased properties.

This was fixed last week, so it is no longer necessary.
2025-03-25 15:47:41 +01:00
Nigel Breslaw
a5993c4e2a
figma: Fix typescript errors not showing in-line for VScode (#7946)
Technically the Figma plugin is two typescript projects. A backend and a frontend. While typechecking via pnpm type-check works correctly, you would see no inline errors in VScode for the backend project. This lead to surpirses latert on when the CI runs the type-check script.

This fixes the issue so the experience inside VScode and from the type-check script match up.
2025-03-25 14:21:46 +02:00
Nigel Breslaw
063678b29c
Stop live-preview checkerboard shifting as window resizes (#7932) 2025-03-24 15:08:50 +02:00
dependabot[bot]
77dde121a3
build(deps): bump the playwright group with 3 updates (#7924)
Bumps the playwright group with 3 updates: [@playwright/test](https://github.com/microsoft/playwright), [playwright-ctrf-json-reporter](https://github.com/ctrf-io/playwright-ctrf-json-report) and [playwright](https://github.com/microsoft/playwright).


Updates `@playwright/test` from 1.51.0 to 1.51.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.51.0...v1.51.1)

Updates `playwright-ctrf-json-reporter` from 0.0.18 to 0.0.19
- [Commits](https://github.com/ctrf-io/playwright-ctrf-json-report/commits)

Updates `playwright` from 1.51.0 to 1.51.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.51.0...v1.51.1)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: playwright
- dependency-name: playwright-ctrf-json-reporter
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: playwright
- dependency-name: playwright
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: playwright
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-24 10:21:31 +02:00
dependabot[bot]
b79ae2a691
build(deps-dev): bump vitest from 3.0.8 to 3.0.9 (#7927)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.0.9/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  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-03-24 09:30:13 +02:00
dependabot[bot]
3b466fc605
build(deps-dev): bump @figma/plugin-typings from 1.107.0 to 1.109.0 (#7926)
Bumps [@figma/plugin-typings](https://github.com/figma/plugin-typings) from 1.107.0 to 1.109.0.
- [Commits](https://github.com/figma/plugin-typings/compare/v1.107.0...v1.109.0)

---
updated-dependencies:
- dependency-name: "@figma/plugin-typings"
  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-03-24 09:28:02 +02:00
dependabot[bot]
924f1f4484
build(deps-dev): bump @types/react from 19.0.10 to 19.0.12 (#7925)
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 19.0.10 to 19.0.12.
- [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-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-03-24 09:27:46 +02:00
Tobias Hunger
e0b6e4f27d live-preview: Fix the gradient becoming inactive till a slider is touched 2025-03-21 18:11:45 +01:00