Make syncshell list more consistent with the pair group list
This commit is contained in:
@@ -191,15 +191,13 @@ internal sealed class GroupPanel
|
|||||||
isExpanded = false;
|
isExpanded = false;
|
||||||
_expandedGroupState.Add(groupDto.GID, isExpanded);
|
_expandedGroupState.Add(groupDto.GID, isExpanded);
|
||||||
}
|
}
|
||||||
|
|
||||||
var icon = isExpanded ? FontAwesomeIcon.CaretSquareDown : FontAwesomeIcon.CaretSquareRight;
|
var icon = isExpanded ? FontAwesomeIcon.CaretSquareDown : FontAwesomeIcon.CaretSquareRight;
|
||||||
var collapseButton = UiSharedService.GetIconButtonSize(icon);
|
UiSharedService.FontText(icon.ToIconString(), UiBuilder.IconFont);
|
||||||
ImGui.PushStyleColor(ImGuiCol.Button, new Vector4(0, 0, 0, 0));
|
if (ImGui.IsItemClicked(ImGuiMouseButton.Left))
|
||||||
ImGui.PushStyleColor(ImGuiCol.ButtonHovered, new Vector4(0, 0, 0, 0));
|
|
||||||
if (ImGuiComponents.IconButton(icon))
|
|
||||||
{
|
{
|
||||||
_expandedGroupState[groupDto.GID] = !_expandedGroupState[groupDto.GID];
|
_expandedGroupState[groupDto.GID] = !_expandedGroupState[groupDto.GID];
|
||||||
}
|
}
|
||||||
ImGui.PopStyleColor(2);
|
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
|
|
||||||
var textIsGid = true;
|
var textIsGid = true;
|
||||||
@@ -394,7 +392,7 @@ internal sealed class GroupPanel
|
|||||||
ImGui.EndPopup();
|
ImGui.EndPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.Indent(collapseButton.X);
|
ImGui.Indent(20);
|
||||||
if (_expandedGroupState[groupDto.GID])
|
if (_expandedGroupState[groupDto.GID])
|
||||||
{
|
{
|
||||||
var visibleUsers = pairsInGroup.Where(u => u.IsVisible)
|
var visibleUsers = pairsInGroup.Where(u => u.IsVisible)
|
||||||
@@ -455,7 +453,7 @@ internal sealed class GroupPanel
|
|||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
ImGui.Unindent(ImGui.GetStyle().ItemSpacing.X / 2);
|
ImGui.Unindent(ImGui.GetStyle().ItemSpacing.X / 2);
|
||||||
}
|
}
|
||||||
ImGui.Unindent(collapseButton.X);
|
ImGui.Unindent(20);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DrawSyncShellButtons(GroupFullInfoDto groupDto, List<Pair> groupPairs)
|
private void DrawSyncShellButtons(GroupFullInfoDto groupDto, List<Pair> groupPairs)
|
||||||
|
|||||||
Reference in New Issue
Block a user