Commit 5cd8370f authored by Martin Kacej's avatar Martin Kacej

various small layout changes

parent 294a455a
......@@ -13,8 +13,9 @@ Kirigami.ScrollablePage {
Controls.Label {
anchors.left: parent.left
text: i18n("Wifi")
text: i18n("Wi-fi")
Layout.fillWidth: true
font.bold: true
}
Controls.Switch {
......@@ -35,8 +36,12 @@ Kirigami.ScrollablePage {
width: parent.width
currentIndex: -1
boundsBehavior: Flickable.StopAtBounds
header: Controls.Label {
text: (mobileProxyModel.showSavedMode) ? i18n("Saved networks") : i18n("Available networks")
header: Column {
width: parent.width
Controls.Label {
text: (mobileProxyModel.showSavedMode) ? i18n("Saved networks") : i18n("Available networks")
}
Rectangle { width: parent.width; height: 2; color: Kirigami.Theme.disabledTextColor}
}
model: mobileProxyModel
delegate: RowItemDelegate {}
......
......@@ -9,23 +9,54 @@ Kirigami.ScrollablePage {
property var devicePath
property alias name: hotSpotName.text
header: RowLayout {
header:
ColumnLayout {
width: parent.width
Controls.Label {
text: "Wi-fi hotspot"
Layout.fillWidth: true
}
Controls.Switch {
id: hotSpotSwitch
onCheckedChanged: {
if (checked) {
initTethering()
} else {
disableTethering()
anchors.leftMargin: Kirigami.Units.largeSpacing * 2
Kirigami.Separator {}
RowLayout{
Kirigami.Separator {}
Controls.Label {
anchors.leftMargin: Kirigami.Units.largeSpacing * 2
text: "Wi-fi hotspot"
Layout.fillWidth: true
font.weight: Font.Bold
}
Controls.Switch {
id: hotSpotSwitch
onCheckedChanged: {
if (checked) {
initTethering()
} else {
disableTethering()
}
}
}
}
Kirigami.Separator {}
Rectangle{
height: 1
Layout.fillWidth: true
color: "black"
}
}
}
// RowLayout {
// width: parent.width
// Controls.Label {
// text: "Wi-fi hotspot"
// Layout.fillWidth: true
// }
// Controls.Switch {
// id: hotSpotSwitch
// onCheckedChanged: {
// if (checked) {
// initTethering()
// } else {
// disableTethering()
// }
// }
// }
// }
ColumnLayout {
spacing: Kirigami.Units.gridUnit
......
......@@ -29,6 +29,8 @@ Kirigami.ApplicationItem {
pageStack.defaultColumnWidth: Kirigami.Units.gridUnit * 25
pageStack.initialPage: formLayout
Kirigami.Theme.colorSet: Kirigami.Theme.Window
anchors.fill: parent
PlasmaNM.Handler {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment