Skip to content

Commit

Permalink
Changed the icon of bookmarking action to a star
Browse files Browse the repository at this point in the history
Also:

- Added tooltip for add/remove on reading list
  • Loading branch information
sgourdas authored and kelson42 committed Mar 30, 2024
1 parent 0205db4 commit bf35a40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"set-fullscreen":"Set fullscreen",
"quit-fullscreen":"Quit fullScreen",
"table-of-content":"Table of content",
"add-bookmark": "Add to the reading list",
"remove-bookmark": "Remove from the reading list",
"reading-list":"Reading list",
"reading-list-title":"Reading List",
"zoom-in":"Zoom in",
Expand Down
2 changes: 2 additions & 0 deletions resources/i18n/qqq.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"videos": "{{identical|Video}}",
"yes": "{{identical|yes}}",
"no": "{{identical|no}}",
"add-bookmark": "Represents the action of adding a page as a bookmark",
"remove-bookmark": "Represents the action of removing a page from the bookmarks",
"open-link-in-web-browser": "Ouvrir le lien dans le navigateur",
"download-dir-dialog-msg": "Please note that <code><nowiki>{{DIRECTORY}}</nowiki></code> should be placed on a newline.",
"monitor-dir-dialog-title": "\"Monitor\" means \"watch\" in this context. The monitor directory is monitored/watched for new ZIM files.",
Expand Down
6 changes: 4 additions & 2 deletions src/searchbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ void SearchButton::set_searchMode(bool searchMode)
} else {
auto kiwixApp = KiwixApp::instance();
if (kiwixApp->isCurrentArticleBookmarked()) {
setIcon(QIcon(":/icons/reading-list-active.svg"));
setIcon(QIcon(":/icons/star.svg"));
setToolTip(gt("add-bookmark"));
} else {
setIcon(QIcon(":/icons/reading-list.svg"));
setIcon(QIcon(":/icons/star-active.svg"));
setToolTip(gt("remove-bookmark"));
}
setIconSize(QSize(25, 25));
}
Expand Down

0 comments on commit bf35a40

Please sign in to comment.