mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[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.
This commit is contained in:
parent
3651852430
commit
5b26017a8a
@ -131,12 +131,12 @@ static int config_render(void * udata, bool interactive, struct Rect * windowRec
|
|||||||
igTextWrapped(member->blurb);
|
igTextWrapped(member->blurb);
|
||||||
if (member->donate[0].name)
|
if (member->donate[0].name)
|
||||||
{
|
{
|
||||||
igSpacing();
|
igSeparator();
|
||||||
igTextWrapped(
|
igTextWrapped(
|
||||||
"If you would like to show financial support for his work you can "
|
"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);
|
igBeginTable("split", 2, 0, (ImVec2){}, 0.0f);
|
||||||
igTableSetupColumn("", ImGuiTableColumnFlags_WidthFixed,
|
igTableSetupColumn("", ImGuiTableColumnFlags_WidthFixed,
|
||||||
fontSize * 10.0f, 0);
|
fontSize * 10.0f, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user