more spacing tuning

This commit is contained in:
2024-04-23 11:24:24 +02:00
parent cf697622cb
commit 3e15798afc
2 changed files with 7 additions and 6 deletions

View File

@ -203,7 +203,8 @@ bool renderContactBig(
renderAvatar(th, contact_tc, c, {img_y, img_y});
ImGui::SameLine();
const float same_line_spacing = ImGui::GetStyle().ItemSpacing.x*0.5f;
ImGui::SameLine(0.f, same_line_spacing);
ImGui::BeginGroup();
{
{ // line 1
@ -230,7 +231,7 @@ bool renderContactBig(
);
}
ImGui::Dummy(p1_o);
ImGui::SameLine(0.f, ImGui::GetStyle().ItemSpacing.x*0.5f);
ImGui::SameLine(0.f, same_line_spacing);
}
ImGui::Text("%s%s", unread?"* ":"", (c.all_of<Contact::Components::Name>() ? c.get<Contact::Components::Name>().name.c_str() : "<unk>"));
@ -267,7 +268,7 @@ bool renderContactBig(
);
}
ImGui::Dummy(p1_o);
ImGui::SameLine(0.f, ImGui::GetStyle().ItemSpacing.x*0.5f);
ImGui::SameLine(0.f, same_line_spacing);
}
if (