mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add separators between profiles and entries for better visual clarity
This commit is contained in:
parent
731d7e0f6e
commit
06851ab14a
1 changed files with 23 additions and 0 deletions
|
|
@ -224,6 +224,9 @@ internal class ProfileManagerWidget
|
|||
ImGuiHelpers.ScaledDummy(3);
|
||||
ImGui.SameLine();
|
||||
|
||||
// Center text in frame height
|
||||
var textHeight = ImGui.CalcTextSize(profile.Name);
|
||||
ImGui.SetCursorPosY(ImGui.GetCursorPosY() + (ImGui.GetFrameHeight() / 2) - (textHeight.Y / 2));
|
||||
ImGui.Text(profile.Name);
|
||||
|
||||
ImGui.SameLine();
|
||||
|
|
@ -263,6 +266,17 @@ internal class ProfileManagerWidget
|
|||
didAny = true;
|
||||
|
||||
ImGuiHelpers.ScaledDummy(2);
|
||||
|
||||
// Separator if not the last item
|
||||
if (profile != profman.Profiles.Last())
|
||||
{
|
||||
// Very light grey
|
||||
ImGui.PushStyleColor(ImGuiCol.Border, ImGuiColors.DalamudGrey.WithAlpha(0.2f));
|
||||
ImGui.Separator();
|
||||
ImGui.PopStyleColor();
|
||||
|
||||
ImGuiHelpers.ScaledDummy(2);
|
||||
}
|
||||
}
|
||||
|
||||
if (toCloneGuid != null)
|
||||
|
|
@ -523,6 +537,15 @@ internal class ProfileManagerWidget
|
|||
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGui.SetTooltip(Locs.RemovePlugin);
|
||||
|
||||
// Separator if not the last item
|
||||
if (profileEntry != profile.Plugins.Last())
|
||||
{
|
||||
// Very light grey
|
||||
ImGui.PushStyleColor(ImGuiCol.Border, ImGuiColors.DalamudGrey.WithAlpha(0.2f));
|
||||
ImGui.Separator();
|
||||
ImGui.PopStyleColor();
|
||||
}
|
||||
}
|
||||
|
||||
if (wantRemovePluginGuid != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue