From 94ddc5488868eed7eb9d942c6eccc5359b7777d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 24 May 2023 21:01:02 +0200 Subject: [PATCH] Remove usage of Qt.platform.os --- YACReaderLibrary/info_comics_view.cpp | 4 ++++ YACReaderLibrary/qml/FlowView.qml | 2 +- YACReaderLibrary/qml/FlowView6.qml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/info_comics_view.cpp b/YACReaderLibrary/info_comics_view.cpp index e9dec4f1..0bd68764 100644 --- a/YACReaderLibrary/info_comics_view.cpp +++ b/YACReaderLibrary/info_comics_view.cpp @@ -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()); diff --git a/YACReaderLibrary/qml/FlowView.qml b/YACReaderLibrary/qml/FlowView.qml index 01f40057..908d52e8 100644 --- a/YACReaderLibrary/qml/FlowView.qml +++ b/YACReaderLibrary/qml/FlowView.qml @@ -126,7 +126,7 @@ Rectangle { samples: 17 color: "#BB000000" source: coverElement - visible: (Qt.platform.os === "osx") ? false : true; + visible: showDropShadow; } Image { diff --git a/YACReaderLibrary/qml/FlowView6.qml b/YACReaderLibrary/qml/FlowView6.qml index ff8f82f6..7300fd8b 100644 --- a/YACReaderLibrary/qml/FlowView6.qml +++ b/YACReaderLibrary/qml/FlowView6.qml @@ -133,7 +133,7 @@ Rectangle { //samples: 17 color: "#BB000000" source: coverElement - visible: (Qt.platform.os === "osx") ? false : true; + visible: showDropShadow; } Image {