mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Make whole row for user & quality_changes values italic
The italic pattern is now shared between the sidebar and the profile overview. Current settings (user) and the values set in the custom profile (quality_changes) are now made italic in both places.
This commit is contained in:
parent
fd5b512554
commit
5d3d13e9ef
1 changed files with 22 additions and 13 deletions
|
@ -21,18 +21,11 @@ Tab
|
|||
anchors.fill: parent
|
||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||
|
||||
TableViewColumn
|
||||
Component
|
||||
{
|
||||
role: "label"
|
||||
title: catalog.i18nc("@title:column", "Setting")
|
||||
width: parent.width * 0.4
|
||||
}
|
||||
TableViewColumn
|
||||
{
|
||||
role: "profile_value"
|
||||
title: catalog.i18nc("@title:column", "Profile")
|
||||
width: parent.width * 0.18
|
||||
delegate: Rectangle
|
||||
id: itemDelegate
|
||||
|
||||
Rectangle
|
||||
{
|
||||
property var setting: qualitySettings.getItem(styleData.row)
|
||||
height: childrenRect.height
|
||||
|
@ -44,14 +37,28 @@ Tab
|
|||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||
anchors.right: parent.right
|
||||
text: styleData.value
|
||||
font.weight: (setting.profile_value_source == "quality_changes") ? Font.Bold : Font.Normal
|
||||
font.strikeout: quality == Cura.MachineManager.activeQualityId && setting.user_value != ""
|
||||
font.strikeout: styleData.column == 1 && quality == Cura.MachineManager.activeQualityId && setting.user_value != ""
|
||||
font.italic: setting.profile_value_source == "quality_changes" || (quality == Cura.MachineManager.activeQualityId && setting.user_value != "")
|
||||
opacity: font.strikeout ? 0.5 : 1
|
||||
color: styleData.textColor
|
||||
elide: Text.ElideRight
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TableViewColumn
|
||||
{
|
||||
role: "label"
|
||||
title: catalog.i18nc("@title:column", "Setting")
|
||||
width: parent.width * 0.4
|
||||
delegate: itemDelegate
|
||||
}
|
||||
TableViewColumn
|
||||
{
|
||||
role: "profile_value"
|
||||
title: catalog.i18nc("@title:column", "Profile")
|
||||
width: parent.width * 0.18
|
||||
delegate: itemDelegate
|
||||
}
|
||||
TableViewColumn
|
||||
{
|
||||
|
@ -59,12 +66,14 @@ Tab
|
|||
title: catalog.i18nc("@title:column", "Current");
|
||||
visible: quality == Cura.MachineManager.activeQualityId
|
||||
width: parent.width * 0.18
|
||||
delegate: itemDelegate
|
||||
}
|
||||
TableViewColumn
|
||||
{
|
||||
role: "unit"
|
||||
title: catalog.i18nc("@title:column", "Unit")
|
||||
width: parent.width * 0.14
|
||||
delegate: itemDelegate
|
||||
}
|
||||
|
||||
section.property: "category"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue