aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qmldesigner/newprojectdialog/imports/NewProjectDialog/PopupDialog.qml
blob: 7c5f81ba5240fdec0d5a888c328a45ea3c5a3670 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0

import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

import StudioTheme as StudioTheme

import BackendApi

Dialog {
    id: root
    padding: DialogValues.popupDialogPadding

    background: Rectangle {
        color: DialogValues.darkPaneColor
        border.color: StudioTheme.Values.themeInteraction
        border.width: StudioTheme.Values.border
    }

    header: Label {
        text: root.title
        visible: root.title
        elide: Label.ElideRight
        font.bold: true
        font.pixelSize: DialogValues.defaultPixelSize
        padding: DialogValues.popupDialogPadding
        color: DialogValues.textColor
        horizontalAlignment: Text.AlignHCenter

        background: Rectangle {
            x: 1
            y: 1
            width: parent.width - 2
            height: parent.height - 1
            color: DialogValues.darkPaneColor
        }
    }

    footer: PopupDialogButtonBox {
        visible: count > 0
    }
}