mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 07:15:03 -06:00
Fix dark-theme material-estimates-panel (and layout-issues). [CURA-6174]
This commit is contained in:
parent
cfdadbaffb
commit
5c54cb740a
1 changed files with 7 additions and 5 deletions
|
@ -39,8 +39,8 @@ Column
|
|||
id: byLineType
|
||||
|
||||
property var printDuration: PrintInformation.currentPrintTime
|
||||
property var columnWidthMultipliers: [ 0.4, 0.3, 0.3 ]
|
||||
property var columnHorizontalAligns: [ TextInput.AlignLeft, TextInput.AlignHCenter, TextInput.AlignHCenter ]
|
||||
property var columnWidthMultipliers: [ 0.45, 0.3, 0.25 ]
|
||||
property var columnHorizontalAligns: [ Text.AlignLeft, Text.AlignHCenter, Text.AlignRight ]
|
||||
|
||||
function getMaterialTable()
|
||||
{
|
||||
|
@ -81,6 +81,7 @@ Column
|
|||
width: Math.round(byLineType.width * byLineType.columnWidthMultipliers[index])
|
||||
height: contentHeight
|
||||
horizontalAlignment: byLineType.columnHorizontalAligns[index]
|
||||
color: UM.Theme.getColor("text")
|
||||
font: UM.Theme.getFont("default")
|
||||
wrapMode: Text.WrapAnywhere
|
||||
text: modelData
|
||||
|
@ -124,8 +125,8 @@ Column
|
|||
property var printMaterialWeights: PrintInformation.materialWeights
|
||||
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 ]
|
||||
property var columnWidthMultipliers: [ 0.46, 0.18, 0.18, 0.18 ]
|
||||
property var columnHorizontalAligns: [ Text.AlignLeft, Text.AlignHCenter, Text.AlignHCenter, Text.AlignRight ]
|
||||
|
||||
function getMaterialTable()
|
||||
{
|
||||
|
@ -183,7 +184,8 @@ Column
|
|||
{
|
||||
width: Math.round(byMaterialType.width * byMaterialType.columnWidthMultipliers[index])
|
||||
height: contentHeight
|
||||
horizontalAlignment: byLineType.columnHorizontalAligns[index]
|
||||
horizontalAlignment: byMaterialType.columnHorizontalAligns[index]
|
||||
color: UM.Theme.getColor("text")
|
||||
font: UM.Theme.getFont("default")
|
||||
wrapMode: Text.WrapAnywhere
|
||||
text: modelData
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue