Index: sources/gui/qml/pages/settings/SettingsRootSSHAccess.qml =================================================================== diff -u -r01a8c935f7d90ce3b168970765c0f20ea0c1a273 -r33f808e5b8d9134231fc0d016bfb16605c2de812 --- sources/gui/qml/pages/settings/SettingsRootSSHAccess.qml (.../SettingsRootSSHAccess.qml) (revision 01a8c935f7d90ce3b168970765c0f20ea0c1a273) +++ sources/gui/qml/pages/settings/SettingsRootSSHAccess.qml (.../SettingsRootSSHAccess.qml) (revision 33f808e5b8d9134231fc0d016bfb16605c2de812) @@ -20,6 +20,7 @@ // Qml imports import "qrc:/globals" import "qrc:/components" +import "qrc:/compounds" /*! * \brief SettingsRootSSHAccess is the screen @@ -35,40 +36,31 @@ contentItem: Column { spacing : 20 - Row { id: _settingsRootSSHAccess_SSHDRow - anchors.horizontalCenter: parent.horizontalCenter + LabelUnitContainer { id: _settingsRootSSHAccess_SSHDRow + anchors.horizontalCenter : parent.horizontalCenter + width : Variables.adjustmentLabelUnitContainerWidth + height : Variables.adjustmentLabelUnitContainerHeight + showUnit : false + text : qsTr("Enable SSH Login") + contentArea.anchors.leftMargin : width * 0.75 - Text { id: _settingsRootSSHAccess_SSHDLabel - text : qsTr("Enable SSH Login") - width : 300 - height : _settingsRootSSHAccess_SSHDSwitch.height - color : Colors.white - font.pixelSize : Fonts.fontPixelButton - verticalAlignment : Text.AlignVCenter - horizontalAlignment : Text.AlignLeft - } + contentItem: BaseSwitch { id: _settingsRootSSHAccess_SSHDSwitch - BaseSwitch { id: _settingsRootSSHAccess_SSHDSwitch onClicked: { vDevice.rootSSHAccess = toCheckState() } } } - Row { id: _settingsRootSSHAccess_RootRow - anchors.horizontalCenter: parent.horizontalCenter + LabelUnitContainer { id: _settingsRootSSHAccess_RootRow + anchors.horizontalCenter : parent.horizontalCenter + width : Variables.adjustmentLabelUnitContainerWidth + height : Variables.adjustmentLabelUnitContainerHeight + showUnit : false + text : qsTr("Enable Root Login") + contentArea.anchors.leftMargin : width * 0.75 - Text { id: _settingsRootSSHAccess_RootLabel - text : qsTr("Enable Root Login") - width : 300 - height : _settingsRootSSHAccess_RootSwitch.height - color : Colors.white - font.pixelSize : Fonts.fontPixelButton - verticalAlignment : Text.AlignVCenter - horizontalAlignment : Text.AlignLeft - } - - BaseSwitch { id: _settingsRootSSHAccess_RootSwitch + contentItem: BaseSwitch { id: _settingsRootSSHAccess_RootSwitch active : _settingsRootSSHAccess_SSHDSwitch.checked enabled : _settingsRootSSHAccess_RootSwitch.active