Kirigami2

PrivateSwipeHighlight.qml
1 /*
2  * SPDX-FileCopyrightText: 2020 Carson Black <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.12
8 import org.kde.kirigami 2.12 as Kirigami
9 
10 Rectangle {
11  Accessible.ignored: true
12 
13  anchors {
14  bottom: Kirigami.Settings.isMobile ? undefined : parent.bottom
15  top: Kirigami.Settings.isMobile ? parent.top : undefined
16  left: parent.left
17  right: parent.right
18  }
19 
20  color: {
21  if (state === "highlighted") {
22  return Kirigami.Theme.activeTextColor
23  } else if (state === "requestingAttention") {
24  return Kirigami.Theme.negativeTextColor
25  }
26  return "transparent"
27  }
28 
29  // Unlike most things, we don't want to scale with the em grid, so we don't use a Unit.
30  height: 2
31 }
QTextStream & right(QTextStream &stream)
QTextStream & left(QTextStream &stream)
QTextStream & left(QTextStream &s)
QTextStream & right(QTextStream &s)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:14:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.