Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/Frame.qml
Show All 17 Lines | |||||
18 | * ensure the GNU General Public License version 2.0 requirements will be | 18 | * ensure the GNU General Public License version 2.0 requirements will be | ||
19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | 19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | 22 | | |||
23 | import QtQuick 2.6 | 23 | import QtQuick 2.6 | ||
24 | import QtQuick.Controls 2.0 | 24 | import QtQuick.Controls 2.0 | ||
25 | import QtQuick.Templates 2.0 as T | 25 | import QtQuick.Templates 2.0 as T | ||
26 | import org.kde.kirigami 2.2 as Kirigami | ||||
26 | 27 | | |||
27 | T.Frame { | 28 | T.Frame { | ||
28 | id: control | 29 | id: control | ||
29 | 30 | | |||
30 | implicitWidth: contentWidth + leftPadding + rightPadding | 31 | implicitWidth: contentWidth + leftPadding + rightPadding | ||
31 | implicitHeight: contentHeight + topPadding + bottomPadding | 32 | implicitHeight: contentHeight + topPadding + bottomPadding | ||
32 | 33 | | |||
33 | contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) | 34 | contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0) | ||
34 | contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) | 35 | contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0) | ||
35 | 36 | | |||
36 | padding: 6 | 37 | padding: 6 | ||
37 | 38 | | |||
38 | background: Rectangle { | 39 | background: Rectangle { | ||
39 | color: "transparent" | 40 | color: "transparent" | ||
40 | property color borderColor: StylePrivate.SystemPaletteSingleton.text(control.enabled) | 41 | property color borderColor: Kirigami.Theme.textColor | ||
41 | border.color: Qt.rgba(borderColor.r, borderColor.g, borderColor.b, 0.3) | 42 | border.color: Qt.rgba(borderColor.r, borderColor.g, borderColor.b, 0.3) | ||
42 | } | 43 | } | ||
43 | } | 44 | } |