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
a6b102e6
Commit
a6b102e6
authored
Mar 01, 2016
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #44 from eekkelund/master
[scaling] Scaling of statusbar
parents
e95df7e2
5022b21c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
16 deletions
+28
-16
Statusbar.qml
src/qml/Statusbar.qml
+25
-16
StatusbarItem.qml
src/qml/StatusbarItem.qml
+3
-0
No files found.
src/qml/Statusbar.qml
View file @
a6b102e6
...
...
@@ -38,7 +38,7 @@ import MeeGo.Connman 0.2
Item
{
id
:
root
z
:
201
height
:
48
height
:
width
/
12
width
:
parent
.
width
anchors.bottom
:
parent
.
bottom
...
...
@@ -130,17 +130,19 @@ Item {
RowLayout
{
anchors.fill
:
statusbar
spacing
:
16
spacing
:
root
.
height
/
4
StatusbarItem
{
iconSize
:
root
.
height
/
2
source
:
(
cellularSignalBars
.
value
>
0
)
?
"
image://theme/icon_cell
"
+
cellularSignalBars
.
value
:
"
image://theme/icon_cell1
"
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
Label
{
id
:
tech
width
:
16
height
:
16
font.p
ointSize
:
6
width
:
root
.
height
/
4
height
:
root
.
height
/
4
font.p
ixelSize
:
root
.
height
/
4
+
root
.
height
/
5
font.bold
:
true
wrapMode
:
Text
.
ElideRight
text
:
(
cellularNetworkName
.
value
!==
""
)
?
cellularNetworkName
.
value
.
substring
(
0
,
3
).
toUpperCase
()
:
"
NA
"
...
...
@@ -148,10 +150,10 @@ Item {
Label
{
anchors.top
:
tech
.
bottom
anchors.topMargin
:
4
width
:
16
height
:
16
font.p
ointSize
:
6
anchors.topMargin
:
root
.
height
/
8
width
:
root
.
height
/
4
height
:
root
/
height
/
4
font.p
ixelSize
:
root
.
height
/
4
+
root
.
height
/
5
text
:
{
var
techToG
=
{
gprs
:
"
2
"
,
egprs
:
"
2.5
"
,
umts
:
"
3
"
,
hspa
:
"
3.5
"
,
lte
:
"
4
"
,
unknown
:
"
0
"
}
return
techToG
[
cellularDataTechnology
.
value
?
cellularDataTechnology
.
value
:
"
unknown
"
]
+
"
G
"
...
...
@@ -161,6 +163,7 @@ Item {
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
source
:
{
if
(
wlan
.
connected
)
{
if
(
networkManager
.
defaultRoute
.
type
!==
"
wifi
"
)
...
...
@@ -183,37 +186,43 @@ Item {
panel
:
WifiPanel
{}
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
source
:
"
image://theme/icon_bt_normal
"
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
source
:
"
image://theme/icon_nfc_normal
"
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
source
:
"
image://theme/icon_gps_normal
"
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
source
:
"
image://theme/icon_play_pause
"
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
Label
{
id
:
hours
width
:
16
height
:
16
font.p
ointSize
:
6
width
:
root
.
height
/
4
height
:
root
.
height
/
4
font.p
ixelSize
:
root
.
height
/
4
+
root
.
height
/
5
text
:
Qt
.
formatDateTime
(
wallClock
.
time
,
"
hh
"
)
}
Label
{
id
:
minutes
anchors.top
:
hours
.
bottom
anchors.topMargin
:
4
width
:
16
height
:
16
font.p
ointSize
:
6
anchors.topMargin
:
root
.
height
/
8
width
:
root
.
height
/
4
height
:
root
.
height
/
4
font.p
ixelSize
:
root
.
height
/
4
+
root
.
height
/
5
text
:
Qt
.
formatDateTime
(
wallClock
.
time
,
"
mm
"
)
}
}
StatusbarItem
{
iconSize
:
root
.
height
/
2
panel
:
BatteryPanel
{}
source
:
{
if
(
batteryChargePercentage
.
value
>
85
)
{
...
...
src/qml/StatusbarItem.qml
View file @
a6b102e6
...
...
@@ -5,9 +5,12 @@ Item {
property
alias
source
:
icon
.
source
property
string
panel_source
property
Component
panel
property
double
iconSize
Layout.fillWidth
:
true
Layout.fillHeight
:
true
Image
{
width
:
iconSize
height
:
iconSize
id
:
icon
anchors.centerIn
:
parent
}
...
...
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