mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 06:09:51 +00:00
Browser: Add missing tooltip to bookmark button
The tip will say "Add Bookmark" if not a bookmark and "Remove Bookmark" if it is.
This commit is contained in:
parent
fb63b84c78
commit
47f413c47f
Notes:
sideshowbarker
2024-07-19 17:34:22 +09:00
Author: https://github.com/dykatz 🔰
Commit: 47f413c47f
Pull-request: https://github.com/SerenityOS/serenity/pull/2028
1 changed files with 2 additions and 0 deletions
|
@ -271,8 +271,10 @@ void Tab::update_bookmark_button(const String& url)
|
||||||
{
|
{
|
||||||
if (BookmarksBarWidget::the().contains_bookmark(url)) {
|
if (BookmarksBarWidget::the().contains_bookmark(url)) {
|
||||||
m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-yellow.png"));
|
m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-yellow.png"));
|
||||||
|
m_bookmark_button->set_tooltip("Remove Bookmark");
|
||||||
} else {
|
} else {
|
||||||
m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-contour.png"));
|
m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-contour.png"));
|
||||||
|
m_bookmark_button->set_tooltip("Add Bookmark");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue