summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-16 13:20:39 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-16 13:20:39 +0300
commit19f29bc4382b3dfe9d3c21ddabd5501919c76566 (patch)
treee72732b464bf2088a67340208ec2a06cdfc77225 /src/ui
parent2eddc6ee320204c7791ef23e6a4bbea67f151796 (diff)
Changed UI icons related to bookmarks
Use the Book and Bookmark characters.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c4
-rw-r--r--src/ui/root.c4
-rw-r--r--src/ui/sidebarwidget.c8
3 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index ea86a810..32cbaca9 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -3079,7 +3079,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
3079 pushBackN_Array(&items, 3079 pushBackN_Array(&items,
3080 (iMenuItem[]){ { "---", 0, 0, NULL }, 3080 (iMenuItem[]){ { "---", 0, 0, NULL },
3081 { "${link.copy}", 0, 0, "document.copylink" }, 3081 { "${link.copy}", 0, 0, "document.copylink" },
3082 { pin_Icon " ${link.bookmark}", 3082 { bookmark_Icon " ${link.bookmark}",
3083 0, 3083 0,
3084 0, 3084 0,
3085 format_CStr("!bookmark.add title:%s url:%s", 3085 format_CStr("!bookmark.add title:%s url:%s",
@@ -3124,7 +3124,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
3124 { reload_Icon " ${menu.reload}", reload_KeyShortcut, "navigate.reload" }, 3124 { reload_Icon " ${menu.reload}", reload_KeyShortcut, "navigate.reload" },
3125 { timer_Icon " ${menu.autoreload}", 0, 0, "document.autoreload.menu" }, 3125 { timer_Icon " ${menu.autoreload}", 0, 0, "document.autoreload.menu" },
3126 { "---", 0, 0, NULL }, 3126 { "---", 0, 0, NULL },
3127 { pin_Icon " ${menu.page.bookmark}", SDLK_d, KMOD_PRIMARY, "bookmark.add" }, 3127 { bookmark_Icon " ${menu.page.bookmark}", SDLK_d, KMOD_PRIMARY, "bookmark.add" },
3128 { star_Icon " ${menu.page.subscribe}", subscribeToPage_KeyModifier, "feeds.subscribe" }, 3128 { star_Icon " ${menu.page.subscribe}", subscribeToPage_KeyModifier, "feeds.subscribe" },
3129 { "---", 0, 0, NULL }, 3129 { "---", 0, 0, NULL },
3130 { book_Icon " ${menu.page.import}", 0, 0, "bookmark.links confirm:1" }, 3130 { book_Icon " ${menu.page.import}", 0, 0, "bookmark.links confirm:1" },
diff --git a/src/ui/root.c b/src/ui/root.c
index 913f82e9..f37d274d 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -1236,7 +1236,7 @@ void createUserInterface_Root(iRoot *d) {
1236 frameless_WidgetFlag), 1236 frameless_WidgetFlag),
1237 "toolbar.ident"); 1237 "toolbar.ident");
1238 setId_Widget(addChildFlags_Widget(toolBar, 1238 setId_Widget(addChildFlags_Widget(toolBar,
1239 iClob(newLargeIcon_LabelWidget("\U0001f588", "toolbar.showview arg:-1")), 1239 iClob(newLargeIcon_LabelWidget(book_Icon, "toolbar.showview arg:-1")),
1240 frameless_WidgetFlag | commandOnClick_WidgetFlag), 1240 frameless_WidgetFlag | commandOnClick_WidgetFlag),
1241 "toolbar.view"); 1241 "toolbar.view");
1242 iLabelWidget *menuButton = makeMenuButton_LabelWidget("\U0001d362", phoneNavMenuItems_, 1242 iLabelWidget *menuButton = makeMenuButton_LabelWidget("\U0001d362", phoneNavMenuItems_,
@@ -1251,7 +1251,7 @@ void createUserInterface_Root(iRoot *d) {
1251 // setBackgroundColor_Widget(i.object, tmBannerSideTitle_ColorId); 1251 // setBackgroundColor_Widget(i.object, tmBannerSideTitle_ColorId);
1252 } 1252 }
1253 const iMenuItem items[] = { 1253 const iMenuItem items[] = {
1254 { pin_Icon " ${sidebar.bookmarks}", 0, 0, "toolbar.showview arg:0" }, 1254 { book_Icon " ${sidebar.bookmarks}", 0, 0, "toolbar.showview arg:0" },
1255 { star_Icon " ${sidebar.feeds}", 0, 0, "toolbar.showview arg:1" }, 1255 { star_Icon " ${sidebar.feeds}", 0, 0, "toolbar.showview arg:1" },
1256 { clock_Icon " ${sidebar.history}", 0, 0, "toolbar.showview arg:2" }, 1256 { clock_Icon " ${sidebar.history}", 0, 0, "toolbar.showview arg:2" },
1257 { page_Icon " ${toolbar.outline}", 0, 0, "toolbar.showview arg:4" }, 1257 { page_Icon " ${toolbar.outline}", 0, 0, "toolbar.showview arg:4" },
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 5d51b144..6ae611b9 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -240,7 +240,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) {
240 as_Widget(d), 240 as_Widget(d),
241 (iMenuItem[]){ { openTab_Icon " ${feeds.entry.newtab}", 0, 0, "feed.entry.opentab" }, 241 (iMenuItem[]){ { openTab_Icon " ${feeds.entry.newtab}", 0, 0, "feed.entry.opentab" },
242 { circle_Icon " ${feeds.entry.markread}", 0, 0, "feed.entry.toggleread" }, 242 { circle_Icon " ${feeds.entry.markread}", 0, 0, "feed.entry.toggleread" },
243 { pin_Icon " ${feeds.entry.bookmark}", 0, 0, "feed.entry.bookmark" }, 243 { bookmark_Icon " ${feeds.entry.bookmark}", 0, 0, "feed.entry.bookmark" },
244 { "---", 0, 0, NULL }, 244 { "---", 0, 0, NULL },
245 { page_Icon " ${feeds.entry.openfeed}", 0, 0, "feed.entry.openfeed" }, 245 { page_Icon " ${feeds.entry.openfeed}", 0, 0, "feed.entry.openfeed" },
246 { edit_Icon " ${feeds.edit}", 0, 0, "feed.entry.edit" }, 246 { edit_Icon " ${feeds.edit}", 0, 0, "feed.entry.edit" },
@@ -365,7 +365,7 @@ static void updateItems_SidebarWidget_(iSidebarWidget *d) {
365 as_Widget(d), 365 as_Widget(d),
366 (iMenuItem[]){ 366 (iMenuItem[]){
367 { "${menu.copyurl}", 0, 0, "history.copy" }, 367 { "${menu.copyurl}", 0, 0, "history.copy" },
368 { pin_Icon " ${sidebar.entry.bookmark}", 0, 0, "history.addbookmark" }, 368 { bookmark_Icon " ${sidebar.entry.bookmark}", 0, 0, "history.addbookmark" },
369 { "---", 0, 0, NULL }, 369 { "---", 0, 0, NULL },
370 { close_Icon " ${menu.forgeturl}", 0, 0, "history.delete" }, 370 { close_Icon " ${menu.forgeturl}", 0, 0, "history.delete" },
371 { "---", 0, 0, NULL }, 371 { "---", 0, 0, NULL },
@@ -522,7 +522,7 @@ float width_SidebarWidget(const iSidebarWidget *d) {
522} 522}
523 523
524static const char *normalModeLabels_[max_SidebarMode] = { 524static const char *normalModeLabels_[max_SidebarMode] = {
525 pin_Icon " ${sidebar.bookmarks}", 525 book_Icon " ${sidebar.bookmarks}",
526 star_Icon " ${sidebar.feeds}", 526 star_Icon " ${sidebar.feeds}",
527 clock_Icon " ${sidebar.history}", 527 clock_Icon " ${sidebar.history}",
528 person_Icon " ${sidebar.identities}", 528 person_Icon " ${sidebar.identities}",
@@ -530,7 +530,7 @@ static const char *normalModeLabels_[max_SidebarMode] = {
530}; 530};
531 531
532static const char *tightModeLabels_[max_SidebarMode] = { 532static const char *tightModeLabels_[max_SidebarMode] = {
533 pin_Icon, 533 book_Icon,
534 star_Icon, 534 star_Icon,
535 clock_Icon, 535 clock_Icon,
536 person_Icon, 536 person_Icon,