Merge lp:~costales/unav/0.68-centerpos-btn-landscape into lp:unav

Proposed by costales
Status: Merged
Merged at revision: 183
Proposed branch: lp:~costales/unav/0.68-centerpos-btn-landscape
Merge into: lp:unav
Diff against target: 14 lines (+2/-0)
1 file modified
qml/Main.qml (+2/-0)
To merge this branch: bzr merge lp:~costales/unav/0.68-centerpos-btn-landscape
Reviewer Review Type Date Requested Status
uNav developers Pending
Review via email: mp+321639@code.launchpad.net

Description of the change

Center position btn is not changing the opacity in landscape

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Main.qml'
2--- qml/Main.qml 2017-03-21 22:06:37 +0000
3+++ qml/Main.qml 2017-04-01 21:17:12 +0000
4@@ -561,8 +561,10 @@
5 }
6
7 ActionIcon {
8+ id: centerPosBtn
9 icon.name: mainPageStack.center_onpos ? "media-optical-symbolic" : "gps"
10 enabled: navigationPage.buttonsEnabled && mainPageStack.center_onpos !== 2
11+ opacity: centerPosBtn.enabled ? 1.0 : 0.2 // enabled property is not changing the opacity of the icon
12 onClicked: {
13 if (mainPageStack.center_onpos === 0) {
14 notificationBar.text = i18n.tr("Searching your position… This could take a while");

Subscribers

People subscribed via source and target branches