DolphinWX: Stop using XPM images

Using the XPM format for images has become a maintenance problem because
people don't know how to create them. This commit removes all XPM images
and all C files that contain PNG images. DolphinWX now uses the PNGs
in the Resources folder instead, just like DolphinQt and DolphinQt2 do.
This commit is contained in:
JosJuice
2015-12-19 11:34:01 +01:00
parent 460cef492a
commit 81466d7fa3
52 changed files with 81 additions and 4648 deletions

View File

@ -8,11 +8,9 @@
#include <wx/string.h>
class wxBitmap;
class wxSize;
class wxToolBar;
// A shortcut to access the bitmaps
#define wxGetBitmapFromMemory(name) WxUtils::_wxGetBitmapFromMemory(name, sizeof(name))
namespace WxUtils
{
@ -25,7 +23,9 @@ void Explore(const std::string& path);
// Displays a wxMessageBox geared for errors
void ShowErrorDialog(const wxString& error_msg);
wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length);
// Reads a PNG from the Resources folder
wxBitmap LoadResourceBitmap(const std::string& name, bool allow_2x = false);
wxBitmap LoadResourceBitmapPadded(const std::string& name, const wxSize& size);
// From a wxBitmap, creates the corresponding disabled version for toolbar buttons
wxBitmap CreateDisabledButtonBitmap(const wxBitmap& original);