diff options
Diffstat (limited to 'src/pdfquick/+Universal/PdfStyle.qml')
-rw-r--r-- | src/pdfquick/+Universal/PdfStyle.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pdfquick/+Universal/PdfStyle.qml b/src/pdfquick/+Universal/PdfStyle.qml new file mode 100644 index 000000000..4c559f068 --- /dev/null +++ b/src/pdfquick/+Universal/PdfStyle.qml @@ -0,0 +1,15 @@ +// Copyright (C) 2022 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +import QtQuick +import QtQuick.Controls.Universal + +QtObject { + property SystemPalette palette: SystemPalette { } + function withAlpha(color, alpha) { + return Qt.hsla(color.hslHue, color.hslSaturation, color.hslLightness, alpha) + } + property color selectionColor: withAlpha(palette.highlight, 0.5) + property color pageSearchResultsColor: withAlpha(Qt.lighter(Universal.accent, 1.5), 0.5) + property color currentSearchResultStrokeColor: Universal.accent + property real currentSearchResultStrokeWidth: 2 +} |