diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-05 20:54:06 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-05 20:54:06 +0200 |
commit | 5d95e1d76d12f72bf6e6c1d6809a201ba141a100 (patch) | |
tree | e565db8b94dab5de89314224d9ecef83d19a16a6 /src/ui/documentwidget.c | |
parent | 9fe6abe90dcaacfc9479b1c53edf2b239c81c4e5 (diff) |
Menu item icons
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 3a317890..9ae36b46 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -987,14 +987,14 @@ static void updateTrust_DocumentWidget_(iDocumentWidget *d, const iGmResponse *r | |||
987 | setFlags_Widget(as_Widget(lock), disabled_WidgetFlag, iFalse); | 987 | setFlags_Widget(as_Widget(lock), disabled_WidgetFlag, iFalse); |
988 | const iBool isDarkMode = isDark_ColorTheme(colorTheme_App()); | 988 | const iBool isDarkMode = isDark_ColorTheme(colorTheme_App()); |
989 | if (~d->certFlags & domainVerified_GmCertFlag) { | 989 | if (~d->certFlags & domainVerified_GmCertFlag) { |
990 | updateTextCStr_LabelWidget(lock, red_ColorEscape "\u26a0"); | 990 | updateTextCStr_LabelWidget(lock, red_ColorEscape warning_Icon); |
991 | } | 991 | } |
992 | else if (d->certFlags & trusted_GmCertFlag) { | 992 | else if (d->certFlags & trusted_GmCertFlag) { |
993 | updateTextCStr_LabelWidget(lock, green_ColorEscape closedLock_Icon); | 993 | updateTextCStr_LabelWidget(lock, green_ColorEscape closedLock_Icon); |
994 | } | 994 | } |
995 | else { | 995 | else { |
996 | updateTextCStr_LabelWidget(lock, isDarkMode ? orange_ColorEscape "\u26a0" | 996 | updateTextCStr_LabelWidget(lock, isDarkMode ? orange_ColorEscape warning_Icon |
997 | : black_ColorEscape "\u26a0"); | 997 | : black_ColorEscape warning_Icon); |
998 | } | 998 | } |
999 | setBanner_GmDocument(d->doc, bannerType_DocumentWidget_(d)); | 999 | setBanner_GmDocument(d->doc, bannerType_DocumentWidget_(d)); |
1000 | } | 1000 | } |
@@ -2427,11 +2427,11 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2427 | pushBackN_Array( | 2427 | pushBackN_Array( |
2428 | &items, | 2428 | &items, |
2429 | (iMenuItem[]){ | 2429 | (iMenuItem[]){ |
2430 | { open_Icon " Open Link in New Tab", | 2430 | { openTab_Icon " Open Link in New Tab", |
2431 | 0, | 2431 | 0, |
2432 | 0, | 2432 | 0, |
2433 | format_CStr("!open newtab:1 url:%s", cstr_String(linkUrl)) }, | 2433 | format_CStr("!open newtab:1 url:%s", cstr_String(linkUrl)) }, |
2434 | { "Open Link in Background Tab", | 2434 | { openTabBg_Icon " Open Link in Background Tab", |
2435 | 0, | 2435 | 0, |
2436 | 0, | 2436 | 0, |
2437 | format_CStr("!open newtab:2 url:%s", cstr_String(linkUrl)) } }, | 2437 | format_CStr("!open newtab:2 url:%s", cstr_String(linkUrl)) } }, |
@@ -2440,7 +2440,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2440 | else if (!willUseProxy_App(scheme)) { | 2440 | else if (!willUseProxy_App(scheme)) { |
2441 | pushBack_Array( | 2441 | pushBack_Array( |
2442 | &items, | 2442 | &items, |
2443 | &(iMenuItem){ "Open Link in Default Browser", | 2443 | &(iMenuItem){ openExt_Icon " Open Link in Default Browser", |
2444 | 0, | 2444 | 0, |
2445 | 0, | 2445 | 0, |
2446 | format_CStr("!open default:1 url:%s", cstr_String(linkUrl)) }); | 2446 | format_CStr("!open default:1 url:%s", cstr_String(linkUrl)) }); |
@@ -2450,7 +2450,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2450 | &items, | 2450 | &items, |
2451 | (iMenuItem[]){ | 2451 | (iMenuItem[]){ |
2452 | { "---", 0, 0, NULL }, | 2452 | { "---", 0, 0, NULL }, |
2453 | { isGemini ? "Open without Proxy" : "Open Link in Default Browser", | 2453 | { isGemini ? "Open without Proxy" : openExt_Icon " Open Link in Default Browser", |
2454 | 0, | 2454 | 0, |
2455 | 0, | 2455 | 0, |
2456 | format_CStr("!open noproxy:1 url:%s", cstr_String(linkUrl)) } }, | 2456 | format_CStr("!open noproxy:1 url:%s", cstr_String(linkUrl)) } }, |