mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 12:21:26 -07:00
Add a grid with images
Those images indicate the type of data we are collecting anonymously. Contributes to CURA-6434.
This commit is contained in:
parent
9d48a90f8f
commit
534a035841
3 changed files with 66 additions and 71 deletions
39
resources/qml/WelcomePages/ImageTile.qml
Normal file
39
resources/qml/WelcomePages/ImageTile.qml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
// Copyright (c) 2019 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
import QtQuick.Controls 2.3
|
||||
|
||||
import UM 1.3 as UM
|
||||
|
||||
|
||||
//
|
||||
// This component places a text on top of an image.
|
||||
//
|
||||
Column
|
||||
{
|
||||
leftPadding: UM.Theme.getSize("default_margin").width
|
||||
rightPadding: UM.Theme.getSize("default_margin").width
|
||||
spacing: UM.Theme.getSize("default_margin").height
|
||||
property alias text: label.text
|
||||
property alias imageSource: image.source
|
||||
|
||||
Label
|
||||
{
|
||||
id: label
|
||||
width: image.width
|
||||
anchors.horizontalCenter: image.horizontalCenter
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: ""
|
||||
wrapMode: Text.WordWrap
|
||||
font: UM.Theme.getFont("default")
|
||||
color: UM.Theme.getColor("text")
|
||||
renderType: Text.NativeRendering
|
||||
}
|
||||
|
||||
Image
|
||||
{
|
||||
id: image
|
||||
source: ""
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue