[ui] ImageGallery: use image/camera icons instead of text in footer

This commit is contained in:
Yann Lanthony 2019-01-16 19:54:48 +01:00
parent 997cb65442
commit ef7c201c63

View file

@ -280,20 +280,27 @@ Panel {
} }
footerContent: RowLayout { footerContent: RowLayout {
anchors.fill: parent
// Image count // Image count
Label { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
text: grid.model.count + " image" + (grid.model.count > 1 ? "s" : "") + (_reconstruction.nbCameras > 0 ? " / " + _reconstruction.nbCameras + " camera" + (_reconstruction.nbCameras > 1 ? "s": "") : "") spacing: 8
elide: Text.ElideRight RowLayout {
MaterialLabel { text: MaterialIcons.image }
Label { text: grid.model.count }
}
RowLayout {
visible: _reconstruction.cameraInit && _reconstruction.nbCameras
MaterialLabel { text: MaterialIcons.videocam }
Label { text: _reconstruction.cameraInit ? _reconstruction.nbCameras : 0 }
}
} }
Item { Layout.fillHeight: true; Layout.fillWidth: true }
// Thumbnail size icon and slider // Thumbnail size icon and slider
Label { MaterialLabel {
text: MaterialIcons.photo_size_select_large text: MaterialIcons.photo_size_select_large
font.family: MaterialIcons.fontFamily
font.pixelSize: 13
} }
Slider { Slider {
id: thumbnailSizeSlider id: thumbnailSizeSlider
@ -301,7 +308,6 @@ Panel {
value: defaultCellSize value: defaultCellSize
to: 250 to: 250
implicitWidth: 70 implicitWidth: 70
height: parent.height
} }
} }