mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +00:00
Browser: Use the active tab's favicon as the window icon :^)
This commit is contained in:
parent
4d8206f7c2
commit
260e4049ff
Notes:
sideshowbarker
2024-07-19 07:19:20 +09:00
Author: https://github.com/awesomekling
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