Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma applet for NetworkManager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Plasma applet for NetworkManager
Commits
9b489d35
Commit
9b489d35
authored
Nov 21, 2017
by
Martin Kacej
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed view to basic Kirigami, minor layout changes
parent
8de31cf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
28 deletions
+41
-28
mobile/package/contents/ui/RowItemDelegate.qml
mobile/package/contents/ui/RowItemDelegate.qml
+37
-17
mobile/package/contents/ui/Wifi.qml
mobile/package/contents/ui/Wifi.qml
+4
-11
No files found.
mobile/package/contents/ui/RowItemDelegate.qml
View file @
9b489d35
...
...
@@ -24,18 +24,38 @@ import QtQuick.Layouts 1.2
import
org
.
kde
.
plasma
.
core
2.0
as
PlasmaCore
import
org
.
kde
.
plasma
.
components
2.0
as
PlasmaComponents
import
org
.
kde
.
plasma
.
networkmanagement
0.2
as
PlasmaNM
import
org
.
kde
.
kirigami
1.0
as
Kirigami
PlasmaComponents.ListItem
{
Kirigami.SwipeListItem
{
width
:
parent
.
width
enabled
:
true
RowLayout
{
Item
{
height
:
connectionSvgIcon
.
height
width
:
parent
.
width
PlasmaCore.SvgItem
{
id
:
connectionSvgIcon
anchors
{
left
:
parent
.
left
rightMargin
:
10
}
elementId
:
ConnectionIcon
//height: units.iconSizes.big; width: height
svg
:
PlasmaCore.Svg
{
multipleImages
:
true
imagePath
:
"
icons/network
"
colorGroup
:
PlasmaCore
.
ColorScope
.
colorGroup
}
}
PlasmaComponents.Label
{
id
:
connectionNameLabel
anchors
{
leftMargin
:
Math
.
round
(
units
.
gridUnit
/
2
)
left
:
connectionSvgIcon
.
right
leftMargin
:
units
.
gridUnit
verticalCenter
:
connectionSvgIcon
.
verticalCenter
}
height
:
paintedHeight
elide
:
Text
.
ElideRight
...
...
@@ -44,21 +64,21 @@ PlasmaComponents.ListItem {
text
:
ItemUniqueName
textFormat
:
Text
.
PlainText
}
}
PlasmaCore.SvgItem
{
id
:
connectionSvgIcon
anchors
{
right
:
parent
.
right
verticalCenter
:
parent
.
verticalCenter
}
elementId
:
ConnectionIcon
height
:
units
.
iconSizes
.
medium
;
width
:
height
svg
:
PlasmaCore.Svg
{
multipleImages
:
true
imagePath
:
"
icons/network
"
colorGroup
:
PlasmaCore
.
ColorScope
.
colorGroup
actions
:
[
Kirigami.Action
{
iconName
:
"
configure-small
"
onTriggered
:
{
networkDetailsViewContent
.
details
=
ConnectionDetails
if
(
ConnectionDetails
[
1
]
!==
""
)
{
detailsDialog
.
titleText
=
ConnectionDetails
[
1
]
}
else
{
detailsDialog
.
titleText
=
i18n
(
"
Network details
"
)
}
networkDetailsViewContent
.
fillDetails
()
detailsDialog
.
open
()
}
}
}
]
}
mobile/package/contents/ui/Wifi.qml
View file @
9b489d35
...
...
@@ -26,7 +26,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
import
org
.
kde
.
plasma
.
extras
2.0
as
PlasmaExtras
import
org
.
kde
.
active
.
settings
2.0
as
ActiveSettings
import
org
.
kde
.
plasma
.
networkmanagement
0.2
as
PlasmaNM
//
import org.kde.kirigami 1.0 as Kirigami
import
org
.
kde
.
kirigami
1.0
as
Kirigami
Item
{
id
:
main
...
...
@@ -73,7 +73,7 @@ Item {
Layout.fillWidth
:
true
}
PlasmaComponents.Switch
{
Controls.Switch
{
id
:
wifiSwitchButton
checked
:
enabled
&&
enabledConnections
.
wirelessEnabled
enabled
:
enabledConnections
.
wirelessHwEnabled
...
...
@@ -86,6 +86,7 @@ Item {
Rectangle
{
id
:
separator
anchors.top
:
layoutrow
.
bottom
anchors.topMargin
:
10
width
:
parent
.
width
height
:
units
.
gridUnit
/
8
border.color
:
"
grey
"
...
...
@@ -114,7 +115,6 @@ Item {
ListView
{
id
:
view
anchors.fill
:
parent
anchors.margins
:
units
.
gridUnit
clip
:
true
width
:
parent
.
width
currentIndex
:
-
1
...
...
@@ -122,14 +122,6 @@ Item {
model
:
mobileappletProxyModel
delegate
:
RowItemDelegate
{
onClicked
:
{
networkDetailsViewContent
.
details
=
ConnectionDetails
if
(
ConnectionDetails
[
1
]
!==
""
)
{
detailsDialog
.
titleText
=
ConnectionDetails
[
1
]
}
else
{
detailsDialog
.
titleText
=
i18n
(
"
Network details
"
)
}
networkDetailsViewContent
.
fillDetails
()
detailsDialog
.
open
()
}
}
}
...
...
@@ -138,6 +130,7 @@ Item {
PlasmaComponents.Button
{
id
:
customConnectionButton
anchors.top
:
wifiarea
.
bottom
anchors.topMargin
:
units
.
gridUnit
text
:
i18n
(
"
Add custom connection
"
)
onClicked
:
connectionEditorDialog
.
open
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment