Commit graph

37 commits

Author SHA1 Message Date
Nigel Breslaw
78386d8780
Remove empty NabBars from Material Gallery example (#9522) 2025-09-25 13:20:40 +03:00
Olivier Goffart
4ce64c3478
material: Move the source code to ui-libraries/material/src
That way we can create an archive with just the `src` that doesn't
contains the docs and example that can be moved in that folder
2025-09-24 15:28:06 +02:00
Nigel Breslaw
8e097f3eb9
Animation Typography -> MaterialAnimation MaterialTypography (#9496)
Some checks are pending
CI / mcu (stm32h735g, thumbv7em-none-eabihf) (push) Blocked by required conditions
CI / mcu-embassy (push) Blocked by required conditions
CI / cpp_cmake (ubuntu-22.04, stable) (push) Blocked by required conditions
CI / files-changed (push) Waiting to run
CI / build_and_test (--exclude bevy-example, ubuntu-22.04, 1.85) (push) Blocked by required conditions
CI / mcu (pico2-st7789, thumbv8m.main-none-eabihf) (push) Blocked by required conditions
CI / build_and_test (--exclude ffmpeg --exclude gstreamer-player, --exclude bevy-example, windows-2022, 1.85) (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 / build_and_test (ubuntu-22.04, nightly) (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 / 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
CI / node_test (macos-14) (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-14) (push) Blocked by required conditions
CI / cpp_test_driver (ubuntu-22.04) (push) Blocked by required conditions
CI / cpp_cmake (macos-14, 1.85) (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 / ffi_32bit_build (push) Blocked by required conditions
2025-09-23 17:55:11 +03:00
Simon Hausmann
94bceeab81
CI: Various fixes to the material components CI (#9464)
* CI: Fix working directory for material components specific jobs

* material: use docsnapper from within the repo

* material: unify cargo workspaces

* material: Fix formatting of rust code

* material: Remove duplicated taplo and cargo config

This comes from the root of the git repo.

* material: Fix warnings about use of layout reserved padding properties

These were used as API, but in the absence of being able to override pre-declared properties, these are now renamed with a prefix - they're internal API AFAICS.

* material: use the same pnpm version as in the rest of the repo

* material: Fix working directory for screenshot generation

* material: fix artifact download step for the apk and the wasm gallery

Upload and download need to use the same action versions.

* Material: Fix path the apk

* Material: run wrangler from the material directory

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-22 10:25:06 +03:00
Nigel Breslaw
6667c66b4c material: Fix todo's (https://github.com/slint-ui/material-components/issues/177)
* Fix todo's

* [autofix.ci] apply automated fixes

---------

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

Imported from 09988fb4f6
2025-09-18 15:47:45 +02:00
Nigel Breslaw
b0e3dcbc5c material: CheckBoxListTile -> CheckBoxTile (https://github.com/slint-ui/material-components/issues/175)
Imported from d110bcbbf3
2025-09-18 15:47:45 +02:00
Nigel Breslaw
e3d7e84352 material: TimePicker -> TimePickerPopup (https://github.com/slint-ui/material-components/issues/173)
Imported from 6946eb42ed
2025-09-18 15:47:45 +02:00
Nigel Breslaw
9da99218aa material: placeholder -> placeholder_text (https://github.com/slint-ui/material-components/issues/165)
Imported from 26977613dc
2025-09-18 15:47:45 +02:00
Nigel Breslaw
f0241621c2 material: CheckBox: Various fixes (https://github.com/slint-ui/material-components/issues/164)
* checkbox: various fixes

Removed 'checked'.
error -> has-error.
Added checked-state-changed() callback.
Added set_check_state() function.

* Fix

* Fix

* Fix

Imported from df228143f9
2025-09-18 15:47:45 +02:00
Nigel Breslaw
949d22e7c1 material: Improve slider (https://github.com/slint-ui/material-components/issues/163)
Imported from 0bf972b244
2025-09-18 15:47:45 +02:00
Nigel Breslaw
bf5b699443 material: ProgressIndicator: value -> progress (https://github.com/slint-ui/material-components/issues/161)
Imported from 53f589f596
2025-09-18 15:47:45 +02:00
Nigel Breslaw
f368b401dc material: PopupMenu: Changes (https://github.com/slint-ui/material-components/issues/158)
Imported from 81415330ff
2025-09-18 15:47:45 +02:00
Nigel Breslaw
af51fc57a4 material: Dialog & SnackBar: multi rename (https://github.com/slint-ui/material-components/issues/155)
icon-actions -> action-button-icons.
icon-action() -> icon-button-clicked()
action() -> action-clicked().
default-action() -> default-button-clicked().


Imported from 76f551666e
2025-09-18 15:47:45 +02:00
Nigel Breslaw
d43bc60b09 material: ListItem: action-icon -> action-button-icon (https://github.com/slint-ui/material-components/issues/153)
Imported from a1a8297359
2025-09-18 15:47:45 +02:00
Nigel Breslaw
482c3237c2 material: SegmentedButton: model -> items (https://github.com/slint-ui/material-components/issues/152)
Imported from 4545d04349
2025-09-18 15:47:45 +02:00
Nigel Breslaw
6f8f28ee0a material: empty-badge -> show-badge (https://github.com/slint-ui/material-components/issues/151)
Imported from b8e77998b4
2025-09-18 15:47:45 +02:00
Nigel Breslaw
c2420d0a50 material: icon-selected -> selected-icon (https://github.com/slint-ui/material-components/issues/150)
Imported from ec32ec5250
2025-09-18 15:47:45 +02:00
Nigel Breslaw
4a9192883a material: icon-checked -> checked-icon (https://github.com/slint-ui/material-components/issues/148)
Imported from 6c2a83940b
2025-09-18 15:47:45 +02:00
Nigel Breslaw
ae45308c58 material: current-item -> current-index (https://github.com/slint-ui/material-components/issues/145)
Imported from 073c3302d6
2025-09-18 15:47:45 +02:00
Nigel Breslaw
a2edac554e material: trailing/leading_clicked -> trailing/leading_button_clicked (https://github.com/slint-ui/material-components/issues/144)
Imported from 1a9b97365e
2025-09-18 15:47:45 +02:00
Nigel Breslaw
10a903a2e9 material: leading/trailing_icon -> leading/trailing_button (https://github.com/slint-ui/material-components/issues/143)
Imported from 7c09b88743
2025-09-18 15:47:45 +02:00
Nigel Breslaw
1215b21b07 material: container_background -> show_background (https://github.com/slint-ui/material-components/issues/141)
Imported from 48bafbb3e6
2025-09-18 15:47:45 +02:00
FG
0bcdd08d94 material: example: added palette selection to gallery (https://github.com/slint-ui/material-components/issues/138)
* [autofix.ci] apply automated fixes

---------

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

Imported from 8435c9eaf8
2025-09-18 15:47:45 +02:00
FG
874ae2aa9b material: Components: added DatePickerPopup (https://github.com/slint-ui/material-components/issues/137)
* Components: added DatePickerPopup
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>

Imported from e30c2bc1f4
2025-09-18 15:47:45 +02:00
FloVanGH
9cc99316ea material: Components: added DropDownMenu (https://github.com/slint-ui/material-components/issues/131)
* Components: added DropDownMenu
* [autofix.ci] apply automated fixes
* REUSE

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nigel Breslaw <nigel.breslaw@slint.dev>

Imported from 3ee890853a
2025-09-18 15:47:45 +02:00
FloVanGH
971bff4434 material: Components: added Menu (https://github.com/slint-ui/material-components/issues/130)
* Components: added Menu
* [autofix.ci] apply automated fixes

---------

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

Imported from 599653f7ce
2025-09-18 15:47:45 +02:00
Nigel Breslaw
3effbadc9d material: Fix broken git commands in the templates (https://github.com/slint-ui/material-components/issues/127)
Imported from 99460986b6
2025-09-18 15:47:45 +02:00
FloVanGH
26864c089f material: Added RadioButton and RadioButtonTile (https://github.com/slint-ui/material-components/issues/126)
* Components: added RadioButton and RadioButtonTile
* Components: added docs for RadioButton and RadioButtonTile

* [autofix.ci] apply automated fixes

---------

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

Imported from 752faed7e5
2025-09-18 15:47:45 +02:00
Simon Hausmann
a7c7c65d87 material: Fix typo
Imported from 33e78b0d74
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
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
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
48be0ea815 material: Demo fixes (https://github.com/slint-ui/material-components/issues/51)
Imported from c9f4d4a7f0
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
ea79416517 material: CI: Add a job to build a wasm version of the gallery
Also removed the workflow_run trigger for the ci.yaml file, as that
would make the jobs run on the master sha1, instead of the specific one
for a PR.


Imported from acba8590e6
2025-09-18 15:47:44 +02:00
Olivier Goffart
5cf631fc85 material: Move from component-set to ui-libraries 2025-09-18 15:47:22 +02:00