Skip to content

Commit

Permalink
Merge pull request #82 from Damon3000s/fix-imgui-compile-errors
Browse files Browse the repository at this point in the history
Fix ImGui compile errors
  • Loading branch information
matt-edmondson authored Jan 9, 2025
2 parents 9ac32d6 + a120a7d commit a2887ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ImGuiStyler/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static void Apply(ImColor baseColor)
colors[(int)ImGuiCol.FrameBg] = normalColor.Value;
colors[(int)ImGuiCol.FrameBgActive] = activeColor.Value;
colors[(int)ImGuiCol.FrameBgHovered] = hoveredColor.Value;
colors[(int)ImGuiCol.NavHighlight] = activeColor.Value;
colors[(int)ImGuiCol.NavCursor] = activeColor.Value;
colors[(int)ImGuiCol.ResizeGrip] = normalColor.Value;
colors[(int)ImGuiCol.ResizeGripActive] = activeColor.Value;
colors[(int)ImGuiCol.ResizeGripHovered] = hoveredColor.Value;
Expand Down Expand Up @@ -240,7 +240,7 @@ public ScopedThemeColor(ImColor baseColor, bool enabled)
PushStyleAndCount(ImGuiCol.FrameBg, normalColor, ref numStyles);
PushStyleAndCount(ImGuiCol.FrameBgActive, activeColor, ref numStyles);
PushStyleAndCount(ImGuiCol.FrameBgHovered, hoveredColor, ref numStyles);
PushStyleAndCount(ImGuiCol.NavHighlight, normalColor, ref numStyles);
PushStyleAndCount(ImGuiCol.NavCursor, normalColor, ref numStyles);
PushStyleAndCount(ImGuiCol.ResizeGrip, normalColor, ref numStyles);
PushStyleAndCount(ImGuiCol.ResizeGripActive, activeColor, ref numStyles);
PushStyleAndCount(ImGuiCol.ResizeGripHovered, hoveredColor, ref numStyles);
Expand Down
2 changes: 1 addition & 1 deletion ImGuiStylerDemo/ImGuiStylerDemo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private void OnTick(float dt)
ImGui.TextUnformatted(textToCenter);
}

ImGui.BeginChild("Child", new(100, 100), ImGuiChildFlags.Border);
ImGui.BeginChild("Child", new(100, 100), ImGuiChildFlags.Borders);
string textToCenterLong = "Loooooooooong Centered Text";
var longTextSize = ImGui.CalcTextSize(textToCenterLong);
using (new Alignment.Center(longTextSize))
Expand Down

0 comments on commit a2887ec

Please sign in to comment.