mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Don't use Q_OS_MAC for ui specifics, Y_MAC_UI is the replacement
This commit is contained in:
@ -30,7 +30,7 @@ GridComicsView::GridComicsView(QWidget *parent)
|
||||
QQmlContext *ctxt = view->rootContext();
|
||||
|
||||
LibraryUITheme theme;
|
||||
#ifdef Q_OS_MAC
|
||||
#ifdef Y_MAC_UI
|
||||
theme = Light;
|
||||
#else
|
||||
theme = Dark;
|
||||
@ -102,12 +102,6 @@ GridComicsView::GridComicsView(QWidget *parent)
|
||||
ctxt->setContextProperty("readTickCheckedColor", "#E84852");
|
||||
}
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
||||
ctxt->setContextProperty("backgroundImage", QUrl());
|
||||
ctxt->setContextProperty("backgroundBlurOpacity", 0.0);
|
||||
ctxt->setContextProperty("backgroundBlurRadius", 0.0);
|
||||
@ -284,7 +278,7 @@ void GridComicsView::updateBackgroundConfig()
|
||||
ctxt->setContextProperty("backgroundBlurVisible", QVariant(false));
|
||||
}
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
#ifdef Y_MAC_UI
|
||||
ctxt->setContextProperty("cellColor", useBackgroundImage ? "#99FFFFFF" : "#FFFFFF");
|
||||
ctxt->setContextProperty("selectedColor", "#FFFFFF");
|
||||
#else
|
||||
|
Reference in New Issue
Block a user