mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 09:50:33 -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("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());
|
||||
|
@ -126,7 +126,7 @@ Rectangle {
|
||||
samples: 17
|
||||
color: "#BB000000"
|
||||
source: coverElement
|
||||
visible: (Qt.platform.os === "osx") ? false : true;
|
||||
visible: showDropShadow;
|
||||
}
|
||||
|
||||
Image {
|
||||
|
@ -133,7 +133,7 @@ Rectangle {
|
||||
//samples: 17
|
||||
color: "#BB000000"
|
||||
source: coverElement
|
||||
visible: (Qt.platform.os === "osx") ? false : true;
|
||||
visible: showDropShadow;
|
||||
}
|
||||
|
||||
Image {
|
||||
|
Loading…
Reference in New Issue
Block a user