Files
2025-12-10 14:38:26 -08:00

31 lines
1.1 KiB
C++

// *****************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
// * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 *
// * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved *
// *****************************************************************************
#ifndef APP_ICON_H_6748179634932174683214
#define APP_ICON_H_6748179634932174683214
#include <wx/icon.h>
#include <wx+/image_resources.h>
namespace fff
{
inline
wxIcon getFfsIcon()
{
using namespace zen;
//wxWidgets' bitmap to icon conversion on macOS can only deal with very specific sizes => check on all platforms!
assert(loadImage("FreeFileSync").GetWidth () == loadImage("FreeFileSync").GetHeight() &&
loadImage("FreeFileSync").GetWidth() == dipToScreen(128));
wxIcon icon; //Ubuntu-Linux does a bad job at down-scaling in Unity dash (blocky icons!) => prepare:
icon.CopyFromBitmap(loadImage("FreeFileSync", dipToScreen(64)));
return icon;
}
}
#endif //APP_ICON_H_6748179634932174683214