Skip to content

Commit

Permalink
chore: use ColorPaletteOverride.json instead
Browse files Browse the repository at this point in the history
(cherry picked from commit 33b85df)
  • Loading branch information
iurycarlos authored and mergify[bot] committed May 22, 2024
1 parent 52484c7 commit 75e5f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/material-dsp.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ This package will be automatically present in the project after [creating a new

![Export Button](assets/material-theme-builder-export1.png) ![DSP Selection](assets/material-theme-builder-export2.png)
3. Save the file to your computer.
4. Replace the file `material-theme.json` in the `Styles` folder of your application project with the one you just downloaded.
4. Replace the file `ColorPaletteOverride.json` in the `Styles` folder of your application project with the one you just downloaded.
5. Build your application. The `ColorPaletteOverride.xaml` file will be automatically updated with the colors present in the JSON file.

## More flexibility

This will generate the file at each build, potentially overriding any changes you made to the file. If you want to keep it that way, you can simply remove the `material-theme.json` file from the `Styles` folder, the file won't get overwritten anymore.
This will generate the file at each build, potentially overriding any changes you made to the file. If you want to keep it that way, you can simply remove the `ColorPaletteOverride.json` file from the `Styles` folder, the file won't get overwritten anymore.

Alternatively, you can also use the [Uno.Dsp.Cli](https://nuget.org/packages/Uno.Dsp.Cli) package to generate the file from the command line. This will allow you to generate the file only when you want to, and not at each build.

Expand Down

0 comments on commit 75e5f1d

Please sign in to comment.