2016-01-20 11:47:58 +00:00
|
|
|
import QtQuick 2.5
|
|
|
|
import QtQuick.Controls 1.2
|
|
|
|
import QtQuick.Controls.Styles 1.2
|
2016-12-27 09:45:23 +00:00
|
|
|
import org.kde.kirigami 2.0 as Kirigami
|
2016-01-20 11:47:58 +00:00
|
|
|
|
|
|
|
Button {
|
|
|
|
style: ButtonStyle {
|
|
|
|
padding {
|
2016-03-08 20:26:54 +00:00
|
|
|
top: Kirigami.Units.smallSpacing * 2
|
|
|
|
left: Kirigami.Units.smallSpacing * 4
|
|
|
|
right: Kirigami.Units.smallSpacing * 4
|
|
|
|
bottom: Kirigami.Units.smallSpacing * 2
|
2016-01-20 11:47:58 +00:00
|
|
|
}
|
|
|
|
background: Rectangle {
|
|
|
|
border.width: 1
|
|
|
|
radius: height / 3
|
|
|
|
color: control.pressed ? subsurfaceTheme.shadedColor : subsurfaceTheme.accentColor
|
|
|
|
}
|
|
|
|
label: Text{
|
|
|
|
text: control.text
|
|
|
|
color: subsurfaceTheme.accentTextColor
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|