Commit graph

88 commits

Author SHA1 Message Date
Olivier Goffart
66851b53da material: Don't put link to staging in a public repo
Imported from 2de0be4f79
2025-09-18 15:47:45 +02:00
Nigel Breslaw
a935c9ee7d material: Cache hits mean more ci steps can be skipped (https://github.com/slint-ui/material-components/issues/83)
Imported from a98ffd0333
2025-09-18 15:47:45 +02:00
Nigel Breslaw
f49b7f0f2a material: Optimise astro images (https://github.com/slint-ui/material-components/issues/82)
Imported from 5da4c44f53
2025-09-18 15:47:45 +02:00
Simon Hausmann
34eaf79855 material: doc: Fix up the instructions for building docs to include the docsnapper
Imported from d0d220b4a8
2025-09-18 15:47:45 +02:00
Nigel Breslaw
3c94e8dc22 material: Cache the APK and WASM builds (https://github.com/slint-ui/material-components/issues/81)
The APK and WASM gallery are rebuilt on any CI run. This caches the results and only rebuilds if the gallery and/or ui source files change.

Imported from ab2f9fe664
2025-09-18 15:47:45 +02:00
Nigel Breslaw
f795bfe66f material: Frame the wasm gallery (https://github.com/slint-ui/material-components/issues/80)
Imported from 4b0efc38f5
2025-09-18 15:47:45 +02:00
Nigel Breslaw
30d0310036 material: Align favicons with docs.slint.dev (https://github.com/slint-ui/material-components/issues/77)
* Align favicons with docs.slint.dev

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Imported from d54ba3ac25
2025-09-18 15:47:45 +02:00
Simon Hausmann
cea2101a34 material: Use a scale factor of 3 for all screenshots
Imported from bf604811e6
2025-09-18 15:47:45 +02:00
Simon Hausmann
b75b01a652 material: Add screenshots to doc snippets
... in the cases where it looks good and compiles.


Imported from 674f459975
2025-09-18 15:47:44 +02:00
Simon Hausmann
6b06aff6cd material: Prospective fix for Skia builds
- Disable for wasm
- Install dependencies on linux


Imported from 6b8626c796
2025-09-18 15:47:44 +02:00
Nigel Breslaw
1c153ebde9 material: Use skia
Imported from e2a07a7dbb
2025-09-18 15:47:44 +02:00
Nigel Breslaw
3eaeaf7ab1 material: Fix broken link (https://github.com/slint-ui/material-components/issues/75)
Imported from 5643feef28
2025-09-18 15:47:44 +02:00
Nigel Breslaw
9f02b7ff00 material: Update readme (https://github.com/slint-ui/material-components/issues/74)
Imported from 6620597c08
2025-09-18 15:47:44 +02:00
Nigel Breslaw
7596b75db0 material: Fix light/dark changes (https://github.com/slint-ui/material-components/issues/73)
There were 2 seperate keys used to store the theme for the front page and docs. So changing one, did not change the other. This is now fixed.

Imported from 7946f823bd
2025-09-18 15:47:44 +02:00
Nigel Breslaw
fe4767f498 material: Fix images and logos (https://github.com/slint-ui/material-components/issues/71)
Imported from 53e421d41c
2025-09-18 15:47:44 +02:00
Simon Hausmann
de3bc6d005 material: Dialog: The exported type is called Dialog, not BaseDialog
Imported from 8441b61012
2025-09-18 15:47:44 +02:00
Simon Hausmann
a5b92a4b3a material: Avatar: Export it from index file so that the doc snippets compile
Imported from 351684bf18
2025-09-18 15:47:44 +02:00
Simon Hausmann
8fdd140945 material: FloatingActionButton: Import FABStyle to make the doc snippet compile
Imported from af8ccfa14d
2025-09-18 15:47:44 +02:00
Simon Hausmann
82f9564fd9 material: TimePicker: Improve time property docs
Use the same inline snippet as in the main Slint docs


Imported from adb3eb2786
2025-09-18 15:47:44 +02:00
Simon Hausmann
daa94fa365 material: Modal: Export component so that the provided doc snippet compiles
Imported from a211f7fb9d
2025-09-18 15:47:44 +02:00
Simon Hausmann
5cf7839be6 material: TimePicker: Removed accepted/cancelled callbacks
Those are not implemented


Imported from 8bfcdae3de
2025-09-18 15:47:44 +02:00
Simon Hausmann
c970f2f17c material: TimePicker: Replaced the minute/hour properties with a time property
That way the provided example compiles and reflects the API that's exported.


Imported from 2acb1bd4ea
2025-09-18 15:47:44 +02:00
Simon Hausmann
74123cbfcd material: TimePicker: Fix typo in public hour label property
Imported from 0d471346b3
2025-09-18 15:47:44 +02:00
Simon Hausmann
cf08b23b56 material: Add doc tests
Taken from the slint repo, these verify that the code snippets included in the docs compile.


Imported from d247c2b72c
2025-09-18 15:47:44 +02:00
Simon Hausmann
256dfa7aaa material: Introduce a cargo workspace
Combine the rust wrapper and the rust gallery into one workspace. This makes it easier to add additional cargo projects in the future.

This patch also includes several other small fixes:
- The repo and docs links are changed to point the material components website
- the license of the gallery is adjusted to match the components

Unfortunately, cargo-apk bails out when a Cargo.toml file has workspace definitions combined with package definitions,
so this PR also splits up the crate into a Cargo.toml of its own.


Imported from 471245754e
2025-09-18 15:47:44 +02:00
Nigel Breslaw
710583ace7 material: Tidy site for publishing (https://github.com/slint-ui/material-components/issues/68)
* Tidy site for publishing

1. Link to the getting started guide.
2. Remove the old getting started list as the docs now covers this.
3. Remove the FAQ as it wasn't accurate.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

Imported from 12bd04cf81
2025-09-18 15:47:44 +02:00
Nigel Breslaw
21bed3ceed material: Add getting started guide to docs (https://github.com/slint-ui/material-components/issues/67)
Imported from 13b62b7403
2025-09-18 15:47:44 +02:00
Olivier Goffart
7be79a8000 material: Update README.md (https://github.com/slint-ui/material-components/issues/69)
- Add link to the wasm and APK
- Add link to the docs
- Mention all the different templates


Imported from 89cc10f922
2025-09-18 15:47:44 +02:00
dependabot[bot]
b126733820 material: build(deps-dev): bump cspell from 9.1.1 to 9.1.2 in /docs (https://github.com/slint-ui/material-components/issues/66)
---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 9.1.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>

Imported from ff6ffd8996
2025-09-18 15:47:44 +02:00
dependabot[bot]
7f2d33a1e5 material: build(deps): bump @types/node from 24.0.3 to 24.0.7 in /docs (https://github.com/slint-ui/material-components/issues/65)
---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 24.0.7
  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>

Imported from 30de9a3488
2025-09-18 15:47:44 +02:00
dependabot[bot]
7a1df5fef8 material: build(deps-dev): bump @biomejs/biome from 2.0.4 to 2.0.6 in /docs (https://github.com/slint-ui/material-components/issues/64)
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
  dependency-version: 2.0.6
  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>

Imported from 2a7f781c89
2025-09-18 15:47:44 +02:00
dependabot[bot]
2763a70fe2 material: build(deps): bump astro from 5.10.0 to 5.10.1 in /docs in the starlight_astro group (https://github.com/slint-ui/material-components/issues/63)
* build(deps): bump astro in /docs in the starlight_astro group

---
updated-dependencies:
- dependency-name: astro
  dependency-version: 5.10.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: starlight_astro
...

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>

Imported from 2af0161894
2025-09-18 15:47:44 +02:00
Nigel Breslaw
1ef1bddcab material: Follow favicon best practices (https://github.com/slint-ui/material-components/issues/62)
Imported from fd82f85bc6
2025-09-18 15:47:44 +02:00
Nigel Breslaw
010a6484cf material: Use .ico for favicon (https://github.com/slint-ui/material-components/issues/61)
This ensures it works on safari

Imported from 8f059e1958
2025-09-18 15:47:44 +02:00
Nigel Breslaw
f0316fc3d4 material: Stop favicons being hashed (https://github.com/slint-ui/material-components/issues/60)
Favicons are not showing up in the google search results for docs and this material site. It's possible this is because the favicons are being converted into a file name with a hash e.g. favicon_233242.ico. This ensure they are in the public folder where Astro won't hash them and change the name. This might fix the google search results issue. 

Imported from 385065e768
2025-09-18 15:47:44 +02:00
Nigel Breslaw
8bd4ecdf32 material: Add a favicon to the root (https://github.com/slint-ui/material-components/issues/59)
Imported from 097918e6e0
2025-09-18 15:47:44 +02:00
Nigel Breslaw
e593469aeb material: Delete dead file (https://github.com/slint-ui/material-components/issues/58)
Imported from b9a6c265e7
2025-09-18 15:47:44 +02:00
Nigel Breslaw
c0f7a89a1e material: Improve android download (https://github.com/slint-ui/material-components/issues/56)
Imported from 1f17335a35
2025-09-18 15:47:44 +02:00
Nigel Breslaw
c6932db90e material: Fixes: Privacy redirect, banner being clickable, delete unused content (https://github.com/slint-ui/material-components/issues/55)
Imported from 85d6be9493
2025-09-18 15:47:44 +02:00
Nigel Breslaw
4c61826eb2 material: Show banner even on mobile (https://github.com/slint-ui/material-components/issues/54)
Imported from 18e7293cc3
2025-09-18 15:47:44 +02:00
Nigel Breslaw
351e2dd956 material: Add announcement banner (https://github.com/slint-ui/material-components/issues/53)
Imported from 3fdf54b794
2025-09-18 15:47:44 +02:00
Nigel Breslaw
48be0ea815 material: Demo fixes (https://github.com/slint-ui/material-components/issues/51)
Imported from c9f4d4a7f0
2025-09-18 15:47:44 +02:00
Nigel Breslaw
b7f94fc7af material: Tweak android text (https://github.com/slint-ui/material-components/issues/52)
Imported from dae1c429e7
2025-09-18 15:47:44 +02:00
Nigel Breslaw
7b794f1a51 material: Use slint blue on the logo (https://github.com/slint-ui/material-components/issues/50)
Imported from 04a458c1ec
2025-09-18 15:47:44 +02:00
Simon Hausmann
fef6128e4b material: Fix typo in API
Imported from 2927e7000f
2025-09-18 15:47:44 +02:00
Simon Hausmann
95d16d5482 material: Avoid stack overflows on Windows
Apply guidance from https://docs.slint.dev/latest/docs/slint/guide/platforms/desktop/#rust-stack-overflows


Imported from 42e31d7ea7
2025-09-18 15:47:44 +02:00
Nigel Breslaw
503cba7043 material: Ensure kebab case is used in docs: foo_bar -> foo-bar (https://github.com/slint-ui/material-components/issues/48)
Imported from 0785655db6
2025-09-18 15:47:44 +02:00
Simon Hausmann
bd1c51c760 material: Add get started for the README
Imported from 6ffe66172b
2025-09-18 15:47:44 +02:00
Nigel Breslaw
18749b3206 material: Fix missing defaults and links (https://github.com/slint-ui/material-components/issues/47)
Imported from f846548960
2025-09-18 15:47:44 +02:00
Nigel Breslaw
0ce02e0f04 material: Remove dead styling page (https://github.com/slint-ui/material-components/issues/46)
Imported from edfce1b8f1
2025-09-18 15:47:44 +02:00