aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/fusion/Frame.qml
blob: 8fb5c965de1b4eb5fe22b442a2b17ec10cbb86b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial

import QtQuick
import QtQuick.Templates as T
import QtQuick.Controls.impl
import QtQuick.Controls.Fusion
import QtQuick.Controls.Fusion.impl

T.Frame {
    id: control

    implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
                            contentWidth + leftPadding + rightPadding)
    implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
                             contentHeight + topPadding + bottomPadding)

    padding: 9

    background: Rectangle {
        color: "transparent"
        border.color: Qt.lighter(Fusion.outline(control.palette), 1.08)
    }
}