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