Don't use Q_OS_MAC for ui specifics, Y_MAC_UI is the replacement

This commit is contained in:
Luis Ángel San Martín
2023-05-23 18:51:33 +02:00
parent b45fabe057
commit 315d2deced
28 changed files with 78 additions and 80 deletions

View File

@ -71,7 +71,7 @@ QString YACReader::labelColorToRGBString(LabelColors color)
case YPink:
return "#FF9FDD";
#ifdef Q_OS_MAC
#ifdef Y_MAC_UI
case YWhite:
return "#E3E3E3";
#else

View File

@ -19,6 +19,10 @@
#define MAX_LIBRARIES_WARNING_NUM 10
#ifdef Q_OS_MAC
#define Y_MAC_UI
#endif
namespace YACReader {
enum YACReaderIPCMessages {

View File

@ -57,7 +57,7 @@ QList<qulonglong> YACReader::mimeDataToComicsIds(const QMimeData *data)
QString YACReader::addExtensionToIconPath(const QString &path)
{
#ifdef YACREADER_LIBRARY
#ifdef Q_OS_MAC
#ifdef Q_OS_MAC // TODO_Y_MAC_UI
return path + ".png";
#else
return path + ".svg";