Index: leahi.qrc
===================================================================
diff -u -r50e38888132835a21357dfadff7a9bb1ccfdd334 -r138a4ca83232b7746e4d1c2d70b2b5a8db0a04b3
--- leahi.qrc (.../leahi.qrc) (revision 50e38888132835a21357dfadff7a9bb1ccfdd334)
+++ leahi.qrc (.../leahi.qrc) (revision 138a4ca83232b7746e4d1c2d70b2b5a8db0a04b3)
@@ -139,6 +139,7 @@
sources/gui/qml/components/EntryDialog.qml
sources/gui/qml/components/SliderArrows.qml
sources/gui/qml/components/QRCode.qml
+ sources/gui/qml/components/MonitorItem.qml
sources/gui/qml/compounds/PressureRangeSlider.qml
Index: sources/gui/qml/components/MonitorItem.qml
===================================================================
diff -u
--- sources/gui/qml/components/MonitorItem.qml (revision 0)
+++ sources/gui/qml/components/MonitorItem.qml (revision 138a4ca83232b7746e4d1c2d70b2b5a8db0a04b3)
@@ -0,0 +1,99 @@
+/*!
+ *
+ * Copyright (c) 2019-2025 Diality Inc. - All Rights Reserved.
+ * \copyright
+ * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
+ * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
+ *
+ * \file MonitorItem.qml
+ * \author (last) Nico Ramirez
+ * \date (last) 25-Jun-2025
+ * \author (original) Nico Ramirez
+ * \date (original) 25-Jun-2025
+ *
+ */
+
+// Qt
+import QtQuick 2.12
+import QtQuick.Layouts 1.12
+
+import "qrc:/globals"
+import "qrc:/components"
+
+Rectangle { id : _root
+ property string title: ""
+ property bool editEnabled: true
+ property bool showLock: false
+ property bool showEdit: true
+
+ color: Colors.backgroundMainDarker
+ radius: 15
+
+ RowLayout { id: _row
+ height: Variables.contentHeight
+
+ anchors {
+ top : parent.top
+ topMargin : Variables.defaultMargin
+ left : parent.left
+ leftMargin : Variables.defaultMargin
+ right : parent.right
+ }
+
+
+
+ Label { id: _header
+ Layout.alignment : Qt.AlignLeft
+ Layout.leftMargin : Variables.defaultMargin
+
+
+ text: _root.title
+ font.pixelSize: 30
+ color: "white" //Colors.textTextRectTitle
+ }
+
+
+
+ TouchRect { id : _lockButton
+ Layout.alignment : Qt.AlignRight
+ Layout.rightMargin : Variables.defaultMargin
+ width : Variables.alarmListIconDiameter
+ height : Variables.alarmListIconDiameter
+ border.color: "transparent"
+ visible: showLock
+
+ Image { id : _lockImage
+ height : Variables.alarmListIconDiameter
+ width : Variables.alarmListIconDiameter
+ fillMode: Image.PreserveAspectFit
+ source : editEnabled ? "qrc:/images/iUnlock" : "qrc:/images/iLock"
+ }
+
+ onPressed: editEnabled = !editEnabled
+
+ }
+
+ TouchRect { id : _editButton
+ Layout.alignment: Qt.AlignRight
+ Layout.rightMargin: Variables.defaultMargin
+ width : Variables.alarmListIconDiameter
+ height : Variables.alarmListIconDiameter
+ border.color: "transparent"
+ visible: showEdit
+
+ Image { id : _editImage
+ height : Variables.alarmListIconDiameter
+ width : Variables.alarmListIconDiameter
+ fillMode: Image.PreserveAspectFit
+ source : editEnabled ? "qrc:/images/iEdit" : "qrc:/images/iEditDisabled"
+ }
+
+ onPressed: print("Edit button pressed!")
+
+ }
+
+ }
+
+
+
+}
Index: sources/gui/qml/globals/Colors.qml
===================================================================
diff -u -ra58f91b077c8131bea3dbde0fc338adb113fc9f3 -r138a4ca83232b7746e4d1c2d70b2b5a8db0a04b3
--- sources/gui/qml/globals/Colors.qml (.../Colors.qml) (revision a58f91b077c8131bea3dbde0fc338adb113fc9f3)
+++ sources/gui/qml/globals/Colors.qml (.../Colors.qml) (revision 138a4ca83232b7746e4d1c2d70b2b5a8db0a04b3)
@@ -41,6 +41,7 @@
readonly property color backgroundMainMenu : "#0F2841" //// ----- @LEAHIZED
readonly property color backgroundDottedMenu : "#64809D"
readonly property color backgroundSlider : "#195187"
+ readonly property color backgroundMainDarker : Qt.darker (backgroundMain, 1.2)
readonly property color sliderHighlightColor : "orange"
readonly property color sliderProgressBorderActive : white
Index: sources/gui/qml/globals/Variables.qml
===================================================================
diff -u -r50e38888132835a21357dfadff7a9bb1ccfdd334 -r138a4ca83232b7746e4d1c2d70b2b5a8db0a04b3
--- sources/gui/qml/globals/Variables.qml (.../Variables.qml) (revision 50e38888132835a21357dfadff7a9bb1ccfdd334)
+++ sources/gui/qml/globals/Variables.qml (.../Variables.qml) (revision 138a4ca83232b7746e4d1c2d70b2b5a8db0a04b3)
@@ -36,6 +36,7 @@
readonly property int confirmButtonWidth : 155
readonly property int headerBarDateTimeWidth : 200
readonly property int defaultMargin : 20
+ readonly property int contentHeight : 50
readonly property int mainMenuHeight : 100 //// ----- @LEAHIZED