mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 23:34:32 +08:00

Fonts were looking a bit to thick on when using `Text.NativeRendering`, so using `Text.QtRendering` instead. After this the font weight looks identical to figma (as far as I can see). In this commit I also changed all `Label`'s to `UM.Label`'s and removed default properties where I could. CURA-9154
36 lines
775 B
QML
36 lines
775 B
QML
// 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.5 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
|
|
|
|
UM.Label
|
|
{
|
|
id: label
|
|
width: image.width
|
|
anchors.horizontalCenter: image.horizontalCenter
|
|
horizontalAlignment: Text.AlignHCenter
|
|
text: ""
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
|
|
Image
|
|
{
|
|
id: image
|
|
source: ""
|
|
}
|
|
} |