aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome/qml/welcomepage/AccountImage.qml
blob: cb9226e837aea9a0b86c2cdf8ab3dbb0b1fffb3e (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
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

import QtQuick 2.9
import welcome 1.0
import StudioFonts 1.0

Image {
    id: account_icon

    source: "images/" + (mouseArea.containsMouse ? "icon_hover.png" : "icon_default.png")

    Text {
        id: account
        color: mouseArea.containsMouse ? Constants.textHoverColor
                                       : Constants.textDefaultColor
        text: qsTr("Account")
        anchors.top: parent.bottom
        anchors.horizontalCenter: parent.horizontalCenter
        font.family: StudioFonts.titilliumWeb_regular
        font.pixelSize: 16
        renderType: Text.NativeRendering
    }

    MouseArea {
        id: mouseArea
        anchors.fill: parent
        anchors.margins: -25
        hoverEnabled: true

        onClicked: Qt.openUrlExternally("https://login.qt.io/login/")
    }
}