mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
52 lines
1.2 KiB
QML
52 lines
1.2 KiB
QML
// Copyright (c) 2018 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.7
|
|
import QtQuick.Controls 2.1
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import UM 1.3 as UM
|
|
|
|
RowLayout
|
|
{
|
|
id: detailsRow
|
|
width: parent.width
|
|
height: 40 * screenScaleFactor
|
|
|
|
property alias iconSource: icon.source
|
|
property alias label: detailName.text
|
|
property alias value: detailValue.text
|
|
|
|
UM.RecolorImage
|
|
{
|
|
id: icon
|
|
width: 18 * screenScaleFactor
|
|
height: width
|
|
source: ""
|
|
color: UM.Theme.getColor("text")
|
|
}
|
|
|
|
Label
|
|
{
|
|
id: detailName
|
|
color: UM.Theme.getColor("text")
|
|
elide: Text.ElideRight
|
|
Layout.minimumWidth: 50 * screenScaleFactor
|
|
Layout.maximumWidth: 100 * screenScaleFactor
|
|
Layout.fillWidth: true
|
|
font: UM.Theme.getFont("default")
|
|
renderType: Text.NativeRendering
|
|
}
|
|
|
|
Label
|
|
{
|
|
id: detailValue
|
|
color: UM.Theme.getColor("text")
|
|
elide: Text.ElideRight
|
|
Layout.minimumWidth: 50 * screenScaleFactor
|
|
Layout.maximumWidth: 100 * screenScaleFactor
|
|
Layout.fillWidth: true
|
|
font: UM.Theme.getFont("default")
|
|
renderType: Text.NativeRendering
|
|
}
|
|
}
|