mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 06:17:43 +01:00
parent
b601bfdbfb
commit
61423f1791
1 changed files with 3 additions and 2 deletions
|
|
@ -11,6 +11,7 @@ using Dalamud.Game.ClientState.Keys;
|
||||||
using Dalamud.Interface.Colors;
|
using Dalamud.Interface.Colors;
|
||||||
using Dalamud.Interface.Components;
|
using Dalamud.Interface.Components;
|
||||||
using Dalamud.Interface.Internal;
|
using Dalamud.Interface.Internal;
|
||||||
|
using Dalamud.Interface.Internal.Windows.StyleEditor;
|
||||||
using Dalamud.Interface.Textures.Internal;
|
using Dalamud.Interface.Textures.Internal;
|
||||||
using Dalamud.Interface.Textures.TextureWraps;
|
using Dalamud.Interface.Textures.TextureWraps;
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
|
|
@ -461,7 +462,7 @@ public abstract class Window
|
||||||
ImGuiHelpers.ForceNextWindowMainViewport();
|
ImGuiHelpers.ForceNextWindowMainViewport();
|
||||||
|
|
||||||
var wasFocused = this.IsFocused;
|
var wasFocused = this.IsFocused;
|
||||||
if (wasFocused)
|
if (wasFocused && this is not StyleEditorWindow)
|
||||||
{
|
{
|
||||||
var style = ImGui.GetStyle();
|
var style = ImGui.GetStyle();
|
||||||
var focusedHeaderColor = style.Colors[(int)ImGuiCol.TitleBgActive];
|
var focusedHeaderColor = style.Colors[(int)ImGuiCol.TitleBgActive];
|
||||||
|
|
@ -616,7 +617,7 @@ public abstract class Window
|
||||||
this.DrawTitleBarButtons();
|
this.DrawTitleBarButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wasFocused)
|
if (wasFocused && this is not StyleEditorWindow)
|
||||||
{
|
{
|
||||||
ImGui.PopStyleColor();
|
ImGui.PopStyleColor();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue