Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
glacier-home
Commits
e15e82b5
Commit
e15e82b5
authored
Jan 26, 2017
by
Sergey Chupligin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Statusbar] Indicators update
parent
d44f255d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
12 deletions
+18
-12
Statusbar.qml
src/qml/Statusbar.qml
+18
-6
StatusbarItem.qml
src/qml/StatusbarItem.qml
+0
-6
No files found.
src/qml/Statusbar.qml
View file @
e15e82b5
...
@@ -85,6 +85,16 @@ Item {
...
@@ -85,6 +85,16 @@ Item {
key
:
"
Cellular.RegistrationStatus
"
key
:
"
Cellular.RegistrationStatus
"
}
}
ContextProperty
{
id
:
bluetoothEnabled
key
:
"
Bluetooth.Enabled
"
}
ContextProperty
{
id
:
bluetoothConnected
key
:
"
Bluetooth.Connected
"
}
NetworkManager
{
NetworkManager
{
id
:
networkManager
id
:
networkManager
function
updateTechnologies
()
{
function
updateTechnologies
()
{
...
@@ -181,15 +191,15 @@ Item {
...
@@ -181,15 +191,15 @@ Item {
if
(
networkManager
.
defaultRoute
.
type
!==
"
wifi
"
)
if
(
networkManager
.
defaultRoute
.
type
!==
"
wifi
"
)
return
"
image://theme/icon_wifi_0
"
return
"
image://theme/icon_wifi_0
"
if
(
networkManager
.
defaultRoute
.
strength
>=
59
)
{
if
(
networkManager
.
defaultRoute
.
strength
>=
59
)
{
return
"
image://theme/icon_wifi_
normal
4
"
return
"
image://theme/icon_wifi_
focused
4
"
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
55
)
{
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
55
)
{
return
"
image://theme/icon_wifi_
normal
3
"
return
"
image://theme/icon_wifi_
focused
3
"
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
50
)
{
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
50
)
{
return
"
image://theme/icon_wifi_
normal
2
"
return
"
image://theme/icon_wifi_
focused
2
"
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
40
)
{
}
else
if
(
networkManager
.
defaultRoute
.
strength
>=
40
)
{
return
"
image://theme/icon_wifi_
normal
1
"
return
"
image://theme/icon_wifi_
focused
1
"
}
else
{
}
else
{
return
"
image://theme/icon_wifi_
0
"
return
"
image://theme/icon_wifi_
normal4
"
}
}
}
else
{
}
else
{
return
"
image://theme/icon_wifi_0
"
return
"
image://theme/icon_wifi_0
"
...
@@ -198,8 +208,10 @@ Item {
...
@@ -198,8 +208,10 @@ Item {
panel
:
WifiPanel
{}
panel
:
WifiPanel
{}
}
}
StatusbarItem
{
StatusbarItem
{
id
:
bluetootIndicator
iconSize
:
root
.
height
/
2
iconSize
:
root
.
height
/
2
source
:
"
image://theme/icon_bt_normal
"
source
:
(
bluetoothConnected
.
value
)
?
"
image://theme/icon_bt_focused
"
:
"
image://theme/icon_bt_normal
"
visible
:
bluetoothEnabled
.
value
}
}
StatusbarItem
{
StatusbarItem
{
iconSize
:
root
.
height
/
2
iconSize
:
root
.
height
/
2
...
...
src/qml/StatusbarItem.qml
View file @
e15e82b5
...
@@ -25,12 +25,6 @@ Item {
...
@@ -25,12 +25,6 @@ Item {
panel_loader
.
sourceComponent
=
panel
panel_loader
.
sourceComponent
=
panel
panel_loader
.
visible
=
!
panel_loader
.
visible
panel_loader
.
visible
=
!
panel_loader
.
visible
}
}
if
(
icon
.
source
.
toString
().
match
(
"
normal
"
))
{
icon
.
source
=
icon
.
source
.
toString
().
replace
(
"
normal
"
,
"
focused
"
)
}
else
{
icon
.
source
=
icon
.
source
.
toString
().
replace
(
"
focused
"
,
"
normal
"
)
}
}
}
}
}
}
}
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