Index: sources/gui/qml/pages/treatment/TreatmentStack.qml =================================================================== diff -u -r76e1360b5d2377d4f6d3310d524a902a04e64ff1 -r204d5f7514be78430a667297ced829bd104880d5 --- sources/gui/qml/pages/treatment/TreatmentStack.qml (.../TreatmentStack.qml) (revision 76e1360b5d2377d4f6d3310d524a902a04e64ff1) +++ sources/gui/qml/pages/treatment/TreatmentStack.qml (.../TreatmentStack.qml) (revision 204d5f7514be78430a667297ced829bd104880d5) @@ -17,10 +17,10 @@ import QtQuick 2.12 // Qml imports -import "qrc:/globals" import "qrc:/components" import "qrc:/compounds" import "qrc:/dialogs" +import "qrc:/globals" import "qrc:/pages/treatment/adjustments" /*! @@ -164,58 +164,8 @@ } } - // Treatment Lock Dialog - AutoHideInfo { id: _lockDialog - objectName : "lockDialog" - property bool isLocked: false + LockDialog { id: _lockDialog } - width : 600 - height : 400 - backgroundColor: "#091E31" - fontSize: 35 - verticalOffset: Variables.defaultMargin * 5 - - Rectangle { id: _mainCircle - objectName: "lockDialogMainCircle" - anchors { - top: parent.top - topMargin: Variables.defaultMargin * 2 - horizontalCenter: parent.horizontalCenter - } - height : 200 - width : height - radius : height - color : "transparent" - border.color: _lockDialog.isLocked ? "#6697D2" : - "#A47E38" - border.width: 2 - - Image { id : _iconImage - objectName: "lockDialogIcon" - - anchors.centerIn : parent - height : 80 - width : 80 - fillMode: Image.PreserveAspectFit - source : _lockDialog.isLocked ? "qrc:/images/iUnlock" : - "qrc:/images/iLock" - } - - Rectangle { id: _innerCircle - objectName: "lockDialogInnerCircle" - - anchors.centerIn: parent - color : "transparent" - border.color : _lockDialog.isLocked ? "#8FC1FE" : - "#CDAF78" - border.width : 1 - height : parent.height - 20 - width : height - radius : height - } - } - } - // ---------- Manages Responses ---------- Connections { target: vTreatmentAdjustmentDuration function onAdjustmentTriggered ( vValue ) {