summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-26 15:21:28 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-26 15:21:28 +0300
commit62c51b650f4ff749de458f99cca5a30312f3b02c (patch)
treee50bda94a0b9bbbb6e0816801e6d60ba96fcbfcb /src
parent3fb42f3ce362f06afe9e8d802973d246b7438fee (diff)
FontPack: Visual tweaks on the content page
Diffstat (limited to 'src')
-rw-r--r--src/fontpack.c3
-rw-r--r--src/ui/documentwidget.c4
2 files changed, 4 insertions, 3 deletions
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) {
767 } 767 }
768 else if (d->isStandalone) { 768 else if (d->isStandalone) {
769 pushBack_Array(items, 769 pushBack_Array(items,
770 &(iMenuItem){ format_Lang(add_Icon " ${fontpack.install}", fpId), 770 &(iMenuItem){ format_Lang(add_Icon " " uiTextAction_ColorEscape
771 "\x1b[1m${fontpack.install}", fpId),
771 SDLK_RETURN, 772 SDLK_RETURN,
772 0, 773 0,
773 "fontpack.install" }); 774 "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,
1600 clear_String(&str); 1600 clear_String(&str);
1601 docFormat = gemini_SourceFormat; 1601 docFormat = gemini_SourceFormat;
1602 setRange_String(&d->sourceMime, param); 1602 setRange_String(&d->sourceMime, param);
1603 format_String(&str, "# %s\n", zipPageHeading_(param));
1604 if (equal_Rangecc(param, mimeType_FontPack)) { 1603 if (equal_Rangecc(param, mimeType_FontPack)) {
1605 /* Show some information about fontpacks, and set up footer actions. */ 1604 /* Show some information about fontpacks, and set up footer actions. */
1606 iArchive *zip = iClob(new_Archive()); 1605 iArchive *zip = iClob(new_Archive());
@@ -1609,7 +1608,7 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d,
1609 setUrl_FontPack(fp, d->mod.url); 1608 setUrl_FontPack(fp, d->mod.url);
1610 setStandalone_FontPack(fp, iTrue); 1609 setStandalone_FontPack(fp, iTrue);
1611 if (loadArchive_FontPack(fp, zip)) { 1610 if (loadArchive_FontPack(fp, zip)) {
1612 appendFormat_String(&str, "## %s\n%s", 1611 appendFormat_String(&str, "# " fontpack_Icon "%s\n%s",
1613 cstr_String(id_FontPack(fp).id), 1612 cstr_String(id_FontPack(fp).id),
1614 cstrCollect_String(infoText_FontPack(fp))); 1613 cstrCollect_String(infoText_FontPack(fp)));
1615 } 1614 }
@@ -1623,6 +1622,7 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d,
1623 } 1622 }
1624 } 1623 }
1625 else { 1624 else {
1625 format_String(&str, "# %s\n", zipPageHeading_(param));
1626 appendFormat_String(&str, 1626 appendFormat_String(&str,
1627 cstr_Lang("doc.archive"), 1627 cstr_Lang("doc.archive"),
1628 cstr_Rangecc(baseName_Path(d->mod.url))); 1628 cstr_Rangecc(baseName_Path(d->mod.url)));