mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:47:46 +00:00
WindowServer+LibGUI: Remove old "icon path" way of doing things.
Now that we can set icons directly "by bitmap", there's no need for passing around the icon paths anymore, so get rid of all the IPC and API related to that. :^)
This commit is contained in:
parent
841b2e5d13
commit
d4892b3fdc
13 changed files with 3 additions and 158 deletions
|
@ -131,12 +131,6 @@ public:
|
|||
const GraphicsBitmap& icon() const { return *m_icon; }
|
||||
void set_icon(NonnullRefPtr<GraphicsBitmap>&& icon) { m_icon = move(icon); }
|
||||
|
||||
String icon_path() const { return m_icon_path; }
|
||||
void set_icon(const String& path, NonnullRefPtr<GraphicsBitmap>&& icon)
|
||||
{
|
||||
m_icon_path = path;
|
||||
m_icon = move(icon);
|
||||
}
|
||||
void set_default_icon();
|
||||
|
||||
const WSCursor* override_cursor() const { return m_override_cursor.ptr(); }
|
||||
|
@ -176,7 +170,6 @@ private:
|
|||
Size m_size_increment;
|
||||
Size m_base_size;
|
||||
NonnullRefPtr<GraphicsBitmap> m_icon;
|
||||
String m_icon_path;
|
||||
RefPtr<WSCursor> m_override_cursor;
|
||||
WSWindowFrame m_frame;
|
||||
Color m_background_color { Color::WarmGray };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue