Skip to content

Commit

Permalink
Relocate the cloud button to insure it stays visible on tiny screens
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 12, 2025
1 parent ef70b41 commit c55a5c9
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/qml/DashBoard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,6 @@ Drawer {
}
}

QfToolButton {
text: qsTr("Project Folder")
anchors.verticalCenter: parent.verticalCenter
font: Theme.defaultFont
iconSource: Theme.getThemeVectorIcon("ic_project_folder_black_24dp")
iconColor: Theme.mainOverlayColor
round: true
onClicked: {
projectFolderClicked();
}
}

QfToolButton {
id: cloudButton
anchors.verticalCenter: parent.verticalCenter
Expand Down Expand Up @@ -214,11 +202,24 @@ Drawer {
}
running: cloudProjectsModel.currentProjectData.Status === QFieldCloudProjectsModel.Downloading || cloudProjectsModel.currentProjectData.Status === QFieldCloudProjectsModel.Uploading
loops: Animation.Infinite

onStopped: {
cloudButton.opacity = 1;
}
}
}

QfToolButton {
text: qsTr("Project Folder")
anchors.verticalCenter: parent.verticalCenter
font: Theme.defaultFont
iconSource: Theme.getThemeVectorIcon("ic_project_folder_black_24dp")
iconColor: Theme.mainOverlayColor
round: true
onClicked: {
projectFolderClicked();
}
}
}
}

Expand Down

1 comment on commit c55a5c9

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.