Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Improve docs #210

Merged
merged 4 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 34 additions & 34 deletions doc/uno-resizetizer-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,56 @@ uid: Overview.Uno.Resizetizer.Properties

# Resizetizer Properties

Resizetizer has support for three items they are:
Resizetizer has support for the following three items:

* UnoIcon
* UnoImage
* UnoSplashScreen
* `UnoIcon`
* `UnoImage`
* `UnoSplashScreen`

Each of these items have properties that allow you to influence the behavior of the generated asset, at this page you can find all available properties for each item their meaning.
Each of these items has properties that allow you to influence the behavior of the generated asset. In this page, you can find all available properties for each item and their meanings.

## Global Properties

Properties that can be used across all items

| Property Name | Description |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| BaseSize | Used to specify the size that will be used as a basement for the resize operations. e.g.: `BaseSize="48,48"` |
| Link | Used to specify a custom path for your image, this path should be used inside your application when you want to reference the image |
| Resize | Boolean value to say if the asset should Resized or not. By default just vectors asset are resized by default |
| TintColor | Color that will be used to tint the image during the resize phase. You can use a Hex value or a named value like `Fuchsia` |
| Color | Color that will be used as a background color |
|---------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `BaseSize` | Used to specify the size that will be used as a basement for the resize operations. e.g.: `BaseSize="48,48"` |
| `Link` | Used to specify a custom path for your image, this path should be used inside your application when you want to reference the image |
| `Resize` | Boolean value to say if the asset should Resized or not. By default just vectors asset are resized by default |
| `TintColor` | Color that will be used to tint the image during the resize phase. You can use a Hex value or a named value like `Fuchsia` |
| `Color` | Color that will be used as a background color |

## UnoIcon

| Property Name | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Include | Used to insert the path of the Background image. |
| ForegroundFile | Used to insert the path of the Foreground image |
| ForegroundScale | Used to rescale the Foreground image, in order to fit on the app icon, it's a percentage value so `0.33` will be translatated as 33%. |
| AndroidForegroundScale | The same as ForegroundScale, but the value will be applied just for Android. |
| WasmForegroundScale | The same as ForegroundScale, but the value will be applied just for Wasm |
| WindowsForegroundScale | The same as ForegroundScale, but the value will be applied just for Windows |
| IOSForegroundScale | The same as ForegroundScale, but the value will be applied just for iOS |
| SkiaForegroundScale | The same as ForegroundScale, but the value will be applied just for Skia targets |
| Property Name | Description |
|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| `Include` | Used to insert the path of the Background image. |
| `ForegroundFile` | Used to insert the path of the Foreground image |
| `ForegroundScale` | Used to rescale the Foreground image, in order to fit on the app icon, it's a percentage value so `0.33` will be translated as 33%. |
| `AndroidForegroundScale` | The same as ForegroundScale, but the value will be applied just for Android. |
| `WasmForegroundScale` | The same as ForegroundScale, but the value will be applied just for Wasm |
| `WindowsForegroundScale` | The same as ForegroundScale, but the value will be applied just for Windows |
| `IOSForegroundScale` | The same as ForegroundScale, but the value will be applied just for iOS |
| `SkiaForegroundScale` | The same as ForegroundScale, but the value will be applied just for Skia targets |

> [!NOTE]
> The PlatformsForegroundScale (AndroidForegroundScale, WasmForegroundScale, etc) will override the global ForegroundScale value.
> The `<PLATFORM>ForegroundScale` (`AndroidForegroundScale`, `WasmForegroundScale`, etc) will override the global `ForegroundScale` value.

## UnoImage

| Property Name | Description |
| ------------- | ----------- |
| Include | Used to insert the path of the image asset, could be a `png` or `svg`. |
| Property Name | Description |
|---------------|------------------------------------------------------------------------|
| `Include` | Used to insert the path of the image asset, could be a `png` or `svg`. |

## UnoSplashScreen

| Property Name | Description |
| ------------- | ----------- |
| Include | Used to insert the path of the image asset, could be a `png` or `svg`. |
| Scale | Used to scale the image that will be used as SplashScreen. This property will be override by any platform specific scale. |
| AndroidScale | Used to scale the image that will be used as SplashScreen on Android platform. |
| IOSScale | Used to scale the image that will be used as SplashScreen on iOS platform. |
| WindowsScale | Used to scale the image that will be used as SplashScreen on Windows platform. |
| WasmScale | Used to scale the image that will be used as SplashScreen on Wasm. |
| SkiaScale | Used to scale the image that will be used as SplashScreen on Skia targets (GTK and WPF). |
| Property Name | Description |
|----------------|---------------------------------------------------------------------------------------------------------------------------|
| `Include` | Used to insert the path of the image asset, could be a `png` or `svg`. |
| `Scale` | Used to scale the image that will be used as SplashScreen. This property will be overridden by any platform specific scale. |
| `AndroidScale` | Used to scale the image that will be used as SplashScreen on Android platform. |
| `IOSScale` | Used to scale the image that will be used as SplashScreen on iOS platform. |
| `WindowsScale` | Used to scale the image that will be used as SplashScreen on Windows platform. |
| `WasmScale` | Used to scale the image that will be used as SplashScreen on Wasm. |
| `SkiaScale` | Used to scale the image that will be used as SplashScreen on Skia targets (GTK and WPF). |
Loading
Loading