Merge pull request #16270 from Ultimaker/CURA-10583_force_left_to_right_setting_field

Force left to right reading direction for numeric textfield
This commit is contained in:
Remco Burema 2023-07-26 16:43:25 +02:00 committed by GitHub
commit 3d289d75f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,11 @@ UM.TooltipArea
anchors.left: fieldLabel.right
anchors.leftMargin: spacing
verticalAlignment: Text.AlignVCenter
// The control is set up for left to right. So we force it to that. If we don't, it will take the OS reading
// direction, which might not be left to right. This will lead to the text overlapping with the unit
horizontalAlignment: TextInput.AlignLeft
selectionColor: UM.Theme.getColor("text_selection")
selectedTextColor: UM.Theme.getColor("setting_control_text")
padding: 0