Commit c7f37b6a authored by Martin Kacej's avatar Martin Kacej

background theme, busy indicator and forget action UI added

parent 15c583af
......@@ -29,6 +29,7 @@ import org.kde.kirigami 1.0 as Kirigami
Kirigami.SwipeListItem{
width: parent.width
enabled: true
backgroundColor: theme.backgroundColor
Item{
height: connectionSvgIcon.height
......@@ -49,6 +50,19 @@ Kirigami.SwipeListItem{
}
}
PlasmaComponents.BusyIndicator {
id: connectingIndicator
anchors {
left: parent.left
horizontalCenter: connectionSvgIcon.horizontalCenter
verticalCenter: connectionSvgIcon.verticalCenter
}
height: units.iconSizes.medium; width: height
running: ConnectionState == PlasmaNM.Enums.Activating
visible: running
}
PlasmaComponents.Label {
id: connectionNameLabel
......@@ -70,15 +84,28 @@ Kirigami.SwipeListItem{
Kirigami.Action {
iconName: "configure-small"
onTriggered: {
networkDetailsViewContent.details = ConnectionDetails
if (ConnectionDetails) networkDetailsViewContent.details = ConnectionDetails
if (ConnectionDetails[1] !== "") {
detailsDialog.titleText = ConnectionDetails[1]
detailsDialog.titleText = ItemUniqueName
} else {
detailsDialog.titleText = i18n("Network details")
}
networkDetailsViewContent.fillDetails()
detailsDialog.open()
}
},
Kirigami.Action {
iconName: "remove"
onTriggered: {
forgetNetwork()
}
}
]
function connect(){
console.info(ConnectionDetails[1]+' trying to connect')
}
function forgetNetwork(){
console.info(ConnectionDetails[1]+' trying to forget')
}
}
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