mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Apply color to layerview legend labels directly
The Label style property should not be confused with e TextField style property
This commit is contained in:
parent
2493bd6fe6
commit
0b9f451103
2 changed files with 4 additions and 11 deletions
|
@ -58,7 +58,7 @@ Item
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
text: catalog.i18nc("@label","View Mode: Layers")
|
text: catalog.i18nc("@label","View Mode: Layers")
|
||||||
font.bold: true
|
font.bold: true
|
||||||
style: UM.Theme.styles.text
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
|
@ -76,7 +76,7 @@ Item
|
||||||
text: catalog.i18nc("@label","Color scheme")
|
text: catalog.i18nc("@label","Color scheme")
|
||||||
visible: !UM.LayerView.compatibilityMode
|
visible: !UM.LayerView.compatibilityMode
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
style: UM.Theme.styles.text
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
|
|
||||||
ListModel // matches LayerView.py
|
ListModel // matches LayerView.py
|
||||||
|
@ -307,7 +307,7 @@ Item
|
||||||
Layout.preferredHeight: UM.Theme.getSize("layerview_row").height
|
Layout.preferredHeight: UM.Theme.getSize("layerview_row").height
|
||||||
Layout.preferredWidth: UM.Theme.getSize("layerview_row").width
|
Layout.preferredWidth: UM.Theme.getSize("layerview_row").width
|
||||||
visible: view_settings.show_legend
|
visible: view_settings.show_legend
|
||||||
style: UM.Theme.styles.text
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
|
@ -330,7 +330,7 @@ Item
|
||||||
Layout.preferredHeight: UM.Theme.getSize("layerview_row").height
|
Layout.preferredHeight: UM.Theme.getSize("layerview_row").height
|
||||||
Layout.preferredWidth: UM.Theme.getSize("layerview_row").width
|
Layout.preferredWidth: UM.Theme.getSize("layerview_row").width
|
||||||
visible: view_settings.show_legend
|
visible: view_settings.show_legend
|
||||||
style: UM.Theme.styles.text
|
color: UM.Theme.getColor("text")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -632,13 +632,6 @@ QtObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
property Component text: Component {
|
|
||||||
TextFieldStyle {
|
|
||||||
textColor: Theme.getColor("text");
|
|
||||||
font: Theme.getFont("default");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
property Component sidebar_action_button: Component {
|
property Component sidebar_action_button: Component {
|
||||||
ButtonStyle
|
ButtonStyle
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue