Use Qt Controls as the base for Button

I am not sure what the opinion of QtQuick.Controls is in this project, but there are some features we get from them for desktop experience, and integration with things like input methods and accessibility.  There is an issue here with the Theme though because it may need its own color to operate correctly.  If there is no problem with controls I would want to move Action to use them so they can integrate into the Button object eaiser.

@iBeliever The way the Material documentation describes elevation levels
for almost all elements with specific numerical values makes me believe
that it should NOT be up to the user.

On Sat, Dec 6, 2014, 05:02 Michael Spencer <notifications@github.com> wrote:

> In modules/Material/Button.qml:
>
> > -    signal triggered
> > -
> > -    tintColor: mouseArea.pressed ? Qt.rgba(0,0,0, 0.1) : "transparent"
> > -
> > -    Ink {
> > -        id: mouseArea
> > -        anchors.fill: parent
> > -        onClicked: {
> > -            button.triggered()
> > +    property color backgroundColor: "white"
> > +
> > +    style: ButtonStyle {
> > +        background: View {
> > +            id:backgroundElement
> > +            radius: units.dp(2)
> > +            elevation: 1 + ((control.hovered || control.activeFocus ) ? 1:0) + (control.isDefault ? 1:0)
>
> Also, let's take out the custom elevation code. The elevation really
> should be up to the user, not automatically picked. And it doesn't change
> based on the hover or active focus state.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/quantum-os/qml-material/pull/32/files#r21414073>.
>