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
85b1c42380
commit
352e52f454
@ -44,6 +44,7 @@ GridComicsView::GridComicsView(QWidget *parent)
|
||||
ctxt->setContextProperty("borderColor", "#DBDBDB");
|
||||
ctxt->setContextProperty("titleColor", "#121212");
|
||||
ctxt->setContextProperty("textColor", "#636363");
|
||||
ctxt->setContextProperty("showDropShadow", QVariant(false));
|
||||
// fonts settings
|
||||
ctxt->setContextProperty("fontSize", 11);
|
||||
ctxt->setContextProperty("fontFamily", QApplication::font().family());
|
||||
@ -76,7 +77,7 @@ GridComicsView::GridComicsView(QWidget *parent)
|
||||
ctxt->setContextProperty("borderColor", "#121212");
|
||||
ctxt->setContextProperty("titleColor", "#FFFFFF");
|
||||
ctxt->setContextProperty("textColor", "#A8A8A8");
|
||||
ctxt->setContextProperty("dropShadow", QVariant(false));
|
||||
ctxt->setContextProperty("showDropShadow", QVariant(true));
|
||||
// fonts settings
|
||||
int fontSize = QApplication::font().pointSize();
|
||||
if (fontSize == -1)
|
||||
|
@ -73,7 +73,7 @@ SplitView {
|
||||
samples: 17
|
||||
color: "#FF000000"
|
||||
source: realCell
|
||||
visible: (Qt.platform.os === "osx") ? false : true;
|
||||
visible: showDropShadow;
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
@ -468,7 +468,7 @@ SplitView {
|
||||
samples: 17
|
||||
color: "#FF000000"
|
||||
source: currentCoverElement
|
||||
visible: (Qt.platform.os === "osx") ? false : true;
|
||||
visible: showDropShadow;
|
||||
}
|
||||
|
||||
ColumnLayout
|
||||
@ -678,7 +678,7 @@ SplitView {
|
||||
samples: 17
|
||||
color: "#AA000000"
|
||||
source: readButton
|
||||
visible: ((Qt.platform.os === "osx") ? false : true) && !readButton.pressed
|
||||
visible: showDropShadow && !readButton.pressed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ SplitView {
|
||||
//samples: 17
|
||||
color: "#FF000000"
|
||||
source: realCell
|
||||
visible: (Qt.platform.os === "osx") ? false : true;
|
||||
visible: showDropShadow;
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
@ -472,7 +472,7 @@ SplitView {
|
||||
//samples: 17
|
||||
color: "#FF000000"
|
||||
source: currentCoverElement
|
||||
visible: (Qt.platform.os === "osx") ? false : true;
|
||||
visible: showDropShadow;
|
||||
}
|
||||
|
||||
ColumnLayout
|
||||
@ -686,7 +686,7 @@ SplitView {
|
||||
//samples: 17
|
||||
color: "#AA000000"
|
||||
source: readButton
|
||||
visible: ((Qt.platform.os === "osx") ? false : true) && !readButton.pressed
|
||||
visible: showDropShadow && !readButton.pressed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user