From 841551f14b2db3033bb57213a533fef3fd99f924 Mon Sep 17 00:00:00 2001 From: Vatsa Shah Date: Tue, 10 Oct 2023 12:03:02 -0400 Subject: [PATCH] fix: Adding a note to mention that Material Brush resources should be referenced using ThemeResource --- doc/material-migration.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/material-migration.md b/doc/material-migration.md index 4eeb4bc5f..df75c871f 100644 --- a/doc/material-migration.md +++ b/doc/material-migration.md @@ -364,6 +364,10 @@ The v2 styles introduce a new naming system for its resource keys. Refer to the ### Color Update A new color palette has been created for v2, meaning any color palette overrides ResourceDictionary in your app must be updated with the new resource keys. An example of the new color palette can be seen in the new [Uno.Material default palette](https://github.com/unoplatform/Uno.Themes/blob/master/src/library/Uno.Material/Styles/Application/v2/SharedColorPalette.xaml). For more information on the updated colors, you can refer to the "Colors and Themes" section of the [Material 3 Migration Guide](https://material.io/blog/migrating-material-3). + > [!NOTE] +> As of v2, the Brush resources have been relocated to ThemeDictionaries. To reference these Brush resources, use the `ThemeResource` binding. +> More information on theme resources can be found [here](https://learn.microsoft.com/en-us/windows/apps/design/style/xaml-theme-resources) + ### Typography Updates Text styles have also been modified in v2. There are no 1-to-1 mapping between v1 and v2 text styles in terms of font-sizes and usages. The "Typography" section of the [Material 3 Migration Guide](https://material.io/blog/migrating-material-3) can be helpful for choosing the right style. @@ -404,4 +408,4 @@ ToggleButton|MaterialToggleButtonIconStyle|MaterialIconToggleButtonStyle| Namespace|Previous Package|New Package| -|-|- ControlExtensions.Icon|Uno.Material.Extensions|Uno.Material| -Ripple|Uno.Material.Controls|Uno.Material| \ No newline at end of file +Ripple|Uno.Material.Controls|Uno.Material|