From d1cc053842eb76e897ca871638c7f3699fb34835 Mon Sep 17 00:00:00 2001 From: Hamish Duff <99325835+duffh@users.noreply.github.com> Date: Tue, 16 Jan 2024 08:54:07 -0800 Subject: [PATCH] Improve WinUI, UWP, .NET MAUI dark mode handling (#542) * improve dark mode handling of MAUI + UWP + WinUI * Update WInUI + UWP BasemapGallery * update MAUI resources * Improve resource loading for maui converter * Update BasemapGallery.Theme.xaml * Update BasemapGallery.Theme.xaml * Update BasemapGallery.Theme.xaml --- src/Samples/Toolkit.SampleApp.Maui/MainPage.xaml | 10 +++++----- src/Samples/Toolkit.SampleApp.UWP/MainPage.xaml | 6 +++--- .../Toolkit.SampleApp.WinUI/MainWindow.xaml | 6 +++--- .../Assets/{BasemapLight.png => basemap.png} | Bin .../Assets/{BasemapDark.png => basemapdark.png} | Bin .../ByteArrayToImageSourceConverter.cs | 10 +++++++++- .../Esri.ArcGISRuntime.Toolkit.Maui.csproj | 12 +----------- .../BasemapGallery/BasemapGallery.Resources.xaml | 15 +++++++++++++++ src/Toolkit/Toolkit.WinUI/Assets/Basemap.png | Bin 0 -> 1998 bytes src/Toolkit/Toolkit.WinUI/Assets/BasemapDark.png | Bin 0 -> 3222 bytes .../BasemapGallery/BasemapGallery.Resources.xaml | 15 +++++++++++++++ .../BasemapGallery/BasemapGallery.Theme.xaml | 5 +++-- 12 files changed, 54 insertions(+), 25 deletions(-) rename src/Toolkit/Toolkit.Maui/Assets/{BasemapLight.png => basemap.png} (100%) rename src/Toolkit/Toolkit.Maui/Assets/{BasemapDark.png => basemapdark.png} (100%) create mode 100644 src/Toolkit/Toolkit.UWP/UI/Controls/BasemapGallery/BasemapGallery.Resources.xaml create mode 100644 src/Toolkit/Toolkit.WinUI/Assets/Basemap.png create mode 100644 src/Toolkit/Toolkit.WinUI/Assets/BasemapDark.png create mode 100644 src/Toolkit/Toolkit.WinUI/UI/Controls/BasemapGallery/BasemapGallery.Resources.xaml diff --git a/src/Samples/Toolkit.SampleApp.Maui/MainPage.xaml b/src/Samples/Toolkit.SampleApp.Maui/MainPage.xaml index 83f1bd03f..cda781e68 100644 --- a/src/Samples/Toolkit.SampleApp.Maui/MainPage.xaml +++ b/src/Samples/Toolkit.SampleApp.Maui/MainPage.xaml @@ -11,8 +11,8 @@ - - + + @@ -31,13 +31,13 @@