Remove usage of Qt.platform.os

This commit is contained in:
Luis Ángel San Martín 2023-05-24 20:57:45 +02:00
parent 78800010f6
commit 85b1c42380
3 changed files with 6 additions and 2 deletions

View File

@ -66,6 +66,8 @@ GridComicsView::GridComicsView(QWidget *parent)
ctxt->setContextProperty("readTickUncheckedColor", "#DEDEDE"); ctxt->setContextProperty("readTickUncheckedColor", "#DEDEDE");
ctxt->setContextProperty("readTickCheckedColor", "#E84852"); ctxt->setContextProperty("readTickCheckedColor", "#E84852");
ctxt->setContextProperty("currentComicBackgroundColor", "#88FFFFFF");
} else { } else {
ctxt->setContextProperty("backgroundColor", "#2A2A2A"); ctxt->setContextProperty("backgroundColor", "#2A2A2A");
ctxt->setContextProperty("cellColor", "#212121"); ctxt->setContextProperty("cellColor", "#212121");
@ -100,6 +102,8 @@ GridComicsView::GridComicsView(QWidget *parent)
ctxt->setContextProperty("readTickUncheckedColor", "#1C1C1C"); ctxt->setContextProperty("readTickUncheckedColor", "#1C1C1C");
ctxt->setContextProperty("readTickCheckedColor", "#E84852"); ctxt->setContextProperty("readTickCheckedColor", "#E84852");
ctxt->setContextProperty("currentComicBackgroundColor", "#88000000");
} }
ctxt->setContextProperty("backgroundImage", QUrl()); ctxt->setContextProperty("backgroundImage", QUrl());

View File

@ -432,7 +432,7 @@ SplitView {
height: showCurrentComic ? 270 : 20 height: showCurrentComic ? 270 : 20
Rectangle { Rectangle {
color: (Qt.platform.os === "osx") ? "#88FFFFFF" : "#88000000" color: currentComicBackgroundColor
id: currentComicVisualView id: currentComicVisualView

View File

@ -435,7 +435,7 @@ SplitView {
height: showCurrentComic ? 270 : 20 height: showCurrentComic ? 270 : 20
Rectangle { Rectangle {
color: (Qt.platform.os === "osx") ? "#88FFFFFF" : "#88000000" color: currentComicBackgroundColor
id: currentComicVisualView id: currentComicVisualView