Merge pull request #1066 from sgourdas/feature/bookmark_qol

Changing boomark icon to star and adding tooltip
This commit is contained in:
Kelson 2024-04-07 21:10:05 +02:00 committed by GitHub
commit 4c5128415a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View File

@ -30,6 +30,8 @@
"set-fullscreen":"Set fullscreen", "set-fullscreen":"Set fullscreen",
"quit-fullscreen":"Quit fullScreen", "quit-fullscreen":"Quit fullScreen",
"table-of-content":"Table of content", "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":"Reading list",
"reading-list-title":"Reading List", "reading-list-title":"Reading List",
"zoom-in":"Zoom in", "zoom-in":"Zoom in",

View File

@ -39,6 +39,8 @@
"videos": "{{identical|Video}}", "videos": "{{identical|Video}}",
"yes": "{{identical|yes}}", "yes": "{{identical|yes}}",
"no": "{{identical|no}}", "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", "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.", "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.", "monitor-dir-dialog-title": "\"Monitor\" means \"watch\" in this context. The monitor directory is monitored/watched for new ZIM files.",

View File

@ -24,11 +24,13 @@ void SearchButton::set_searchMode(bool searchMode)
} else { } else {
auto kiwixApp = KiwixApp::instance(); auto kiwixApp = KiwixApp::instance();
if (kiwixApp->isCurrentArticleBookmarked()) { if (kiwixApp->isCurrentArticleBookmarked()) {
setIcon(QIcon(":/icons/reading-list-active.svg")); setIcon(QIcon(":/icons/star-active.svg"));
setToolTip(gt("remove-bookmark"));
} else { } else {
setIcon(QIcon(":/icons/reading-list.svg")); setIcon(QIcon(":/icons/star.svg"));
setToolTip(gt("add-bookmark"));
} }
setIconSize(QSize(25, 25)); setIconSize(QSize(32, 32));
} }
} }