mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -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("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());
|
||||
|
@ -432,7 +432,7 @@ SplitView {
|
||||
height: showCurrentComic ? 270 : 20
|
||||
|
||||
Rectangle {
|
||||
color: (Qt.platform.os === "osx") ? "#88FFFFFF" : "#88000000"
|
||||
color: currentComicBackgroundColor
|
||||
|
||||
id: currentComicVisualView
|
||||
|
||||
|
@ -435,7 +435,7 @@ SplitView {
|
||||
height: showCurrentComic ? 270 : 20
|
||||
|
||||
Rectangle {
|
||||
color: (Qt.platform.os === "osx") ? "#88FFFFFF" : "#88000000"
|
||||
color: currentComicBackgroundColor
|
||||
|
||||
id: currentComicVisualView
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user