mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-04 16:25:15 +08:00
MaterialInfo: Tweak text-alignment/layout. [CURA-6141]
This commit is contained in:
parent
e7ff70870f
commit
3d413ceb2c
@ -40,6 +40,7 @@ Column
|
||||
|
||||
property var printDuration: PrintInformation.currentPrintTime
|
||||
property var columnWidthMultipliers: [ 0.4, 0.3, 0.3 ]
|
||||
property var columnHorizontalAligns: [ TextInput.AlignLeft, TextInput.AlignHCenter, TextInput.AlignHCenter ]
|
||||
|
||||
function getMaterialTable()
|
||||
{
|
||||
@ -79,6 +80,7 @@ Column
|
||||
{
|
||||
width: Math.round(byLineType.width * byLineType.columnWidthMultipliers[index])
|
||||
height: contentHeight
|
||||
horizontalAlignment: byLineType.columnHorizontalAligns[index]
|
||||
font: UM.Theme.getFont("default")
|
||||
wrapMode: Text.WrapAnywhere
|
||||
text: modelData
|
||||
@ -122,6 +124,7 @@ Column
|
||||
property var printMaterialCosts: PrintInformation.materialCosts
|
||||
property var printMaterialNames: PrintInformation.materialNames
|
||||
property var columnWidthMultipliers: [ 0.4, 0.2, 0.2, 0.2 ]
|
||||
property var columnHorizontalAligns: [ TextInput.AlignLeft, TextInput.AlignHCenter, TextInput.AlignHCenter, TextInput.AlignHCenter ]
|
||||
|
||||
function getMaterialTable()
|
||||
{
|
||||
@ -179,6 +182,7 @@ Column
|
||||
{
|
||||
width: Math.round(byMaterialType.width * byMaterialType.columnWidthMultipliers[index])
|
||||
height: contentHeight
|
||||
horizontalAlignment: byLineType.columnHorizontalAligns[index]
|
||||
font: UM.Theme.getFont("default")
|
||||
wrapMode: Text.WrapAnywhere
|
||||
text: modelData
|
||||
|
Loading…
x
Reference in New Issue
Block a user