mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Remove usage of Qt.platform.os
This commit is contained in:
parent
78800010f6
commit
85b1c42380
@ -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());
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user