Index: sources/gui/qml/dialogs/AlarmDialog.qml =================================================================== diff -u -rfdddcd8b25b5acc99f8c044c998af0e95752063c -ra70ed53a325b45337e7699656491c4e4a6c6ebce --- sources/gui/qml/dialogs/AlarmDialog.qml (.../AlarmDialog.qml) (revision fdddcd8b25b5acc99f8c044c998af0e95752063c) +++ sources/gui/qml/dialogs/AlarmDialog.qml (.../AlarmDialog.qml) (revision a70ed53a325b45337e7699656491c4e4a6c6ebce) @@ -8,8 +8,6 @@ import "qrc:/components" import "qrc:/compounds" -Item { id : _root - property alias titleText : _title.text property alias titlePixelSize : _title.font.pixelSize property alias instructionModel : _listView.model @@ -33,7 +31,10 @@ property int headerOverlap : 30 anchors.fill: parent + color : Colors.modeBackgroundDialogColor + radius : Variables.alarmDialogRadius + signal muteClicked() signal minimizeClicked() signal listClicked() @@ -91,7 +92,7 @@ } Rectangle { id: _descriptionRect - color : Colors.offWhite + color : Colors.modeBackgroundDialogColor clip : true anchors { @@ -134,19 +135,19 @@ clip : true Rectangle { id: _stepRect - height : 40 + height : 50 width : height radius : height - color : _delegateControl.ListView.isCurrentItem ? Colors.backgroundMainMenu : Colors.offWhite + color : _delegateControl.ListView.isCurrentItem ? Colors.modeButtonColor : Colors.modeAlarmStepButtonColor border { - color: Colors.backgroundMainMenu + color: Colors.modeButtonColor width: 2 } Text { id: _stepNumberRect anchors.centerIn: parent text : index + 1 - color : _delegateControl.ListView.isCurrentItem ? Colors.offWhite : Colors.backgroundMainMenu + color : Colors.darkMode ? Colors.offWhite : _delegateControl.ListView.isCurrentItem ? Colors.modeBackgroundColor : Colors.modeButtonColor font.pixelSize : 20 font.weight : Font.Medium } @@ -172,8 +173,8 @@ height : parent.height width : parent.width font.pixelSize : Fonts.fontPixelInstructionStep - font.weight : _delegateControl.ListView.isCurrentItem ? Font.DemiBold : Font.Normal - color : _delegateControl.ListView.isCurrentItem ? "#18559E" : Colors.alarmDialogText + font.weight : _delegateControl.ListView.isCurrentItem ? Font.DemiBold : Font.Normal + color : _delegateControl.ListView.isCurrentItem ? Colors.modeSelctedColor : Colors.modeTextColor text : model.instruction wrapMode : Text.WordWrap } @@ -209,6 +210,9 @@ leftMargin : Variables.defaultMargin * 4 } + color : Colors.modeAlarmStopStateColor + radius : height + Text { id: _astrix anchors { left: parent.left @@ -228,7 +232,7 @@ left: _astrix.right } - color : "black" + color : Colors.modeTextColor text : qsTr("Return Blood will not be allowed in:") font.pixelSize : 25 font.weight : Font.Medium @@ -274,60 +278,64 @@ onPressed : resumeClicked() text.text : qsTr("Resume") width : _buttonGroup.buttonsWidth - isDefault : true - backgroundColor: Colors.white - fgColor : isPressed ? Colors.white : borderColor + isDefault : Colors.darkMode + backgroundColor: Colors.transparent + fgColor : isPressed ? Colors.offWhite : Colors.modeAlarmButtonPressedColor selectColor : Qt.darker(borderColor, 1.15) pixelSize : Fonts.fontPixelNotification - borderColor : Colors.alarmButton + borderColor : Colors.modeAlarmButtonColor } TouchRect { id : _temporaryBreak visible : temporaryBreakVisible onPressed : temporaryBreakClicked() text.text : qsTr("Temporary Break") width : _buttonGroup.buttonsWidth - backgroundColor: Colors.white - fgColor : isPressed ? Colors.white : borderColor + isDefault : Colors.darkMode + backgroundColor: Colors.transparent + fgColor : isPressed ? Colors.offWhite : Colors.modeAlarmButtonPressedColor selectColor : Qt.darker(borderColor, 1.15) pixelSize : Fonts.fontPixelNotification - borderColor : Colors.alarmButton + borderColor : Colors.modeAlarmButtonColor } TouchRect { id : _rinsebackTouchRect visible : rinsebackVisible onPressed : rinsebackClicked() text.text : qsTr("Return Blood & End Treatment") width : _buttonGroup.buttonsWidth - backgroundColor: Colors.white - fgColor : isPressed ? Colors.white : borderColor + isDefault : Colors.darkMode + backgroundColor: Colors.transparent + fgColor : isPressed ? Colors.offWhite : Colors.modeAlarmButtonPressedColor selectColor : Qt.darker(borderColor, 1.15) pixelSize : Fonts.fontPixelNotification - borderColor : Colors.alarmButton + borderColor : Colors.modeAlarmButtonColor } TouchRect { id : _endTouchRect visible : endVisible onPressed : endClicked() text.text : qsTr("End Treatment Only") width : _buttonGroup.buttonsWidth - backgroundColor: Colors.white - fgColor : isPressed ? Colors.white : borderColor + isDefault : Colors.darkMode + backgroundColor: Colors.transparent + fgColor : isPressed ? Colors.offWhite : Colors.modeAlarmButtonPressedColor selectColor : Qt.darker(borderColor, 1.15) pixelSize : Fonts.fontPixelNotification - borderColor : Colors.alarmButton + borderColor : Colors.modeAlarmButtonColor } TouchRect { id : _okTouchRect visible : okVisible onPressed : okClicked() text.text : qsTr("OK") width : _buttonGroup.buttonsWidth - backgroundColor: Colors.white - fgColor : isPressed ? Colors.white : borderColor + isDefault : Colors.darkMode + backgroundColor: Colors.transparent + fgColor : isPressed ? Colors.offWhite : Colors.modeAlarmButtonPressedColor selectColor : Qt.darker(borderColor, 1.15) pixelSize : Fonts.fontPixelNotification - borderColor : Colors.alarmButton + borderColor : Colors.modeAlarmButtonColor } } @@ -340,7 +348,7 @@ leftMargin : Variables.defaultMargin * 3 bottomMargin: Variables.defaultMargin } - color : Colors.alarmDialogGreyText + color : Colors.modeAlarmListColor font.pixelSize : Fonts.fontPixelAlarmID }