From 7ce05f71c24e97ceaca9aa4931e3f7879725670e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 14 Sep 2018 09:38:16 +0200 Subject: [PATCH] Remove check based on the os instead of theme. --- YACReaderLibrary/qml/FlowView.qml | 2 +- YACReaderLibrary/theme.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/qml/FlowView.qml b/YACReaderLibrary/qml/FlowView.qml index 7a54cfb5..cb258221 100644 --- a/YACReaderLibrary/qml/FlowView.qml +++ b/YACReaderLibrary/qml/FlowView.qml @@ -124,7 +124,7 @@ Rectangle { samples: 17 color: "#BB000000" source: coverElement - visible: (Qt.platform.os === "osx") ? false : true; + visible: useDropShadows; } Image { diff --git a/YACReaderLibrary/theme.h b/YACReaderLibrary/theme.h index 514e4f31..50909d7f 100644 --- a/YACReaderLibrary/theme.h +++ b/YACReaderLibrary/theme.h @@ -283,6 +283,8 @@ public: ctxt->setContextProperty("readTickUncheckedColor", infoViewReadTickUncheckedColor); ctxt->setContextProperty("readTickCheckedColor", infoViewReadTickCheckedColor); + + ctxt->setContextProperty("useDropShadows",useDropShadows); } bool isMacosNative;