Index: sources/gui/qml/pages/settings/SettingsWiFi.qml =================================================================== diff -u -rabb959f145f8af64bab3b8f24314bf0ba8f3bb0e -reef9123ceaee66f3388871b4eebd23d7e6e905e7 --- sources/gui/qml/pages/settings/SettingsWiFi.qml (.../SettingsWiFi.qml) (revision abb959f145f8af64bab3b8f24314bf0ba8f3bb0e) +++ sources/gui/qml/pages/settings/SettingsWiFi.qml (.../SettingsWiFi.qml) (revision eef9123ceaee66f3388871b4eebd23d7e6e905e7) @@ -55,11 +55,12 @@ Item { id: _wifiItem anchors { left : parent.left - verticalCenter : parent.verticalCenter + leftMargin : Variables.defaultMargin * 2 + top : contentItem.top + bottom : contentItem.bottom } width : parent.width / 2.5 - height : parent.height Text { id : _wifiInfoTitle anchors { @@ -114,13 +115,18 @@ } } + Rectangle { id: _networkRect + color : Colors.panelBackgroundColor + anchors { + right : parent.right + rightMargin : Variables.defaultMargin * 2 + top : contentItem.top + bottom : contentItem.bottom + } + width : parent.width / 2.5 + Column { id: _networkColumn - anchors { - right : parent.right - verticalCenter : parent.verticalCenter - } - width : parent.width / 2.5 - height : parent.height + anchors.fill: parent Rectangle { id: _header width : parent.width @@ -162,68 +168,81 @@ Item { id: _wifiListItem width : parent.width - height : _contentRow.height + height : parent.height - _header.height - ScrollBar { - flickable : _networkList - anchors.fill : _networkList - scrollColor : Colors.scrollBarColor - handleWidth : 5 - } - ListView { id : _networkList model : vDevice.model clip : true width : parent.width height : parent.height - delegate : TouchRect { id : _delegate - readonly property color networkDelegateTextColor : wifiSupported ? Colors.textMain : Colors.textDisableButton + readonly property color networkDelegateTextColor : wifiSupported ? Colors.offWhite : Colors.textDisableButton readonly property string postSecurityTypeLabel : wifiSupported ? "" : " - " + qsTr("Not Supported") readonly property bool isConnected : wifiConnected + readonly property int margin : Variables.defaultMargin * 2 onIsConnectedChanged: { if ( isConnected ) { vDevice.doInitWifiInfo() } } - clip : true - text.text : wifiSsid - text.elide : Text.ElideLeft - text.color : _delegate.networkDelegateTextColor - width : _networkList.width - Variables.minVGap - height : 75 - radius : Variables.dialogRadius - + clip : true + text.text : wifiSsid + text.elide : Text.ElideLeft + text.color : _delegate.networkDelegateTextColor + width : parent.width + height : 75 + radius : 0 + backgroundColor : Colors.waterSampleContainer + pixelSize : Fonts.fontPixelTextRectTitle + text.font.weight : Font.Medium text.anchors.horizontalCenter : undefined + text.anchors.verticalCenter : undefined + text.horizontalAlignment : Text.AlignLeft - text.leftPadding : 5 - border.width : 1 - borderColor : wifiConnected ? Colors.borderButtonSelected : Colors.borderButton + text.leftPadding : _delegate.margin + text.topPadding : 10 + text.verticalAlignment : Text.AlignTop + border.width : 0 Text { id : _securityLevel anchors { left : parent.left - leftMargin : 10 + leftMargin : _delegate.margin bottom : parent.bottom + bottomMargin: 5 } font.pixelSize : Fonts.fontPixelDialogText + font.weight : Font.Light text : wifiSecurityTypes + _delegate.postSecurityTypeLabel color : _delegate.networkDelegateTextColor } Text { id : _isConnected anchors { - right : parent.right - rightMargin : 10 - bottom : parent.bottom + verticalCenter : parent.verticalCenter + right : parent.right + rightMargin : _delegate.margin } - font.pixelSize : Fonts.fontPixelDialogText + font.pixelSize : Fonts.fontPixelTextRectExtra + font.weight : Font.Medium text : wifiConnected ? qsTr("Connected") : "" - color : _delegate.networkDelegateTextColor + color : Colors.statusTextActive } + Line { id: _wifiDivider + color : Colors.panelBorderColor + visible : index !== _networkList.count - 1 + anchors { + bottom : parent.bottom + left : parent.left + leftMargin : _delegate.margin + right : parent.right + rightMargin : _delegate.margin + } + } + onClicked : { if( wifiSupported ) { _userConfirmation.isPassword = ! wifiConnected @@ -235,28 +254,19 @@ } } } - } -// } + ScrollBar { + flickable : _networkList + anchors.fill : _networkList + scrollColor : Colors.scrollBarColor + handleWidth : 5 + visible : _networkList.count > 0 + } + } + } } } - -// TouchRect { id : _scanButton -// anchors.bottom : parent.bottom -// anchors.bottomMargin: Variables.mainMenuHeight * 2 + Variables.minVGap -// anchors.left : parent.left -// anchors.leftMargin : _root.leftMargin -// text.text : qsTr("SCAN") -// width : 350 -// isDefault : true -// enabled : vDevice.wifiListEnabled -// onClicked : vDevice.wifiList = "" -// } - - - - UserConfirmation { id : _userConfirmation property string ssid : "" property string macAddress : ""