mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:27:35 +00:00
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. :^)
This commit is contained in:
parent
6561987e9f
commit
bdc19563ef
5 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ Tab::Tab()
|
||||||
|
|
||||||
m_bookmark_button = toolbar.add<GUI::Button>();
|
m_bookmark_button = toolbar.add<GUI::Button>();
|
||||||
m_bookmark_button->set_button_style(Gfx::ButtonStyle::CoolBar);
|
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_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed);
|
||||||
m_bookmark_button->set_preferred_size(22, 22);
|
m_bookmark_button->set_preferred_size(22, 22);
|
||||||
|
|
||||||
|
@ -367,10 +367,10 @@ void Tab::update_actions()
|
||||||
void Tab::update_bookmark_button(const String& url)
|
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/bookmark-filled.png"));
|
||||||
m_bookmark_button->set_tooltip("Remove Bookmark");
|
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/bookmark-contour.png"));
|
||||||
m_bookmark_button->set_tooltip("Add Bookmark");
|
m_bookmark_button->set_tooltip("Add Bookmark");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
BIN
Base/res/icons/16x16/bookmark-contour.png
Normal file
BIN
Base/res/icons/16x16/bookmark-contour.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 126 B |
BIN
Base/res/icons/16x16/bookmark-filled.png
Normal file
BIN
Base/res/icons/16x16/bookmark-filled.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 166 B |
Binary file not shown.
Before Width: | Height: | Size: 612 B |
Binary file not shown.
Before Width: | Height: | Size: 583 B |
Loading…
Add table
Add a link
Reference in a new issue