mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
995 B
995 B
Shared Assets
See documentation about assets here: https://github.com/unoplatform/uno/blob/master/doc/articles/features/working-with-assets.md
Here is a cheat sheet
- Add the image file to the
Assetsdirectory of a shared project. - Set the build action to
Content. - (Recommended) Provide an asset for various scales/dpi
Examples
\Assets\Images\logo.scale-100.png
\Assets\Images\logo.scale-200.png
\Assets\Images\logo.scale-400.png
\Assets\Images\scale-100\logo.png
\Assets\Images\scale-200\logo.png
\Assets\Images\scale-400\logo.png
Table of scales
| Scale | WinUI | iOS | Android |
|---|---|---|---|
100 |
scale-100 | @1x | mdpi |
125 |
scale-125 | N/A | N/A |
150 |
scale-150 | N/A | hdpi |
200 |
scale-200 | @2x | xhdpi |
300 |
scale-300 | @3x | xxhdpi |
400 |
scale-400 | N/A | xxxhdpi |