From d0b7795bf3dab58374e41485e2c00c9d0810710e Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Tue, 20 Oct 2020 08:05:06 -0700 Subject: [PATCH] GLFW becoming single window --- Program.cs | 4 ++++ Submodules/agg-sharp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index f4374a278..37f32bb9c 100644 --- a/Program.cs +++ b/Program.cs @@ -35,6 +35,7 @@ using System.Runtime.InteropServices; using System.ServiceModel; using System.ServiceModel.Description; using System.Threading; +using MatterHackers.Agg; using MatterHackers.Agg.Platform; using MatterHackers.Agg.UI; using MatterHackers.MatterControl.DataStorage; @@ -227,6 +228,9 @@ namespace MatterHackers.MatterControl var (width, height) = RootSystemWindow.GetStartupBounds(); var systemWindow = Application.LoadRootWindow(width, height); + + SingleWindowProvider.SetWindowTheme(Color.Black, 12, false, () => new Button("X", 0, 0), 3, Color.LightGray, Color.DarkGray); + systemWindow.ShowAsSystemWindow(); } diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 2796678b1..6a7fde48c 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 2796678b199c420a596e523d5762a2370bc83154 +Subproject commit 6a7fde48cfbb15480629dee42a1272d3a3423fe1