mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
Browser: Use the active tab's favicon as the window icon :^)
This commit is contained in:
parent
4d8206f7c2
commit
260e4049ff
3 changed files with 12 additions and 5 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
Function<void(const Gfx::Bitmap&)> on_favicon_change;
|
||||
|
||||
const String& title() const { return m_title; }
|
||||
const Gfx::Bitmap* icon() const { return m_icon; }
|
||||
|
||||
private:
|
||||
Tab();
|
||||
|
@ -68,6 +69,8 @@ private:
|
|||
RefPtr<GUI::MenuBar> m_menubar;
|
||||
|
||||
String m_title;
|
||||
RefPtr<const Gfx::Bitmap> m_icon;
|
||||
|
||||
bool m_should_push_loads_to_history { true };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue