diff options
-rw-r--r-- | po/en.po | 24 | ||||
-rw-r--r-- | res/lang/en.bin | bin | 26158 -> 26158 bytes | |||
-rw-r--r-- | res/lang/eo.bin | bin | 25112 -> 25112 bytes | |||
-rw-r--r-- | res/lang/es_MX.bin | bin | 27217 -> 27217 bytes | |||
-rw-r--r-- | res/lang/ia.bin | bin | 28217 -> 28217 bytes | |||
-rw-r--r-- | res/lang/isv.bin | bin | 24878 -> 24878 bytes | |||
-rw-r--r-- | res/lang/pl.bin | bin | 29493 -> 29493 bytes | |||
-rw-r--r-- | res/lang/sk.bin | bin | 25214 -> 25214 bytes | |||
-rw-r--r-- | res/lang/zh_Hans.bin | bin | 25112 -> 25112 bytes | |||
-rw-r--r-- | res/lang/zh_Hant.bin | bin | 25310 -> 25310 bytes | |||
-rw-r--r-- | src/ui/certlistwidget.c | 1 | ||||
-rw-r--r-- | src/ui/mobile.c | 15 | ||||
-rw-r--r-- | src/ui/root.c | 5 | ||||
-rw-r--r-- | src/ui/util.c | 13 |
14 files changed, 38 insertions, 20 deletions
@@ -982,7 +982,7 @@ msgid "menu.page.upload" | |||
982 | msgstr "Upload Page with Titan…" | 982 | msgstr "Upload Page with Titan…" |
983 | 983 | ||
984 | msgid "heading.upload" | 984 | msgid "heading.upload" |
985 | msgstr "UPLOAD WITH TITAN" | 985 | msgstr "Upload with Titan" |
986 | 986 | ||
987 | msgid "upload.id" | 987 | msgid "upload.id" |
988 | msgstr "Identity:" | 988 | msgstr "Identity:" |
@@ -1239,7 +1239,7 @@ msgid "dlg.bookmark.icon" | |||
1239 | msgstr "Icon:" | 1239 | msgstr "Icon:" |
1240 | 1240 | ||
1241 | msgid "heading.bookmark.tags" | 1241 | msgid "heading.bookmark.tags" |
1242 | msgstr "SPECIAL TAGS" | 1242 | msgstr "Special Tags" |
1243 | 1243 | ||
1244 | msgid "heading.addfolder" | 1244 | msgid "heading.addfolder" |
1245 | msgstr "ADD FOLDER" | 1245 | msgstr "ADD FOLDER" |
@@ -1254,14 +1254,14 @@ msgid "dlg.addfolder" | |||
1254 | msgstr "Add Folder" | 1254 | msgstr "Add Folder" |
1255 | 1255 | ||
1256 | msgid "heading.prefs" | 1256 | msgid "heading.prefs" |
1257 | msgstr "PREFERENCES" | 1257 | msgstr "Preferences" |
1258 | 1258 | ||
1259 | # used on mobile | 1259 | # used on mobile |
1260 | msgid "heading.settings" | 1260 | msgid "heading.settings" |
1261 | msgstr "SETTINGS" | 1261 | msgstr "Settings" |
1262 | 1262 | ||
1263 | msgid "heading.prefs.certs" | 1263 | msgid "heading.prefs.certs" |
1264 | msgstr "CERTIFICATES" | 1264 | msgstr "Certificates" |
1265 | 1265 | ||
1266 | # tab button | 1266 | # tab button |
1267 | msgid "heading.prefs.colors" | 1267 | msgid "heading.prefs.colors" |
@@ -1287,25 +1287,25 @@ msgid "heading.prefs.network" | |||
1287 | msgstr "Network" | 1287 | msgstr "Network" |
1288 | 1288 | ||
1289 | msgid "heading.prefs.paragraph" | 1289 | msgid "heading.prefs.paragraph" |
1290 | msgstr "PARAGRAPH" | 1290 | msgstr "Paragraph" |
1291 | 1291 | ||
1292 | msgid "heading.prefs.uitheme" | 1292 | msgid "heading.prefs.uitheme" |
1293 | msgstr "UI COLORS" | 1293 | msgstr "UI Colors" |
1294 | 1294 | ||
1295 | msgid "heading.prefs.pagecontent" | 1295 | msgid "heading.prefs.pagecontent" |
1296 | msgstr "PAGE COLORS" | 1296 | msgstr "Page Colors" |
1297 | 1297 | ||
1298 | msgid "heading.prefs.proxies" | 1298 | msgid "heading.prefs.proxies" |
1299 | msgstr "PROXIES" | 1299 | msgstr "Proxies" |
1300 | 1300 | ||
1301 | msgid "heading.prefs.scrolling" | 1301 | msgid "heading.prefs.scrolling" |
1302 | msgstr "SCROLLING" | 1302 | msgstr "Scrolling" |
1303 | 1303 | ||
1304 | msgid "heading.prefs.sizing" | 1304 | msgid "heading.prefs.sizing" |
1305 | msgstr "SIZING" | 1305 | msgstr "Sizing" |
1306 | 1306 | ||
1307 | msgid "heading.prefs.widelayout" | 1307 | msgid "heading.prefs.widelayout" |
1308 | msgstr "WIDE LAYOUT" | 1308 | msgstr "Wide Layout" |
1309 | 1309 | ||
1310 | # tab button | 1310 | # tab button |
1311 | msgid "heading.prefs.style" | 1311 | msgid "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 | ||
1997 | static void makeTwoColumnHeading_(const char *title, iWidget *headings, iWidget *values) { | 1997 | static 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"); |