Commit graph

2197 commits

Author SHA1 Message Date
szecket
5a147e4fb4 shifted display of radial gradient to match dot locations 2025-03-21 18:11:45 +01:00
szecket
1206109179 added extra border to gradient dot to increase visibility 2025-03-21 18:11:45 +01:00
szecket
9748d75885 update value of angle when interacting with dial 2025-03-21 18:11:45 +01:00
szecket
0c3a095d76 live-preview: fixing lipstick, margin, inconsistent heights, adding the dial back in 2025-03-21 18:11:45 +01:00
szecket
daae2bb4c4 live-preview: added angle label tp brush widget 2025-03-21 18:11:45 +01:00
Tobias Hunger
b1200a1833 live-preview: Polish BrushWidget
It now works, provided the first thing you do is
to drag one of the color sliders ;-)
2025-03-21 18:11:45 +01:00
Tobias Hunger
8c68483b8c live-preview: Split up ColorWidget functionality into reuseble parts 2025-03-21 18:11:45 +01: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
4cc7297188 live-preview: Make the "preview" part of the gradient edit work
... including adding/removing values and such. Whoho.
2025-03-21 18:11:45 +01:00
szecket
10907618d3 live-preview: Add some gradient widget component 2025-03-21 18:11:45 +01:00
Tobias Hunger
9020f6e537 live-preview: Add rudimentary BrushWidget
... and add helper code to enable the backend to set/show
Brush information.
2025-03-21 18:11:45 +01:00
Nigel Breslaw
fd330b655e
live-preview: Don't let unselect work when clicking on live content (#7897) 2025-03-20 17:05:18 +02:00
dependabot[bot]
93ec030a7e
build(deps-dev): bump vite-plugin-singlefile from 2.1.0 to 2.2.0 (#7836)
Bumps [vite-plugin-singlefile](https://github.com/richardtallent/vite-plugin-singlefile) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/richardtallent/vite-plugin-singlefile/releases)
- [Changelog](https://github.com/richardtallent/vite-plugin-singlefile/blob/main/CHANGELOG.md)
- [Commits](https://github.com/richardtallent/vite-plugin-singlefile/commits)

---
updated-dependencies:
- dependency-name: vite-plugin-singlefile
  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-18 14:38:15 +02:00
dependabot[bot]
61cf8d382d
build(deps-dev): bump vitest from 3.0.6 to 3.0.8 (#7837)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 3.0.6 to 3.0.8.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.0.8/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-18 13:10:43 +02:00
ogoffart
178cf21c2e Bump version number to 1.11.0 2025-03-18 09:48:22 +00:00
dependabot[bot]
c4b1074df5
build(deps-dev): bump shiki from 3.0.0 to 3.2.1 (#7872)
Bumps [shiki](https://github.com/shikijs/shiki/tree/HEAD/packages/shiki) from 3.0.0 to 3.2.1.
- [Release notes](https://github.com/shikijs/shiki/releases)
- [Commits](https://github.com/shikijs/shiki/commits/v3.2.1/packages/shiki)

---
updated-dependencies:
- dependency-name: shiki
  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-17 11:36:17 +02:00
dependabot[bot]
a42d382878
build(deps-dev): bump vite from 6.2.1 to 6.2.2 (#7870)
* build(deps-dev): bump vite from 6.2.1 to 6.2.2

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.2/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>

* pnpm audit --fix

---------

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-17 11:33:02 +02:00
dependabot[bot]
f5803f8017
build(deps-dev): bump vite from 6.2.0 to 6.2.1 (#7838) 2025-03-13 21:10:43 +02:00
dependabot[bot]
ab9ae89510
build(deps): bump the playwright group with 2 updates (#7834) 2025-03-13 19:29:15 +02:00
autofix-ci[bot]
9fdb122ecb [autofix.ci] apply automated fixes 2025-03-12 16:31:10 +01:00
Tobias Hunger
5e5ac0d1b4 live-preview: Polish the property widgets a bit
Use a GridLayout, that seems simpler and add a bit of extra padding.
2025-03-12 16:31:10 +01:00
Tobias Hunger
f6f8d92cec live-preview: Bring back the JSON editor till the table works!
I accidentally disabled the JSON editor for "table-like" elements.
Bring it back for now.
2025-03-07 14:58:42 +01:00
Tobias Hunger
9f91a60ca7 live-preview: Show name of component instead of <MAIN>
... when that data is available ... which should be basically
all the time ;-)
2025-03-06 17:39:01 +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
7da7e10435 live-preview: Fix get_property_value_table
... to actually use the code that is also used by
the tests :-)
2025-03-06 12:01:41 +01:00
Tobias Hunger
a90bb8d41b live-preview: Export live preview table data from BL 2025-03-06 09:02:33 +01:00
Tobias Hunger
b706e7a019 live-preview: Add EditMultiValueWidget
back in. It should open a spreadsheet view for
table-like data in the live data preview.
2025-03-06 09:02:33 +01:00
Tobias Hunger
5fcf6da7d2 live-preview: Spreadsheet UI files
... bring back the spreadsheet UI files.
2025-03-06 09:02:33 +01:00
Tobias Hunger
208723d8f7 live-preview: WindowGlobal object added
... so we can know the window size everywhere.
2025-03-06 09:02:33 +01:00
Simon Hausmann
b625ad9722 Disable jemalloc on Windows
Upstream isn't even compile-testing on Windows ( https://github.com/tikv/jemallocator/blob/main/.github/workflows/main.yml ), so we should disable it as well.

This should fix the build failing with mingw.
2025-03-05 14:24:27 +01:00
dependabot[bot]
efb4d23f38
build(deps): bump typescript from 5.7.3 to 5.8.2 (#7780)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.3 to 5.8.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  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-04 16:39:14 +02:00
Tobias Hunger
590a021957 live-preview: Report errors when setting preview data
... into the StatusLine.
2025-03-04 10:41:23 +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
9c5dfd4587 live-preview: Fix panic when adding properties 2025-03-04 10:40:42 +01:00
Simon Hausmann
98c1666f05 In the Figma Inspector README, mention how to install the released version 2025-02-28 11:46:24 +01:00
Tobias Hunger
5eef8517e5 live-preview: No translation for strings in Preview Data mode
We can not transfer translation data over JSOn at this time,
so setting the trnaslation related flags breaks the UI.

It also makes little sense to set translatable strings at the level
of live data: That is the data in the application after the
translations were already applied.
2025-02-27 22:56:18 +01:00
Tobias Hunger
6abc789aaa
slintpad: Update demo list (#7756)
slintpad: Update demo list

* Add all the fancy things @NigelBreslaw made

Co-authored-by: Simon Hausmann <hausmann@gmail.com>
2025-02-27 13:59:13 +01:00
Tobias Hunger
64ac3b15b1 slintpad: Fix unloading of files from our virtual filesystem 2025-02-26 14:52:31 +01:00
Nigel Breslaw
d7076a6f0d format:fix 2025-02-26 10:37:49 +01:00
Nigel Breslaw
4a6c2f1b40 Show some basic properties for unsupported nodes
And a comment that the node is unsupported
2025-02-26 10:37:49 +01:00
Tobias Hunger
c65fa456ce live-preview: Try to improve the Color Widget further
At least it does set values again in Property Editor mode
and seems to work fine in general for me. But then I
think I said the same about 10 times today...
2025-02-26 08:57:19 +01:00
Tobias Hunger
77f676d69d
live-preview: Update the live-preview data model (#7741)
... on reloads. That is needed to make the UI aware
of the new data.

I tried to be clever and not update widgets on model
changes, but that is not a problem anymore as all
the property values are no longer passed through
the model. So the only reason to update the model now
is because the code was loaded fresh and we *need*
to refresh the entire UI in that case.
2025-02-26 11:00:06 +13:00
Tobias Hunger
9679657bc6 live-preview: "Fix" types with units
We have several types that all support a range of units.
Internally all those units match back to one "base unit"
that the type is measured in.

In the spirit of simplicity: Support only that base unit
for now.

We need a more elaborate JSON scheme to pass units around
with those numbers :-/
2025-02-25 22:33:43 +01:00
Tobias Hunger
83f55a35f6 slintpad: Add home automation demo 2025-02-25 21:01:21 +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
Simon Hausmann
d79689984e Upgrade muda 2025-02-25 16:08:48 +01:00
dependabot[bot]
aead591abe
build(deps-dev): bump vite from 6.1.0 to 6.2.0 (#7732)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.2.0/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  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-02-25 15:11:40 +02:00
Nigel Breslaw
3276b4fe25
Publish Figma Plugin to store (#7735)
This fixes the project so it can be published.
This documents the publishing process.
This fixes a few bugs in the plugin, especially for the non dev mode where things would fail to refresh as the Figma file is edited.
2025-02-25 15:11:19 +02:00
Nigel Breslaw
0eec751d16
Figma plugin update for non dev mode (#7698)
This PR adds a floating window to the free non dev mode of Figma showing the slint properties for any selected item.

It also enables type checking for the project in CI.

It brings back the React frontend code. More documentation is needed.
2025-02-25 10:41:11 +02:00
autofix-ci[bot]
27f2d1418c [autofix.ci] apply automated fixes 2025-02-24 19:08:08 +01:00