Index: sources/gui/qml/components/AlarmButtonRow.qml =================================================================== diff -u -r5d784780bbec88cd8531bb56fbcc6e6fe2703236 -rf7d7e8b10c7626f3c6b8450876721a452ebd730f --- sources/gui/qml/components/AlarmButtonRow.qml (.../AlarmButtonRow.qml) (revision 5d784780bbec88cd8531bb56fbcc6e6fe2703236) +++ sources/gui/qml/components/AlarmButtonRow.qml (.../AlarmButtonRow.qml) (revision f7d7e8b10c7626f3c6b8450876721a452ebd730f) @@ -15,10 +15,15 @@ readonly property int spacing : Variables.defaultMargin * 4.5 + readonly property color pressedColor : Qt.darker (_root.backgroundColor, 1.15) + signal muteClicked() signal minMaxClicked() signal listClicked() + function buttonBackgroundColor(button) { + return button.isPressed ? Qt.darker (_root.backgroundColor, 1.15) : Colors.transparent + } MuteButton { id: _muteButton anchors{ @@ -27,7 +32,7 @@ verticalCenter : _root.verticalCenter } onClicked : _root.muteClicked() - selectColor : Qt.darker (_root.backgroundColor, 1.15) + backgroundColor : buttonBackgroundColor(_muteButton) } IconButton { id: _alarmsList @@ -38,7 +43,7 @@ } iconSize : Variables.iconsDiameter border.color : Colors.white - backgroundColor : isPressed ? Qt.darker (_root.backgroundColor, 1.15) : Colors.transparent + backgroundColor : buttonBackgroundColor(_alarmsList) iconImageSource : "qrc:/images/iList" onClicked : _root.listClicked() } @@ -51,7 +56,8 @@ upArrow : _root.isMaxButton downArrow : _root.isMinButton - backgroundColor : isPressed ? Qt.darker (_root.backgroundColor, 1.15) : Colors.transparent + backgroundColor : buttonBackgroundColor(_minMaxButton) + isDefault : false borderColor : Colors.white iconSize : Variables.iconsDiameter