diff --git a/Dalamud.CorePlugin/PluginWindow.cs b/Dalamud.CorePlugin/PluginWindow.cs
index c54c032c6..6a45941f2 100644
--- a/Dalamud.CorePlugin/PluginWindow.cs
+++ b/Dalamud.CorePlugin/PluginWindow.cs
@@ -13,9 +13,6 @@ namespace Dalamud.CorePlugin
///
internal class PluginWindow : Window, IDisposable
{
- private Vector4 bgCol = ImGuiColors.HealerGreen;
- private Vector4 textCol = ImGuiColors.DalamudWhite;
-
///
/// Initializes a new instance of the class.
///
@@ -41,21 +38,6 @@ namespace Dalamud.CorePlugin
///
public override void Draw()
{
- ImGui.ColorPicker4("bg", ref this.bgCol);
- ImGui.ColorPicker4("text", ref this.textCol);
-
- ImGui.PushStyleColor(ImGuiCol.ChildBg, this.bgCol);
- ImGui.PushStyleColor(ImGuiCol.Text, this.textCol);
-
- if (ImGui.BeginChild("##changelog", new Vector2(-1, 100), true, ImGuiWindowFlags.NoNavFocus | ImGuiWindowFlags.NoNavInputs | ImGuiWindowFlags.AlwaysAutoResize))
- {
- ImGui.Text("Changelog:");
- ImGuiHelpers.ScaledDummy(2);
- ImGui.TextWrapped("* ASIhif ai fdh adhsfuoadf\n* IUHoiaudsfh adsof hioaudshfuio husiodfh\n* A iiaojfdpasd ijopadfnklafwjenalkfjensgdlkjnasasdfbhnj");
- }
-
- ImGui.EndChild();
- ImGui.PopStyleColor(2);
}
}
}
diff --git a/Dalamud/Dalamud.cs b/Dalamud/Dalamud.cs
index fdcaa2d44..0fa16b0d9 100644
--- a/Dalamud/Dalamud.cs
+++ b/Dalamud/Dalamud.cs
@@ -104,11 +104,6 @@ namespace Dalamud
Service.Set();
-#if DEBUG
- Service.Set();
- Log.Information("[T1] TaskTracker OK!");
-#endif
-
// Initialize the process information.
Service.Set(new SigScanner(true));
Service.Set();
@@ -121,6 +116,10 @@ namespace Dalamud
var framework = Service.Set();
Log.Information("[T1] Framework OK!");
+#if DEBUG
+ Service.Set();
+ Log.Information("[T1] TaskTracker OK!");
+#endif
Service.Set();
Service.Set();
diff --git a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleModel.cs b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleModel.cs
index 7fa7a5b4f..0f5effe11 100644
--- a/Dalamud/Interface/Internal/Windows/StyleEditor/StyleModel.cs
+++ b/Dalamud/Interface/Internal/Windows/StyleEditor/StyleModel.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Numerics;
@@ -12,7 +12,7 @@ namespace Dalamud.Interface.Internal.Windows.StyleEditor
///
/// Class representing a serializable ImGui style.
///
- public class StyleModel
+ internal class StyleModel
{
///
/// Initializes a new instance of the class.
diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs
index dc8e47b6d..f173f8256 100644
--- a/Dalamud/Interface/Windowing/Window.cs
+++ b/Dalamud/Interface/Windowing/Window.cs
@@ -193,24 +193,37 @@ namespace Dalamud.Interface.Windowing
this.OnOpen();
}
+ var wasFocused = this.IsFocused;
+ if (wasFocused)
+ {
+ var style = ImGui.GetStyle();
+ var focusedHeaderColor = style.Colors[(int)ImGuiCol.TitleBgActive];
+ ImGui.PushStyleColor(ImGuiCol.TitleBgCollapsed, focusedHeaderColor);
+ }
+
if (ImGui.Begin(this.WindowName, ref this.internalIsOpen, this.Flags))
{
// Draw the actual window contents
this.Draw();
+ }
- this.IsFocused = ImGui.IsWindowFocused(ImGuiFocusedFlags.RootAndChildWindows);
+ if (wasFocused)
+ {
+ ImGui.PopStyleColor();
+ }
- var escapeDown = Service.Get()[VirtualKey.ESCAPE];
- var isAllowed = Service.Get().IsFocusManagementEnabled;
- if (escapeDown && this.IsFocused && isAllowed && !wasEscPressedLastFrame && this.RespectCloseHotkey)
- {
- this.IsOpen = false;
- wasEscPressedLastFrame = true;
- }
- else if (!escapeDown && wasEscPressedLastFrame)
- {
- wasEscPressedLastFrame = false;
- }
+ this.IsFocused = ImGui.IsWindowFocused(ImGuiFocusedFlags.RootAndChildWindows);
+
+ var escapeDown = Service.Get()[VirtualKey.ESCAPE];
+ var isAllowed = Service.Get().IsFocusManagementEnabled;
+ if (escapeDown && this.IsFocused && isAllowed && !wasEscPressedLastFrame && this.RespectCloseHotkey)
+ {
+ this.IsOpen = false;
+ wasEscPressedLastFrame = true;
+ }
+ else if (!escapeDown && wasEscPressedLastFrame)
+ {
+ wasEscPressedLastFrame = false;
}
ImGui.End();
diff --git a/Dalamud/Interface/Windowing/WindowSystem.cs b/Dalamud/Interface/Windowing/WindowSystem.cs
index 5f6334e8e..16dfcdf5c 100644
--- a/Dalamud/Interface/Windowing/WindowSystem.cs
+++ b/Dalamud/Interface/Windowing/WindowSystem.cs
@@ -107,7 +107,7 @@ namespace Dalamud.Interface.Windowing
ImGuiManagedAsserts.ReportProblems(source, snapshot);
}
- var focusedWindow = this.windows.FirstOrDefault(x => x.IsFocused && x.RespectCloseHotkey);
+ var focusedWindow = this.windows.FirstOrDefault(window => window.IsFocused && window.RespectCloseHotkey);
this.HasAnyFocus = focusedWindow != default;
if (this.HasAnyFocus)