Skip to content

A Swiss Army knife for developers.

Fixed a bug where WebView can't get the focus because of a semi-transparent border color.

Etienne Baudoux6a4da8318c04
diff --git a/src/dev/impl/DevToys/Themes/Generic.xaml b/src/dev/impl/DevToys/Themes/Generic.xaml
index eca3d768b..7a733c731 100644
--- a/src/dev/impl/DevToys/Themes/Generic.xaml
+++ b/src/dev/impl/DevToys/Themes/Generic.xaml
@@ -8,9 +8,17 @@
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="TextEditorForeground" Color="Black"/>
+
+ <!-- REVIEW: If Navigation View Content Grid Border Brush has transparency, it makes WebView being unclickable (can't get focus),
+ which breaks Monaco Editor. The line below change the border brush to use a solid one (without transparency). -->
+ <StaticResource x:Key="NavigationViewContentGridBorderBrush" ResourceKey="CardStrokeColorDefaultSolidBrush" />
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="TextEditorForeground" Color="#F0F0F0"/>
+
+ <!-- REVIEW: If Navigation View Content Grid Border Brush has transparency, it makes WebView being unclickable (can't get focus),
+ which breaks Monaco Editor. The line below change the border brush to use a solid one (without transparency). -->
+ <StaticResource x:Key="NavigationViewContentGridBorderBrush" ResourceKey="CardStrokeColorDefaultSolidBrush" />
</ResourceDictionary>
<ResourceDictionary x:Key="HighContrast">
<SolidColorBrush x:Key="TextEditorForeground" Color="{ThemeResource TextControlForeground}"/>