From 62c51b650f4ff749de458f99cca5a30312f3b02c Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 26 Oct 2021 15:21:28 +0300 Subject: FontPack: Visual tweaks on the content page --- src/fontpack.c | 3 ++- src/ui/documentwidget.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/fontpack.c b/src/fontpack.c index 88aa47e8..8267998b 100644 --- a/src/fontpack.c +++ b/src/fontpack.c @@ -767,7 +767,8 @@ const iArray *actions_FontPack(const iFontPack *d, iBool showInstalled) { } else if (d->isStandalone) { pushBack_Array(items, - &(iMenuItem){ format_Lang(add_Icon " ${fontpack.install}", fpId), + &(iMenuItem){ format_Lang(add_Icon " " uiTextAction_ColorEscape + "\x1b[1m${fontpack.install}", fpId), SDLK_RETURN, 0, "fontpack.install" }); diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index fa30aadf..bfb03702 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c @@ -1600,7 +1600,6 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, clear_String(&str); docFormat = gemini_SourceFormat; setRange_String(&d->sourceMime, param); - format_String(&str, "# %s\n", zipPageHeading_(param)); if (equal_Rangecc(param, mimeType_FontPack)) { /* Show some information about fontpacks, and set up footer actions. */ iArchive *zip = iClob(new_Archive()); @@ -1609,7 +1608,7 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, setUrl_FontPack(fp, d->mod.url); setStandalone_FontPack(fp, iTrue); if (loadArchive_FontPack(fp, zip)) { - appendFormat_String(&str, "## %s\n%s", + appendFormat_String(&str, "# " fontpack_Icon "%s\n%s", cstr_String(id_FontPack(fp).id), cstrCollect_String(infoText_FontPack(fp))); } @@ -1623,6 +1622,7 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, } } else { + format_String(&str, "# %s\n", zipPageHeading_(param)); appendFormat_String(&str, cstr_Lang("doc.archive"), cstr_Rangecc(baseName_Path(d->mod.url))); -- cgit v1.2.3