diff --git a/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs b/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs index dadf1b5eb71e..dd79ed4b759b 100644 --- a/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs +++ b/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.cs @@ -11,6 +11,7 @@ using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Controls.Primitives; using Microsoft.UI.Xaml.Input; +using Microsoft.UI.Xaml.Markup; using Microsoft.UI.Xaml.Media; namespace Uno.Diagnostics.UI; @@ -110,7 +111,152 @@ private DiagnosticsOverlay(XamlRoot root) overlay.EnqueueUpdate(); }; - DefaultStyleKey = typeof(DiagnosticsOverlay); + Style = (Style)XamlReader.Load(""" + + + + #F9F9F9 + #EBEBEB + #000000 + + + #282828 + #1C1C1C + #FFFFFF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + """); } /// diff --git a/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.xaml b/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.xaml deleted file mode 100644 index 59e36728306c..000000000000 --- a/src/Uno.UI.Toolkit/Diagnostics/DiagnosticsOverlay.xaml +++ /dev/null @@ -1,150 +0,0 @@ - - - - - #F9F9F9 - #EBEBEB - #000000 - - - #282828 - #1C1C1C - #FFFFFF - - - - M0 16.3626V1.36258C0 1.22716 0.0494792 1.10998 0.148438 1.01102C0.247396 0.912059 0.364583 0.862579 0.5 0.862579C0.635417 0.862579 0.752604 0.912059 0.851562 1.01102C0.950521 1.10998 1 1.22716 1 1.36258V16.3626C1 16.498 0.950521 16.6152 0.851562 16.7141C0.752604 16.8131 0.635417 16.8626 0.5 16.8626C0.364583 16.8626 0.247396 16.8131 0.148438 16.7141C0.0494792 16.6152 0 16.498 0 16.3626ZM3 16.3626V1.36258C3 1.22716 3.04948 1.10998 3.14844 1.01102C3.2474 0.912059 3.36458 0.862579 3.5 0.862579C3.63542 0.862579 3.7526 0.912059 3.85156 1.01102C3.95052 1.10998 4 1.22716 4 1.36258V16.3626C4 16.498 3.95052 16.6152 3.85156 16.7141C3.7526 16.8131 3.63542 16.8626 3.5 16.8626C3.36458 16.8626 3.2474 16.8131 3.14844 16.7141C3.04948 16.6152 3 16.498 3 16.3626Z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Uno.UI.Toolkit/Themes/Generic.xaml b/src/Uno.UI.Toolkit/Themes/Generic.xaml index 2eea4d3f8536..169b96a5c889 100644 --- a/src/Uno.UI.Toolkit/Themes/Generic.xaml +++ b/src/Uno.UI.Toolkit/Themes/Generic.xaml @@ -2,10 +2,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:toolkit="using:Uno.UI.Toolkit"> - - - -