Skip to content

Commit

Permalink
fix: add converters to merged dicts of resources (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 committed Feb 6, 2024
1 parent 413e238 commit 186037c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/Uno.Material/MaterialResourcesV2.cs
Expand Up @@ -21,7 +21,7 @@ public MaterialResourcesV2()
{

Source = new Uri("ms-appx:///Uno.Material/Generated/mergedpages.v2.xaml");
MergedDictionaries.Add(new ResourceDictionary { Source = new Uri("ms-appx:///Uno.Themes/Styles/Application/Common/Converters.xaml") });
MergedDictionaries.Add(new ResourceDictionary { Source = new Uri(Themes.Constants.ConverterResourcePath) });
MergedDictionaries.Add(new MaterialFonts());
MergedDictionaries.Add(new MaterialColorsV2());
}
Expand Down
2 changes: 2 additions & 0 deletions src/library/Uno.Themes/BaseTheme.cs
Expand Up @@ -184,6 +184,7 @@ protected void UpdateSource()
this.Clear();

var colors = new ResourceDictionary { Source = new Uri(Constants.SharedColorsResourcePath) };
var converters = new ResourceDictionary { Source = new Uri(Constants.ConverterResourcePath) };

colors.MergedDictionaries.Add(new ResourceDictionary { Source = new Uri(Constants.SharedColorPaletteResourcePath) });

Expand All @@ -195,6 +196,7 @@ protected void UpdateSource()
var mergedPages = GenerateSpecificResources();

mergedPages.MergedDictionaries.Add(colors);
mergedPages.MergedDictionaries.Add(converters);

MergedDictionaries.Add(mergedPages);
}
Expand Down

0 comments on commit 186037c

Please sign in to comment.