mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
040ef3a8f2
Pressing of buttons were difficult to see mainly due to small buttons and small color distance between pressed and un-pressed state. This fix enlarges the buttons a little, and choses a different color for the pressed state. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
26 lines
718 B
QML
26 lines
718 B
QML
import QtQuick 2.5
|
|
import QtQuick.Controls 1.2
|
|
import QtQuick.Controls.Styles 1.2
|
|
import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
|
|
|
|
Button {
|
|
style: ButtonStyle {
|
|
padding {
|
|
top: MobileComponents.Units.smallSpacing * 2
|
|
left: MobileComponents.Units.smallSpacing * 4
|
|
right: MobileComponents.Units.smallSpacing * 4
|
|
bottom: MobileComponents.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
|
|
}
|
|
}
|
|
}
|