From 1599847390e56896edd5a83be4a3cf96203d234c Mon Sep 17 00:00:00 2001 From: rajamatt Date: Thu, 9 May 2024 14:41:31 -0400 Subject: [PATCH] docs: added UnoDspImportColor mention --- doc/material-dsp.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/material-dsp.md b/doc/material-dsp.md index 268c76be9..35b6cb27e 100644 --- a/doc/material-dsp.md +++ b/doc/material-dsp.md @@ -32,6 +32,25 @@ This package will be automatically present in the project after [creating a new * The package is already present when you select _Material_ theme during project creation: ![Selection of Material theme when creating a project using the Uno Template Wizard](assets/material-theme-selection-wizard.png) +It is possible to configure the import process. The _UnoDspImportColors_ item found in the _csproj_ file has a number of attributes we can set: + +| Attribute | Description | Default Value | +|----------------|---------------------------------|-------------------------| +| `Include` | Style files to input | | +| `Generator`* | Type of generator to use | `xaml` | +| `OutputPath` | Path to use for the output | Input file directory | + +\* The possible values for `Generator` are `xaml` and `csharp`. + +```xml + + + +``` + +> [!NOTE] +> The Uno.Sdk will automatically include this configuration for you. Creating a new project with the _CSharpMarkup_ feature will automatically set the generator attribute to _csharp_. It will set the generator to _xaml_ by default. + ## Generating a custom color palette and exporting it as a JSON file 1. Navigate to the [Material Theme Builder](https://m3.material.io/theme-builder#/custom) and select the colors you want to use for your application.