Fixing theme on added system windows
This commit is contained in:
parent
d0b7795bf3
commit
bd13ec03c2
3 changed files with 18 additions and 2 deletions
|
|
@ -1211,6 +1211,15 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
this.IsReloading = true;
|
||||
|
||||
var theme = ApplicationController.Instance.Theme;
|
||||
SingleWindowProvider.SetWindowTheme(theme.TextColor,
|
||||
theme.DefaultFontSize - 1,
|
||||
theme.InvertIcons,
|
||||
() => theme.CreateSmallResetButton(),
|
||||
theme.ToolbarPadding,
|
||||
theme.TabBarBackground,
|
||||
new Color(theme.PrimaryAccentColor, 175));
|
||||
|
||||
reloadingOverlay = new GuiWidget
|
||||
{
|
||||
HAnchor = HAnchor.Stretch,
|
||||
|
|
|
|||
|
|
@ -229,7 +229,14 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
var systemWindow = Application.LoadRootWindow(width, height);
|
||||
|
||||
SingleWindowProvider.SetWindowTheme(Color.Black, 12, false, () => new Button("X", 0, 0), 3, Color.LightGray, Color.DarkGray);
|
||||
var theme = ApplicationController.Instance.Theme;
|
||||
SingleWindowProvider.SetWindowTheme(theme.TextColor,
|
||||
theme.DefaultFontSize - 1,
|
||||
theme.InvertIcons,
|
||||
() => theme.CreateSmallResetButton(),
|
||||
theme.ToolbarPadding,
|
||||
theme.TabBarBackground,
|
||||
new Color(theme.PrimaryAccentColor, 175));
|
||||
|
||||
systemWindow.ShowAsSystemWindow();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 6a7fde48cfbb15480629dee42a1272d3a3423fe1
|
||||
Subproject commit add8734a2078a9a5430133208daf60728d9444e8
|
||||
Loading…
Add table
Add a link
Reference in a new issue