Commit 3e4cbdb6 authored by Alessandro Portale's avatar Alessandro Portale Committed by Thomas Hartmann
Browse files

QmlDesigner: Themable text alignment icons



Change-Id: If499c4e131a0c56d24afb6ae355d1b8bd6338435
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent b496ac88
......@@ -92,21 +92,21 @@ Row {
ButtonRowButton {
roundLeftButton: false
iconSource: blueHighlight ? "images/alignmentleft-h-icon.png" : "images/alignmentleft-icon.png"
iconSource: "image://icons/alignment-left" + (blueHighlight ? "-h" : "")
onClicked: {
if (checked)
backendValue.setEnumeration("Text", "AlignLeft")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentcenterh-h-icon.png" : "images/alignmentcenterh-icon.png"
iconSource: "image://icons/alignment-center" + (blueHighlight ? "-h" : "")
onClicked: {
if (checked)
backendValue.setEnumeration("Text", "AlignHCenter")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentright-h-icon.png" : "images/alignmentright-icon.png"
iconSource: "image://icons/alignment-right" + (blueHighlight ? "-h" : "")
onClicked: {
if (checked)
backendValue.setEnumeration("Text", "AlignRight")
......
......@@ -93,21 +93,21 @@ Row {
ButtonRowButton {
roundLeftButton: false
iconSource: blueHighlight ? "images/alignmenttop-h-icon.png" : "images/alignmenttop-icon.png"
iconSource: "image://icons/alignment-top" + (blueHighlight ? "-h" : "")
onClicked: {
if (checked)
backendValue.setEnumeration("Text", "AlignTop")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentmiddle-h-icon.png" : "images/alignmentmiddle-icon.png"
iconSource: "image://icons/alignment-middle" + (blueHighlight ? "-h" : "")
onClicked: {
if (checked)
backendValue.setEnumeration("Text", "AlignVCenter")
}
}
ButtonRowButton {
iconSource: blueHighlight ? "images/alignmentbottom-h-icon.png" : "images/alignmentbottom-icon.png"
iconSource: "image://icons/alignment-bottom" + (blueHighlight ? "-h" : "")
onClicked: {
if (checked)
backendValue.setEnumeration("Text", "AlignBottom")
......
......@@ -86,6 +86,7 @@ Item {
id: image
width: 16
height: 16
smooth: false
anchors.centerIn: parent
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment