mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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
Notes:
sideshowbarker
2024-07-19 06:11:07 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bdc19563ef1
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->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");
|
||||
}
|
||||
}
|
||||
|
|
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
Reference in a new issue