~costales/unav/0.68-centerpos-btn-landscape

« back to all changes in this revision

Viewing changes to qml/Main.qml

  • Committer: costales
  • Date: 2017-04-01 21:16:24 UTC
  • Revision ID: costales.marcos@gmail.com-20170401211624-37b3te86wj6fnoua
Opacity center button in landscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
561
561
                        }
562
562
 
563
563
                        ActionIcon {
 
564
                            id: centerPosBtn
564
565
                            icon.name: mainPageStack.center_onpos ? "media-optical-symbolic" : "gps"
565
566
                            enabled: navigationPage.buttonsEnabled && mainPageStack.center_onpos !== 2
 
567
                            opacity: centerPosBtn.enabled ? 1.0 : 0.2 // enabled property is not changing the opacity of the icon
566
568
                            onClicked: {
567
569
                                if (mainPageStack.center_onpos === 0) {
568
570
                                    notificationBar.text =  i18n.tr("Searching your position… This could take a while");