mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Remove usage of Qt.platform.os
This commit is contained in:
parent
352e52f454
commit
94ddc54888
@ -46,6 +46,8 @@ InfoComicsView::InfoComicsView(QWidget *parent)
|
|||||||
|
|
||||||
ctxt->setContextProperty("readTickUncheckedColor", "#DEDEDE");
|
ctxt->setContextProperty("readTickUncheckedColor", "#DEDEDE");
|
||||||
ctxt->setContextProperty("readTickCheckedColor", "#E84852");
|
ctxt->setContextProperty("readTickCheckedColor", "#E84852");
|
||||||
|
|
||||||
|
ctxt->setContextProperty("showDropShadow", QVariant(false));
|
||||||
} else {
|
} else {
|
||||||
ctxt->setContextProperty("infoBackgroundColor", "#2E2E2E");
|
ctxt->setContextProperty("infoBackgroundColor", "#2E2E2E");
|
||||||
ctxt->setContextProperty("topShadow", "info-top-shadow.png");
|
ctxt->setContextProperty("topShadow", "info-top-shadow.png");
|
||||||
@ -63,6 +65,8 @@ InfoComicsView::InfoComicsView(QWidget *parent)
|
|||||||
|
|
||||||
ctxt->setContextProperty("readTickUncheckedColor", "#1C1C1C");
|
ctxt->setContextProperty("readTickUncheckedColor", "#1C1C1C");
|
||||||
ctxt->setContextProperty("readTickCheckedColor", "#E84852");
|
ctxt->setContextProperty("readTickCheckedColor", "#E84852");
|
||||||
|
|
||||||
|
ctxt->setContextProperty("showDropShadow", QVariant(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
ctxt->setContextProperty("backgroundImage", QUrl());
|
ctxt->setContextProperty("backgroundImage", QUrl());
|
||||||
|
@ -126,7 +126,7 @@ Rectangle {
|
|||||||
samples: 17
|
samples: 17
|
||||||
color: "#BB000000"
|
color: "#BB000000"
|
||||||
source: coverElement
|
source: coverElement
|
||||||
visible: (Qt.platform.os === "osx") ? false : true;
|
visible: showDropShadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
|
@ -133,7 +133,7 @@ Rectangle {
|
|||||||
//samples: 17
|
//samples: 17
|
||||||
color: "#BB000000"
|
color: "#BB000000"
|
||||||
source: coverElement
|
source: coverElement
|
||||||
visible: (Qt.platform.os === "osx") ? false : true;
|
visible: showDropShadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
|
Loading…
Reference in New Issue
Block a user