diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-24 18:45:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-24 18:46:48 +0200 |
commit | bdc19563ef1c6ecc04d81eb1f1d5f4cae1610486 (patch) | |
tree | b8c2a469dcfe24b79abe70dbd53bc451d178b327 | |
parent | 6561987e9f6a108b18421ba675ac32fc11901c0a (diff) | |
download | serenity-bdc19563ef1c6ecc04d81eb1f1d5f4cae1610486.zip |
Browser: Add new icons for the add/remove bookmark toolbar button
Here's a freshly drawn icon without antialiasing so it fits better with
the system visual style. :^)
-rw-r--r-- | Applications/Browser/Tab.cpp | 6 | ||||
-rw-r--r-- | Base/res/icons/16x16/bookmark-contour.png | bin | 0 -> 126 bytes | |||
-rw-r--r-- | Base/res/icons/16x16/bookmark-filled.png | bin | 0 -> 166 bytes | |||
-rw-r--r-- | Base/res/icons/16x16/star-contour.png | bin | 612 -> 0 bytes | |||
-rw-r--r-- | Base/res/icons/16x16/star-yellow.png | bin | 583 -> 0 bytes |
5 files changed, 3 insertions, 3 deletions
diff --git a/Applications/Browser/Tab.cpp b/Applications/Browser/Tab.cpp index 21b0ee662a..d6df6d2c28 100644 --- a/Applications/Browser/Tab.cpp +++ b/Applications/Browser/Tab.cpp @@ -122,7 +122,7 @@ Tab::Tab() m_bookmark_button = toolbar.add<GUI::Button>(); m_bookmark_button->set_button_style(Gfx::ButtonStyle::CoolBar); - m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/star-black.png")); + m_bookmark_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/bookmark-contour.png")); m_bookmark_button->set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed); m_bookmark_button->set_preferred_size(22, 22); @@ -367,10 +367,10 @@ void Tab::update_actions() 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_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/bookmark-filled.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_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/bookmark-contour.png")); m_bookmark_button->set_tooltip("Add Bookmark"); } } diff --git a/Base/res/icons/16x16/bookmark-contour.png b/Base/res/icons/16x16/bookmark-contour.png Binary files differnew file mode 100644 index 0000000000..ce43036bb2 --- /dev/null +++ b/Base/res/icons/16x16/bookmark-contour.png diff --git a/Base/res/icons/16x16/bookmark-filled.png b/Base/res/icons/16x16/bookmark-filled.png Binary files differnew file mode 100644 index 0000000000..c76976b44e --- /dev/null +++ b/Base/res/icons/16x16/bookmark-filled.png diff --git a/Base/res/icons/16x16/star-contour.png b/Base/res/icons/16x16/star-contour.png Binary files differdeleted file mode 100644 index ce7fbbe992..0000000000 --- a/Base/res/icons/16x16/star-contour.png +++ /dev/null diff --git a/Base/res/icons/16x16/star-yellow.png b/Base/res/icons/16x16/star-yellow.png Binary files differdeleted file mode 100644 index d169024740..0000000000 --- a/Base/res/icons/16x16/star-yellow.png +++ /dev/null |