Add wxART_WX_LOGO and use it in the webview sample

Embed SVG data of the wx logo into the library itself to make it
available to all wx programs, including the samples. This is a bit
wasteful, but <12KiB is not really noticeable compared to the library
size.
This commit is contained in:
Vadim Zeitlin
2022-01-23 00:43:50 +00:00
parent a2ad755b1c
commit 2208f53ba3
11 changed files with 789 additions and 6 deletions

View File

@@ -324,7 +324,7 @@ WebFrame::WebFrame(const wxString& url) :
forward = wxBitmapBundle::FromSVGFile("webview_forward.svg", sizeBitmap);
stop = wxBitmapBundle::FromSVGFile("webview_stop.svg", sizeBitmap);
refresh = wxBitmapBundle::FromSVGFile("webview_refresh.svg", sizeBitmap);
wxlogo = wxBitmapBundle::FromSVGFile("wxlogo.svg", sizeBitmap);
wxlogo = wxArtProvider::GetBitmapBundle(wxART_WX_LOGO);
#else
toolbarStyle |= wxTB_NOICONS;
#endif