Remove usage of Qt.platform.os

This commit is contained in:
Luis Ángel San Martín 2023-05-24 21:01:02 +02:00
parent 352e52f454
commit 94ddc54888
3 changed files with 6 additions and 2 deletions

View File

@ -46,6 +46,8 @@ InfoComicsView::InfoComicsView(QWidget *parent)
ctxt->setContextProperty("readTickUncheckedColor", "#DEDEDE");
ctxt->setContextProperty("readTickCheckedColor", "#E84852");
ctxt->setContextProperty("showDropShadow", QVariant(false));
} else {
ctxt->setContextProperty("infoBackgroundColor", "#2E2E2E");
ctxt->setContextProperty("topShadow", "info-top-shadow.png");
@ -63,6 +65,8 @@ InfoComicsView::InfoComicsView(QWidget *parent)
ctxt->setContextProperty("readTickUncheckedColor", "#1C1C1C");
ctxt->setContextProperty("readTickCheckedColor", "#E84852");
ctxt->setContextProperty("showDropShadow", QVariant(true));
}
ctxt->setContextProperty("backgroundImage", QUrl());

View File

@ -126,7 +126,7 @@ Rectangle {
samples: 17
color: "#BB000000"
source: coverElement
visible: (Qt.platform.os === "osx") ? false : true;
visible: showDropShadow;
}
Image {

View File

@ -133,7 +133,7 @@ Rectangle {
//samples: 17
color: "#BB000000"
source: coverElement
visible: (Qt.platform.os === "osx") ? false : true;
visible: showDropShadow;
}
Image {