blob: 4c559f068af0feaa0add328dd336a5175b17e133 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}
|