From 5b26017a8a6186cb738dddbe6a6112986ef31d96 Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 6 Aug 2021 02:56:00 -0400 Subject: [PATCH] [client] overlay: move separator above donation prompt It looks really weird having a separator right after a sentence ending in :. A separator makes the list look detached from the paragraph that introduces it, which looks awkward. Instead, this commit moves the separator before the introducing paragraph. Also added logic to properly pluralize the sentence. --- client/src/overlay/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/overlay/config.c b/client/src/overlay/config.c index bb553c10..aa4b94c1 100644 --- a/client/src/overlay/config.c +++ b/client/src/overlay/config.c @@ -131,12 +131,12 @@ static int config_render(void * udata, bool interactive, struct Rect * windowRec igTextWrapped(member->blurb); if (member->donate[0].name) { - igSpacing(); + igSeparator(); igTextWrapped( "If you would like to show financial support for his work you can " - "do so directly via the following platform(s):"); + "do so directly via the following platform%s:", + member->donate[1].name ? "s" : ""); - igSeparator(); igBeginTable("split", 2, 0, (ImVec2){}, 0.0f); igTableSetupColumn("", ImGuiTableColumnFlags_WidthFixed, fontSize * 10.0f, 0);