import QtQuick 2.2
import Sailfish.Silica 1.0
Page {
Rectangle {
id: colorIndicator
color: "transparent"
width: Theme.itemSizeSmall
height: Theme.itemSizeSmall
}
Button {
id: button
text: "Choose a color"
onClicked: {
var page = pageStack.push("Sailfish.Silica.ColorPickerPage")
page.colorClicked.connect(function(color) {
colorIndicator.color = color
pageStack.pop()
})
}
}
}