Ensure that the added labels are also themable

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-16 14:58:11 +01:00
parent 514fc13045
commit 3fd1cc0e8c
4 changed files with 10 additions and 1 deletions

View File

@ -74,6 +74,8 @@ Item
height: parent.height
elide: Text.ElideRight
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
}
popupItem: Column

View File

@ -38,7 +38,7 @@ Item
// Is the "drawer" open?
readonly property alias expanded: popup.visible
property alias expandedHighlightColor: expandedHightlight.color
property alias expandedHighlightColor: expandedHighlight.color
function togglePopup()
{

View File

@ -32,6 +32,7 @@ Cura.ExpandableComponent
height: parent.height
elide: Text.ElideRight
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
}
popupItem: Item
@ -58,6 +59,7 @@ Cura.ExpandableComponent
visible: networkedPrintersModel.items.length > 0
height: visible ? contentHeight + 2 * UM.Theme.getSize("default_margin").height : 0
font: UM.Theme.getFont("medium_bold")
color: UM.Theme.getColor("text")
verticalAlignment: Text.AlignVCenter
}
@ -99,6 +101,7 @@ Cura.ExpandableComponent
visible: virtualPrintersModel.items.length > 0
height: visible ? contentHeight + 2 * UM.Theme.getSize("default_margin").height : 0
font: UM.Theme.getFont("medium_bold")
color: UM.Theme.getColor("text")
verticalAlignment: Text.AlignVCenter
}

View File

@ -60,6 +60,8 @@ Cura.ExpandableComponent
text: model.material_brand
elide: Text.ElideRight
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
anchors
{
@ -75,6 +77,8 @@ Cura.ExpandableComponent
{
text: model.material
elide: Text.ElideRight
font: UM.Theme.getFont("default")
color: UM.Theme.getColor("text")
anchors
{