summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--po/en.po24
-rw-r--r--res/lang/en.binbin26158 -> 26158 bytes
-rw-r--r--res/lang/eo.binbin25112 -> 25112 bytes
-rw-r--r--res/lang/es_MX.binbin27217 -> 27217 bytes
-rw-r--r--res/lang/ia.binbin28217 -> 28217 bytes
-rw-r--r--res/lang/isv.binbin24878 -> 24878 bytes
-rw-r--r--res/lang/pl.binbin29493 -> 29493 bytes
-rw-r--r--res/lang/sk.binbin25214 -> 25214 bytes
-rw-r--r--res/lang/zh_Hans.binbin25112 -> 25112 bytes
-rw-r--r--res/lang/zh_Hant.binbin25310 -> 25310 bytes
-rw-r--r--src/ui/certlistwidget.c1
-rw-r--r--src/ui/mobile.c15
-rw-r--r--src/ui/root.c5
-rw-r--r--src/ui/util.c13
14 files changed, 38 insertions, 20 deletions
diff --git a/po/en.po b/po/en.po
index 6675f78b..c6fa98be 100644
--- a/po/en.po
+++ b/po/en.po
@@ -982,7 +982,7 @@ msgid "menu.page.upload"
982msgstr "Upload Page with Titan…" 982msgstr "Upload Page with Titan…"
983 983
984msgid "heading.upload" 984msgid "heading.upload"
985msgstr "UPLOAD WITH TITAN" 985msgstr "Upload with Titan"
986 986
987msgid "upload.id" 987msgid "upload.id"
988msgstr "Identity:" 988msgstr "Identity:"
@@ -1239,7 +1239,7 @@ msgid "dlg.bookmark.icon"
1239msgstr "Icon:" 1239msgstr "Icon:"
1240 1240
1241msgid "heading.bookmark.tags" 1241msgid "heading.bookmark.tags"
1242msgstr "SPECIAL TAGS" 1242msgstr "Special Tags"
1243 1243
1244msgid "heading.addfolder" 1244msgid "heading.addfolder"
1245msgstr "ADD FOLDER" 1245msgstr "ADD FOLDER"
@@ -1254,14 +1254,14 @@ msgid "dlg.addfolder"
1254msgstr "Add Folder" 1254msgstr "Add Folder"
1255 1255
1256msgid "heading.prefs" 1256msgid "heading.prefs"
1257msgstr "PREFERENCES" 1257msgstr "Preferences"
1258 1258
1259# used on mobile 1259# used on mobile
1260msgid "heading.settings" 1260msgid "heading.settings"
1261msgstr "SETTINGS" 1261msgstr "Settings"
1262 1262
1263msgid "heading.prefs.certs" 1263msgid "heading.prefs.certs"
1264msgstr "CERTIFICATES" 1264msgstr "Certificates"
1265 1265
1266# tab button 1266# tab button
1267msgid "heading.prefs.colors" 1267msgid "heading.prefs.colors"
@@ -1287,25 +1287,25 @@ msgid "heading.prefs.network"
1287msgstr "Network" 1287msgstr "Network"
1288 1288
1289msgid "heading.prefs.paragraph" 1289msgid "heading.prefs.paragraph"
1290msgstr "PARAGRAPH" 1290msgstr "Paragraph"
1291 1291
1292msgid "heading.prefs.uitheme" 1292msgid "heading.prefs.uitheme"
1293msgstr "UI COLORS" 1293msgstr "UI Colors"
1294 1294
1295msgid "heading.prefs.pagecontent" 1295msgid "heading.prefs.pagecontent"
1296msgstr "PAGE COLORS" 1296msgstr "Page Colors"
1297 1297
1298msgid "heading.prefs.proxies" 1298msgid "heading.prefs.proxies"
1299msgstr "PROXIES" 1299msgstr "Proxies"
1300 1300
1301msgid "heading.prefs.scrolling" 1301msgid "heading.prefs.scrolling"
1302msgstr "SCROLLING" 1302msgstr "Scrolling"
1303 1303
1304msgid "heading.prefs.sizing" 1304msgid "heading.prefs.sizing"
1305msgstr "SIZING" 1305msgstr "Sizing"
1306 1306
1307msgid "heading.prefs.widelayout" 1307msgid "heading.prefs.widelayout"
1308msgstr "WIDE LAYOUT" 1308msgstr "Wide Layout"
1309 1309
1310# tab button 1310# tab button
1311msgid "heading.prefs.style" 1311msgid "heading.prefs.style"
diff --git a/res/lang/en.bin b/res/lang/en.bin
index 0b2edc4b..0129d019 100644
--- a/res/lang/en.bin
+++ b/res/lang/en.bin
Binary files differ
diff --git a/res/lang/eo.bin b/res/lang/eo.bin
index 6c0dc697..4acb5f16 100644
--- a/res/lang/eo.bin
+++ b/res/lang/eo.bin
Binary files differ
diff --git a/res/lang/es_MX.bin b/res/lang/es_MX.bin
index 37438b3a..3fcecd44 100644
--- a/res/lang/es_MX.bin
+++ b/res/lang/es_MX.bin
Binary files differ
diff --git a/res/lang/ia.bin b/res/lang/ia.bin
index 1a512597..f9e134fc 100644
--- a/res/lang/ia.bin
+++ b/res/lang/ia.bin
Binary files differ
diff --git a/res/lang/isv.bin b/res/lang/isv.bin
index 58673ac5..6b98e1f8 100644
--- a/res/lang/isv.bin
+++ b/res/lang/isv.bin
Binary files differ
diff --git a/res/lang/pl.bin b/res/lang/pl.bin
index 0aaa2fbd..33ed890b 100644
--- a/res/lang/pl.bin
+++ b/res/lang/pl.bin
Binary files differ
diff --git a/res/lang/sk.bin b/res/lang/sk.bin
index db1bd9e7..6dbeb129 100644
--- a/res/lang/sk.bin
+++ b/res/lang/sk.bin
Binary files differ
diff --git a/res/lang/zh_Hans.bin b/res/lang/zh_Hans.bin
index ec375dcd..cfa284be 100644
--- a/res/lang/zh_Hans.bin
+++ b/res/lang/zh_Hans.bin
Binary files differ
diff --git a/res/lang/zh_Hant.bin b/res/lang/zh_Hant.bin
index dd63c0eb..f0f6fe97 100644
--- a/res/lang/zh_Hant.bin
+++ b/res/lang/zh_Hant.bin
Binary files differ
diff --git a/src/ui/certlistwidget.c b/src/ui/certlistwidget.c
index 4d939ae2..c67203e3 100644
--- a/src/ui/certlistwidget.c
+++ b/src/ui/certlistwidget.c
@@ -388,6 +388,7 @@ void init_CertListWidget(iCertListWidget *d) {
388 init_ListWidget(&d->list); 388 init_ListWidget(&d->list);
389 setId_Widget(w, "certlist"); 389 setId_Widget(w, "certlist");
390 setBackgroundColor_Widget(w, none_ColorId); 390 setBackgroundColor_Widget(w, none_ColorId);
391 setItemHeight_ListWidget(&d->list, 3.5f * lineHeight_Text(default_FontId));
391 d->itemFonts[0] = uiContent_FontId; 392 d->itemFonts[0] = uiContent_FontId;
392 d->itemFonts[1] = uiContentBold_FontId; 393 d->itemFonts[1] = uiContentBold_FontId;
393#if defined (iPlatformMobile) 394#if defined (iPlatformMobile)
diff --git a/src/ui/mobile.c b/src/ui/mobile.c
index c7b75d3f..9e4fef84 100644
--- a/src/ui/mobile.c
+++ b/src/ui/mobile.c
@@ -23,6 +23,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
23#include "mobile.h" 23#include "mobile.h"
24 24
25#include "app.h" 25#include "app.h"
26#include "certlistwidget.h"
26#include "command.h" 27#include "command.h"
27#include "defs.h" 28#include "defs.h"
28#include "inputwidget.h" 29#include "inputwidget.h"
@@ -196,6 +197,8 @@ static iBool topPanelHandler_(iWidget *topPanel, const char *cmd) {
196 setText_LabelWidget(detailTitle, text_LabelWidget((iLabelWidget *) findTitleLabel_(panel))); 197 setText_LabelWidget(detailTitle, text_LabelWidget((iLabelWidget *) findTitleLabel_(panel)));
197 setFlags_Widget(button, selected_WidgetFlag, iTrue); 198 setFlags_Widget(button, selected_WidgetFlag, iTrue);
198 postCommand_Widget(topPanel, "panel.changed arg:%d", panelIndex); 199 postCommand_Widget(topPanel, "panel.changed arg:%d", panelIndex);
200 //printTree_Widget(findDetailStack_(topPanel));
201// updateVisible_ListWidget(findChild_Widget(findDetailStack_(topPanel), "certlist"));
199 return iTrue; 202 return iTrue;
200 } 203 }
201 if (equal_Command(cmd, "swipe.back")) { 204 if (equal_Command(cmd, "swipe.back")) {
@@ -482,7 +485,7 @@ void makePanelItem_Mobile(iWidget *panel, const iMenuItem *item) {
482 collapse_WidgetFlag); 485 collapse_WidgetFlag);
483 setFont_LabelWidget(title, uiLabelLargeBold_FontId); 486 setFont_LabelWidget(title, uiLabelLargeBold_FontId);
484 setTextColor_LabelWidget(title, uiHeading_ColorId); 487 setTextColor_LabelWidget(title, uiHeading_ColorId);
485 setAllCaps_LabelWidget(title, iTrue); 488// setAllCaps_LabelWidget(title, iTrue);
486 setId_Widget(as_Widget(title), id); 489 setId_Widget(as_Widget(title), id);
487 } 490 }
488 else if (equal_Command(spec, "heading")) { 491 else if (equal_Command(spec, "heading")) {
@@ -609,6 +612,16 @@ void makePanelItem_Mobile(iWidget *panel, const iMenuItem *item) {
609 setUserData_Object(widget, input); 612 setUserData_Object(widget, input);
610 } 613 }
611 } 614 }
615 else if (equal_Command(spec, "certlist")) {
616 iCertListWidget *certList = new_CertListWidget();
617 iListWidget *list = (iListWidget *) certList;
618 setBackgroundColor_Widget(as_Widget(list), uiBackgroundSidebar_ColorId);
619 widget = as_Widget(certList);
620 updateItems_CertListWidget(certList);
621 invalidate_ListWidget(list);
622 setFixedSize_Widget(widget,
623 init_I2(-1, numItems_ListWidget(list) * itemHeight_ListWidget(list)));
624 }
612 else if (equal_Command(spec, "button")) { 625 else if (equal_Command(spec, "button")) {
613 widget = as_Widget(heading = makePanelButton_(label, item->command)); 626 widget = as_Widget(heading = makePanelButton_(label, item->command));
614 setFlags_Widget(widget, selected_WidgetFlag, argLabel_Command(spec, "selected") != 0); 627 setFlags_Widget(widget, selected_WidgetFlag, argLabel_Command(spec, "selected") != 0);
diff --git a/src/ui/root.c b/src/ui/root.c
index 5ed6b529..b7a2e5c8 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -339,14 +339,15 @@ static iBool handleRootCommands_(iWidget *root, const char *cmd) {
339 /* Current identity. */ 339 /* Current identity. */
340 const iString *docUrl = url_DocumentWidget(document_App()); 340 const iString *docUrl = url_DocumentWidget(document_App());
341 const iGmIdentity *ident = identityForUrl_GmCerts(certs_App(), docUrl); 341 const iGmIdentity *ident = identityForUrl_GmCerts(certs_App(), docUrl);
342 const iString *fp = collect_String(hexEncode_Block(&ident->fingerprint)); 342 const iString *fp = ident ? collect_String(hexEncode_Block(&ident->fingerprint)) : NULL;
343 pushBackN_Array(&items, 343 pushBackN_Array(&items,
344 (iMenuItem[]){ { format_CStr("///" uiHeading_ColorEscape "%s", 344 (iMenuItem[]){ { format_CStr("///" uiHeading_ColorEscape "%s",
345 ident ? cstr_String(name_GmIdentity(ident)) 345 ident ? cstr_String(name_GmIdentity(ident))
346 : "${menu.identity.notactive}") }, 346 : "${menu.identity.notactive}") },
347 { "---" } }, 347 { "---" } },
348 2); 348 2);
349 /* Alternate identities. */ { 349 /* Alternate identities. */
350 if (ident) {
350 const iString *site = collectNewRange_String(urlRoot_String(docUrl)); 351 const iString *site = collectNewRange_String(urlRoot_String(docUrl));
351 iBool haveAlts = iFalse; 352 iBool haveAlts = iFalse;
352 iConstForEach(StringArray, i, strings_SiteSpec(site, usedIdentities_SiteSpecKey)) { 353 iConstForEach(StringArray, i, strings_SiteSpec(site, usedIdentities_SiteSpecKey)) {
diff --git a/src/ui/util.c b/src/ui/util.c
index 04483e8d..91b67e06 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -1995,9 +1995,11 @@ iWidget *appendTwoColumnTabPage_Widget(iWidget *tabs, const char *title, int sho
1995} 1995}
1996 1996
1997static void makeTwoColumnHeading_(const char *title, iWidget *headings, iWidget *values) { 1997static void makeTwoColumnHeading_(const char *title, iWidget *headings, iWidget *values) {
1998 addChildFlags_Widget(headings, 1998 setFont_LabelWidget(addChildFlags_Widget(headings,
1999 iClob(makeHeading_Widget(format_CStr(uiHeading_ColorEscape "%s", title))), 1999 iClob(makeHeading_Widget(
2000 ignoreForParentWidth_WidgetFlag); 2000 format_CStr(uiHeading_ColorEscape "%s", title))),
2001 ignoreForParentWidth_WidgetFlag),
2002 uiLabelBold_FontId);
2001 addChild_Widget(values, iClob(makeHeading_Widget(""))); 2003 addChild_Widget(values, iClob(makeHeading_Widget("")));
2002} 2004}
2003 2005
@@ -2431,6 +2433,7 @@ iWidget *makePreferences_Widget(void) {
2431 }; 2433 };
2432 const iMenuItem identityPanelItems[] = { 2434 const iMenuItem identityPanelItems[] = {
2433 { "title id:sidebar.identities" }, 2435 { "title id:sidebar.identities" },
2436 { "certlist" },
2434 { NULL } 2437 { NULL }
2435 }; 2438 };
2436 iString *aboutText = collectNew_String(); { 2439 iString *aboutText = collectNew_String(); {
@@ -2471,9 +2474,9 @@ iWidget *makePreferences_Widget(void) {
2471 return dlg; 2474 return dlg;
2472 } 2475 }
2473 iWidget *dlg = makeSheet_Widget("prefs"); 2476 iWidget *dlg = makeSheet_Widget("prefs");
2474 addChildFlags_Widget(dlg, 2477 setAllCaps_LabelWidget(addChildFlags_Widget(dlg,
2475 iClob(new_LabelWidget(uiHeading_ColorEscape "${heading.prefs}", NULL)), 2478 iClob(new_LabelWidget(uiHeading_ColorEscape "${heading.prefs}", NULL)),
2476 frameless_WidgetFlag); 2479 frameless_WidgetFlag), iTrue);
2477 iWidget *tabs = makeTabs_Widget(dlg); 2480 iWidget *tabs = makeTabs_Widget(dlg);
2478 setBackgroundColor_Widget(findChild_Widget(tabs, "tabs.buttons"), uiBackgroundSidebar_ColorId); 2481 setBackgroundColor_Widget(findChild_Widget(tabs, "tabs.buttons"), uiBackgroundSidebar_ColorId);
2479 setId_Widget(tabs, "prefs.tabs"); 2482 setId_Widget(tabs, "prefs.tabs");