From 78800010f6ec9f4a00c8940f57fa82ba9bee107d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 24 May 2023 20:45:43 +0200 Subject: [PATCH] Remove usage of Qt.platform.os --- YACReaderLibrary/grid_comics_view.cpp | 2 +- YACReaderLibrary/qml/GridComicsView.qml | 2 +- YACReaderLibrary/qml/GridComicsView6.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/YACReaderLibrary/grid_comics_view.cpp b/YACReaderLibrary/grid_comics_view.cpp index 5a5afd88..924533d9 100644 --- a/YACReaderLibrary/grid_comics_view.cpp +++ b/YACReaderLibrary/grid_comics_view.cpp @@ -70,7 +70,7 @@ GridComicsView::GridComicsView(QWidget *parent) ctxt->setContextProperty("backgroundColor", "#2A2A2A"); ctxt->setContextProperty("cellColor", "#212121"); ctxt->setContextProperty("selectedColor", "#121212"); - ctxt->setContextProperty("selectedBorderColor", "#121212"); + ctxt->setContextProperty("selectedBorderColor", "#FFCC00"); ctxt->setContextProperty("borderColor", "#121212"); ctxt->setContextProperty("titleColor", "#FFFFFF"); ctxt->setContextProperty("textColor", "#A8A8A8"); diff --git a/YACReaderLibrary/qml/GridComicsView.qml b/YACReaderLibrary/qml/GridComicsView.qml index 811a0a56..b9da0edc 100644 --- a/YACReaderLibrary/qml/GridComicsView.qml +++ b/YACReaderLibrary/qml/GridComicsView.qml @@ -134,7 +134,7 @@ SplitView { rightMargin : commonBorder ? -commonBorderWidth : -rBorderwidth } - border.color: (Qt.platform.os === "osx") ? selectedBorderColor : "#ffcc00" + border.color: selectedBorderColor border.width: 3 opacity: (dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index) ? 1 : 0 diff --git a/YACReaderLibrary/qml/GridComicsView6.qml b/YACReaderLibrary/qml/GridComicsView6.qml index 2967f46a..e7d64455 100644 --- a/YACReaderLibrary/qml/GridComicsView6.qml +++ b/YACReaderLibrary/qml/GridComicsView6.qml @@ -137,7 +137,7 @@ SplitView { rightMargin : commonBorder ? -commonBorderWidth : -rBorderwidth } - border.color: (Qt.platform.os === "osx") ? selectedBorderColor : "#ffcc00" + border.color: selectedBorderColor border.width: 3 opacity: (dummyValue || !dummyValue) && comicsSelectionHelper.isSelectedIndex(index) ? 1 : 0