mirror of https://github.com/cutefishos/settings
Separate WLAN and Wired
parent
d5ad272633
commit
0f495d04f3
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.5 KiB |
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="wlan.svg"
|
||||
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1586"
|
||||
inkscape:window-height="997"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="45.9375"
|
||||
inkscape:cx="8"
|
||||
inkscape:cy="8"
|
||||
inkscape:window-x="272"
|
||||
inkscape:window-y="35"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="svg4"
|
||||
inkscape:document-rotation="0" />
|
||||
<path
|
||||
style="color:#363636;fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
class="ColorScheme-Text"
|
||||
d="m 7.9997719,2.2987066 c -3.020999,0 -5.874458,1.3332678 -7.82888504,3.6583298 -0.259604,0.30878 -0.218709,0.769328 0.09057,1.028905 0.136835,0.114927 0.303107,0.170742 0.469169,0.170742 0.20844201,0 0.41511204,-0.0879 0.55973704,-0.259824 1.675373,-1.9933813 4.120877,-3.1371963 6.709412,-3.1371963 2.5885361,0 5.0340661,1.1442857 6.7094131,3.1371963 0.144651,0.171919 0.351269,0.259824 0.559737,0.259824 0.166089,0 0.333819,-0.05532 0.470654,-0.170742 0.308779,-0.259133 0.348685,-0.720622 0.08908,-1.028905 C 13.874727,3.6319744 11.020772,2.2987066 7.9997719,2.2987066 Z m 0,3.0941398 c -2.158006,0 -4.195629,0.952804 -5.591424,2.613092 -0.259578,0.30878 -0.220194,0.769328 0.08908,1.028906 0.136834,0.114926 0.30308,0.170742 0.469168,0.170742 0.208442,0 0.415582,-0.08791 0.559737,-0.259825 1.116741,-1.329078 2.747895,-2.091959 4.473437,-2.091959 1.725542,0 3.3561991,0.762881 4.4734371,2.091959 0.144651,0.172416 0.351791,0.259825 0.559736,0.259825 0.166088,0 0.332308,-0.05532 0.469168,-0.170742 0.309251,-0.259578 0.348634,-0.720597 0.08908,-1.028906 -1.396315,-1.660261 -3.433416,-2.613092 -5.5914211,-2.613092 z m 0,3.214401 c -1.295483,0 -2.518755,0.570413 -3.355448,1.5663706 -0.259604,0.308779 -0.218709,0.769328 0.09057,1.028905 0.136834,0.114926 0.30308,0.172226 0.469169,0.172226 0.208441,0 0.415581,-0.08939 0.559736,-0.261309 0.558632,-0.6648 1.373453,-1.045237 2.235976,-1.045237 0.862523,0 1.67737,0.380437 2.2359761,1.045237 0.144652,0.172416 0.351766,0.261309 0.559737,0.261309 0.166089,0 0.332334,-0.0568 0.469169,-0.172226 0.309276,-0.259604 0.350145,-0.720152 0.09057,-1.028905 C 10.518505,9.1776604 9.2952319,8.6072474 7.9997749,8.6072474 Z m -0.06236,2.7734416 c -0.571372,0.05444 -1.120902,0.481828 -1.140258,1.117988 0,0.664197 0.538441,1.202616 1.202616,1.202616 0.664176,0 1.202617,-0.538419 1.202617,-1.202616 -0.101637,-0.853922 -0.693601,-1.172429 -1.264972,-1.117988 z"
|
||||
id="path4" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="wlan.svg"
|
||||
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1586"
|
||||
inkscape:window-height="997"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="45.9375"
|
||||
inkscape:cx="8"
|
||||
inkscape:cy="8"
|
||||
inkscape:window-x="272"
|
||||
inkscape:window-y="35"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="svg4"
|
||||
inkscape:document-rotation="0" />
|
||||
<path
|
||||
style="color:#363636;fill:currentColor;fill-opacity:1;stroke:none"
|
||||
class="ColorScheme-Text"
|
||||
d="m 7.9997719,2.2987066 c -3.020999,0 -5.874458,1.3332678 -7.82888504,3.6583298 -0.259604,0.30878 -0.218709,0.769328 0.09057,1.028905 0.136835,0.114927 0.303107,0.170742 0.469169,0.170742 0.20844201,0 0.41511204,-0.0879 0.55973704,-0.259824 1.675373,-1.9933813 4.120877,-3.1371963 6.709412,-3.1371963 2.5885361,0 5.0340661,1.1442857 6.7094131,3.1371963 0.144651,0.171919 0.351269,0.259824 0.559737,0.259824 0.166089,0 0.333819,-0.05532 0.470654,-0.170742 0.308779,-0.259133 0.348685,-0.720622 0.08908,-1.028905 C 13.874727,3.6319744 11.020772,2.2987066 7.9997719,2.2987066 Z m 0,3.0941398 c -2.158006,0 -4.195629,0.952804 -5.591424,2.613092 -0.259578,0.30878 -0.220194,0.769328 0.08908,1.028906 0.136834,0.114926 0.30308,0.170742 0.469168,0.170742 0.208442,0 0.415582,-0.08791 0.559737,-0.259825 1.116741,-1.329078 2.747895,-2.091959 4.473437,-2.091959 1.725542,0 3.3561991,0.762881 4.4734371,2.091959 0.144651,0.172416 0.351791,0.259825 0.559736,0.259825 0.166088,0 0.332308,-0.05532 0.469168,-0.170742 0.309251,-0.259578 0.348634,-0.720597 0.08908,-1.028906 -1.396315,-1.660261 -3.433416,-2.613092 -5.5914211,-2.613092 z m 0,3.214401 c -1.295483,0 -2.518755,0.570413 -3.355448,1.5663706 -0.259604,0.308779 -0.218709,0.769328 0.09057,1.028905 0.136834,0.114926 0.30308,0.172226 0.469169,0.172226 0.208441,0 0.415581,-0.08939 0.559736,-0.261309 0.558632,-0.6648 1.373453,-1.045237 2.235976,-1.045237 0.862523,0 1.67737,0.380437 2.2359761,1.045237 0.144652,0.172416 0.351766,0.261309 0.559737,0.261309 0.166089,0 0.332334,-0.0568 0.469169,-0.172226 0.309276,-0.259604 0.350145,-0.720152 0.09057,-1.028905 C 10.518505,9.1776604 9.2952319,8.6072474 7.9997749,8.6072474 Z m -0.06236,2.7734416 c -0.571372,0.05444 -1.120902,0.481828 -1.140258,1.117988 0,0.664197 0.538441,1.202616 1.202616,1.202616 0.664176,0 1.202617,-0.538419 1.202617,-1.202616 -0.101637,-0.853922 -0.693601,-1.172429 -1.264972,-1.117988 z"
|
||||
id="path4" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.4 KiB |
@ -0,0 +1,140 @@
|
||||
/*
|
||||
* Copyright (C) 2021 CutefishOS Team.
|
||||
*
|
||||
* Author: revenmartin <revenmartin@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.4
|
||||
import QtQuick.Controls 2.4
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtGraphicalEffects 1.0
|
||||
|
||||
import FishUI 1.0 as FishUI
|
||||
import Cutefish.NetworkManagement 1.0 as NM
|
||||
|
||||
import "../"
|
||||
|
||||
ItemPage {
|
||||
id: control
|
||||
headerTitle: qsTr("WLAN")
|
||||
|
||||
property var itemHeight: 45
|
||||
property var settingsMap: ({})
|
||||
|
||||
NM.Handler {
|
||||
id: handler
|
||||
}
|
||||
|
||||
NM.WifiSettings {
|
||||
id: wifiSettings
|
||||
}
|
||||
|
||||
NM.NetworkModel {
|
||||
id: networkModel
|
||||
}
|
||||
|
||||
NM.EnabledConnections {
|
||||
id: enabledConnections
|
||||
}
|
||||
|
||||
NM.IdentityModel {
|
||||
id: connectionModel
|
||||
}
|
||||
|
||||
NM.Configuration {
|
||||
id: configuration
|
||||
}
|
||||
|
||||
Component.onCompleted: handler.requestScan()
|
||||
|
||||
Timer {
|
||||
id: scanTimer
|
||||
interval: 10200
|
||||
repeat: true
|
||||
running: control.visible
|
||||
onTriggered: handler.requestScan()
|
||||
}
|
||||
|
||||
Scrollable {
|
||||
anchors.fill: parent
|
||||
contentHeight: mainLayout.implicitHeight
|
||||
|
||||
ColumnLayout {
|
||||
id: mainLayout
|
||||
anchors.fill: parent
|
||||
anchors.bottomMargin: FishUI.Units.largeSpacing
|
||||
spacing: FishUI.Units.largeSpacing * 2
|
||||
|
||||
RoundedItem {
|
||||
WifiView {
|
||||
Layout.fillWidth: true
|
||||
visible: enabledConnections.wirelessHwEnabled
|
||||
}
|
||||
}
|
||||
|
||||
// Hotspot
|
||||
// 还未完善
|
||||
// RoundedItem {
|
||||
// id: hotspotItem
|
||||
// visible: handler.hotspotSupported
|
||||
|
||||
// RowLayout {
|
||||
// Label {
|
||||
// text: qsTr("Hotspot")
|
||||
// color: FishUI.Theme.disabledTextColor
|
||||
// }
|
||||
|
||||
// Item {
|
||||
// Layout.fillWidth: true
|
||||
// }
|
||||
|
||||
// Switch {
|
||||
// Layout.fillHeight: true
|
||||
// rightPadding: 0
|
||||
|
||||
// onToggled: {
|
||||
// if (checked) {
|
||||
// handler.createHotspot()
|
||||
// } else {
|
||||
// handler.stopHotspot()
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// Item {
|
||||
// height: FishUI.Units.largeSpacing
|
||||
// }
|
||||
|
||||
// TextField {
|
||||
// id: ssidName
|
||||
// text: configuration.hotspotName
|
||||
// placeholderText: qsTr("SSID")
|
||||
// }
|
||||
|
||||
// TextField {
|
||||
// id: hotspotPassword
|
||||
// placeholderText: qsTr("Password")
|
||||
// text: configuration.hotspotPassword
|
||||
// }
|
||||
// }
|
||||
|
||||
Item {
|
||||
height: FishUI.Units.largeSpacing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue