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:
fieldOfView 2017-04-25 18:15:04 +02:00
parent 2493bd6fe6
commit 0b9f451103
2 changed files with 4 additions and 11 deletions

View file

@ -58,7 +58,7 @@ Item
anchors.left: parent.left
text: catalog.i18nc("@label","View Mode: Layers")
font.bold: true
style: UM.Theme.styles.text
color: UM.Theme.getColor("text")
}
Label
@ -76,7 +76,7 @@ Item
text: catalog.i18nc("@label","Color scheme")
visible: !UM.LayerView.compatibilityMode
Layout.fillWidth: true
style: UM.Theme.styles.text
color: UM.Theme.getColor("text")
}
ListModel // matches LayerView.py
@ -307,7 +307,7 @@ Item
Layout.preferredHeight: UM.Theme.getSize("layerview_row").height
Layout.preferredWidth: UM.Theme.getSize("layerview_row").width
visible: view_settings.show_legend
style: UM.Theme.styles.text
color: UM.Theme.getColor("text")
}
Label
@ -330,7 +330,7 @@ Item
Layout.preferredHeight: UM.Theme.getSize("layerview_row").height
Layout.preferredWidth: UM.Theme.getSize("layerview_row").width
visible: view_settings.show_legend
style: UM.Theme.styles.text
color: UM.Theme.getColor("text")
}
}

View file

@ -632,13 +632,6 @@ QtObject {
}
}
property Component text: Component {
TextFieldStyle {
textColor: Theme.getColor("text");
font: Theme.getFont("default");
}
}
property Component sidebar_action_button: Component {
ButtonStyle
{