Переглянути джерело

Browser: Add missing tooltip to bookmark button

The tip will say "Add Bookmark" if not a bookmark and "Remove
Bookmark" if it is.
Dylan Katz 5 роки тому
батько
коміт
47f413c47f
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      Applications/Browser/Tab.cpp

+ 2 - 0
Applications/Browser/Tab.cpp

@@ -271,8 +271,10 @@ void Tab::update_bookmark_button(const String& 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_tooltip("Remove Bookmark");
     } else {
         m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-contour.png"));
+        m_bookmark_button->set_tooltip("Add Bookmark");
     }
 }