mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-23 20:20:58 -04:00
Merge pull request #1066 from sgourdas/feature/bookmark_qol
Changing boomark icon to star and adding tooltip
This commit is contained in:
commit
4c5128415a
@ -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",
|
||||||
|
@ -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.",
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user