Warning, /plasma/qqc2-breeze-style/style/impl/FocusRect.qml is written in an unsupported language. File is not indexed.
0001 /* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com> 0002 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0003 */ 0004 0005 import QtQuick 0006 import org.kde.kirigami as Kirigami 0007 0008 import "." as Impl 0009 0010 Loader { 0011 id: root 0012 property real baseRadius: 0 0013 active: visible 0014 anchors.fill: parent 0015 sourceComponent: Component { 0016 Rectangle { 0017 id: innerRing 0018 anchors { 0019 fill: parent 0020 margins: -border.width 0021 } 0022 color: "transparent" 0023 radius: root.baseRadius > 0 ? root.baseRadius + border.width : 0 0024 border.color: Qt.rgba( 0025 Kirigami.Theme.focusColor.r, 0026 Kirigami.Theme.focusColor.g, 0027 Kirigami.Theme.focusColor.b, 0028 0.42 0029 ) 0030 border.width: Impl.Units.mediumBorder/2 0031 0032 Rectangle { 0033 id: outerRing 0034 anchors { 0035 fill: parent 0036 margins: -border.width 0037 } 0038 color: "transparent" 0039 radius: parent.radius > 0 ? parent.radius + border.width : 0 0040 border.color: Qt.rgba( 0041 Kirigami.Theme.focusColor.r, 0042 Kirigami.Theme.focusColor.g, 0043 Kirigami.Theme.focusColor.b, 0044 0.28 0045 ) 0046 border.width: parent.border.width 0047 } 0048 } 0049 } 0050 }