Skip to content

A Swiss Army knife for developers.

Improved UI

Etienne Baudoux28c129fcd777
diff --git a/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs b/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs
index 47ac8d8ae..0b4184a88 100644
--- a/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs
+++ b/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingGroupPresenter.xaml.cs
@@ -124,6 +124,7 @@ public sealed partial class UISettingGroupPresenter : Expander
DataContext = element,
CornerRadius = cornerRadius
};
+ settingPresenter.ClearBackground();
ContentStackPanel.Children.Add(settingPresenter);
}
diff --git a/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingPresenter.xaml.cs b/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingPresenter.xaml.cs
index b3d2402ad..409c059f2 100644
--- a/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingPresenter.xaml.cs
+++ b/src/app/dev/DevToys.UI.Framework/Controls/GuiTool/UISettingPresenter.xaml.cs
@@ -18,6 +18,11 @@ public sealed partial class UISettingPresenter : UserControl
internal IUISetting UISetting => (IUISetting)DataContext;
+ internal void ClearBackground()
+ {
+ NonExpanderGrid.Background = null;
+ }
+
private void UISettingPresenter_Loaded(object sender, RoutedEventArgs e)
{
UISetting.IsEnabledChanged += UISetting_IsEnabledChanged;