mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Replace more instances of label with UM.Label
This commit is contained in:
parent
8195b9be28
commit
a68584cda1
6 changed files with 35 additions and 86 deletions
|
@ -4,7 +4,7 @@
|
|||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.0
|
||||
|
||||
import UM 1.1 as UM
|
||||
import UM 1.5 as UM
|
||||
|
||||
SettingItem
|
||||
{
|
||||
|
@ -90,7 +90,7 @@ SettingItem
|
|||
opacity: !control.hovered ? 0 : propertyProvider.properties.validationState == "ValidatorState.Valid" ? 1.0 : 0.35
|
||||
}
|
||||
|
||||
Label
|
||||
UM.Label
|
||||
{
|
||||
anchors
|
||||
{
|
||||
|
@ -105,9 +105,7 @@ SettingItem
|
|||
//However the setting value is aligned, align the unit opposite. That way it stays readable with right-to-left languages.
|
||||
horizontalAlignment: (input.effectiveHorizontalAlignment == Text.AlignLeft) ? Text.AlignRight : Text.AlignLeft
|
||||
textFormat: Text.PlainText
|
||||
renderType: Text.NativeRendering
|
||||
color: UM.Theme.getColor("setting_unit")
|
||||
font: UM.Theme.getFont("default")
|
||||
}
|
||||
|
||||
TextInput
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue