Copy SVG files with samples

Add few recently added SVG files used for bitmap bundles in samples
also to bakefiles and CMakeLists.

Closes #22197.
This commit is contained in:
PB
2022-03-15 22:28:35 +01:00
committed by Vadim Zeitlin
parent 0d37f733b5
commit e5f195da33
16 changed files with 71 additions and 47 deletions

View File

@@ -27,6 +27,7 @@
#include "smile.xpm"
#include "smile2.xpm"
#include "wx/artprov.h"
#include "wx/taskbar.h"
#include "tbtest.h"
@@ -119,7 +120,7 @@ MyDialog::MyDialog(const wxString& title)
m_taskBarIcon = new MyTaskBarIcon();
// we should be able to show up to 128 characters on Windows
if (!m_taskBarIcon->SetIcon(wxBitmapBundle::FromSVGFile("icon.svg", wxSize(32, 32)),
if (!m_taskBarIcon->SetIcon(wxArtProvider::GetBitmapBundle(wxART_WX_LOGO, wxART_OTHER, wxSize(32, 32)),
"wxTaskBarIcon Sample\n"
"With a very, very, very, very\n"
"long tooltip whose length is\n"
@@ -130,7 +131,7 @@ MyDialog::MyDialog(const wxString& title)
#if defined(__WXOSX__) && wxOSX_USE_COCOA
m_dockIcon = new MyTaskBarIcon(wxTBI_DOCK);
if ( !m_dockIcon->SetIcon(wxBitmapBundle::FromSVGFile("icon.svg", wxSize(32, 32))) )
if ( !m_dockIcon->SetIcon(wxArtProvider::GetBitmapBundle(wxART_WX_LOGO, wxART_OTHER, wxSize(32, 32))) )
{
wxLogError("Could not set icon.");
}