From 85b1c42380259b6a5280a9d92fb66083e496a7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 24 May 2023 20:57:45 +0200 Subject: [PATCH] Remove usage of Qt.platform.os --- YACReaderLibrary/grid_comics_view.cpp | 4 ++++ YACReaderLibrary/qml/GridComicsView.qml | 2 +- YACReaderLibrary/qml/GridComicsView6.qml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/grid_comics_view.cpp b/YACReaderLibrary/grid_comics_view.cpp index 924533d9..b971bc87 100644 --- a/YACReaderLibrary/grid_comics_view.cpp +++ b/YACReaderLibrary/grid_comics_view.cpp @@ -66,6 +66,8 @@ GridComicsView::GridComicsView(QWidget *parent) ctxt->setContextProperty("readTickUncheckedColor", "#DEDEDE"); ctxt->setContextProperty("readTickCheckedColor", "#E84852"); + + ctxt->setContextProperty("currentComicBackgroundColor", "#88FFFFFF"); } else { ctxt->setContextProperty("backgroundColor", "#2A2A2A"); ctxt->setContextProperty("cellColor", "#212121"); @@ -100,6 +102,8 @@ GridComicsView::GridComicsView(QWidget *parent) ctxt->setContextProperty("readTickUncheckedColor", "#1C1C1C"); ctxt->setContextProperty("readTickCheckedColor", "#E84852"); + + ctxt->setContextProperty("currentComicBackgroundColor", "#88000000"); } ctxt->setContextProperty("backgroundImage", QUrl()); diff --git a/YACReaderLibrary/qml/GridComicsView.qml b/YACReaderLibrary/qml/GridComicsView.qml index b9da0edc..37ffecef 100644 --- a/YACReaderLibrary/qml/GridComicsView.qml +++ b/YACReaderLibrary/qml/GridComicsView.qml @@ -432,7 +432,7 @@ SplitView { height: showCurrentComic ? 270 : 20 Rectangle { - color: (Qt.platform.os === "osx") ? "#88FFFFFF" : "#88000000" + color: currentComicBackgroundColor id: currentComicVisualView diff --git a/YACReaderLibrary/qml/GridComicsView6.qml b/YACReaderLibrary/qml/GridComicsView6.qml index e7d64455..b1c2b5dc 100644 --- a/YACReaderLibrary/qml/GridComicsView6.qml +++ b/YACReaderLibrary/qml/GridComicsView6.qml @@ -435,7 +435,7 @@ SplitView { height: showCurrentComic ? 270 : 20 Rectangle { - color: (Qt.platform.os === "osx") ? "#88FFFFFF" : "#88000000" + color: currentComicBackgroundColor id: currentComicVisualView