mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-10 05:09:00 +08:00

Conflicts: plugins/PrepareStage/PrepareMenu.qml: Git was wrong, this was not really a conflict. resources/qml/ActionButton.qml: With iconSource being modified on ui_rework_4_0 and me modifying the icon to be able to display it on the left hand side. resources/qml/ActionPanel/OutputProcessWidget.qml: Git was wrong, not really a conflict. resources/qml/ActionPanel/SliceProcessWidget.qml: Git was wrong, not really a conflict. resources/qml/ExpandableComponent.qml: Both ui_rework_4_0 and me implemented a border around popups. resources/qml/MainWindow/MainWindowHeader.qml: Git was wrong, not really a conflict. resources/themes/cura-light/theme.json: Theme item was added in a place where I added whitespace.
54 lines
1.3 KiB
QML
54 lines
1.3 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.1 as UM
|
|
|
|
// This item will show a label with a squared icon in the left
|
|
Item
|
|
{
|
|
id: container
|
|
|
|
property alias text: label.text
|
|
property alias source: icon.source
|
|
property alias color: label.color
|
|
property alias font: label.font
|
|
property alias iconSize: icon.width
|
|
|
|
implicitHeight: icon.height
|
|
|
|
UM.RecolorImage
|
|
{
|
|
id: icon
|
|
|
|
anchors.left: parent.left
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
source: ""
|
|
width: UM.Theme.getSize("section_icon").width
|
|
height: width
|
|
|
|
sourceSize.width: width
|
|
sourceSize.height: height
|
|
|
|
color: label.color
|
|
visible: source != ""
|
|
}
|
|
|
|
Label
|
|
{
|
|
id: label
|
|
anchors.left: icon.visible ? icon.right : parent.left
|
|
anchors.right: parent.right
|
|
anchors.leftMargin: UM.Theme.getSize("thin_margin").width
|
|
anchors.verticalCenter: icon.verticalCenter
|
|
text: "Empty label"
|
|
elide: Text.ElideRight
|
|
color: UM.Theme.getColor("text")
|
|
font: UM.Theme.getFont("default")
|
|
renderType: Text.NativeRendering
|
|
}
|
|
} |