mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 11:31:29 +00:00
a842e44b68
But of course this doesn't work, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
26 lines
663 B
QML
26 lines
663 B
QML
import QtQuick 2.5
|
|
import QtQuick.Controls 1.2
|
|
import QtQuick.Controls.Styles 1.2
|
|
import org.kde.kirigami 2.0 as Kirigami
|
|
|
|
Button {
|
|
style: ButtonStyle {
|
|
padding {
|
|
top: Kirigami.Units.smallSpacing * 2
|
|
left: Kirigami.Units.smallSpacing * 4
|
|
right: Kirigami.Units.smallSpacing * 4
|
|
bottom: Kirigami.Units.smallSpacing * 2
|
|
}
|
|
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
|
|
}
|
|
}
|
|
}
|