Commit 9415728a authored by camilo higuita's avatar camilo higuita

add config ux to show and hide rollbar and initial work on viewer menu options

parent 3cad7f04
......@@ -44,5 +44,7 @@
<file>widgets/dialogs/Albums/NewAlbumDialog.qml</file>
<file>widgets/GlobalDrawer.qml</file>
<file>widgets/views/Viewer/GalleryRoll.qml</file>
<file>view_models/PixMenu.qml</file>
<file>widgets/views/Viewer/ViewerMenu.qml</file>
</qresource>
</RCC>
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
Menu
{
x: parent.width / 2 - width / 2
y: parent.height / 2 - height / 2
modal: true
focus: true
parent: ApplicationWindow.overlay
margins: 1
padding: 2
}
......@@ -35,6 +35,7 @@ PixPage
PixButton
{
iconName: "overflow-menu"
onClicked: viewerMenu.popup()
}
]
......@@ -54,6 +55,7 @@ PixPage
footer: ToolBar
{
id: footerToolbar
position: ToolBar.Footer
visible: !holder.visible
TagBar
......@@ -83,6 +85,11 @@ PixPage
id: albumsDialog
}
ViewerMenu
{
id: viewerMenu
}
PixHolder
{
id: holder
......@@ -106,6 +113,12 @@ PixPage
{
id: viewer
MouseArea
{
anchors.fill: parent
onEntered: galleryRoll.visible = !galleryRoll.visible
}
GalleryRoll
{
id: galleryRoll
......
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import org.kde.kirigami 2.2 as Kirigami
import "../../../view_models"
PixMenu
{
property alias menuItems: viewerMenuLayout.children
Column
{
id: viewerMenuLayout
MenuItem
{
text: qsTr(footerToolbar.visible ? "Hide Tag bar":
"Show Tag bar")
onTriggered: footerToolbar.visible = !footerToolbar.visible
}
MenuItem
{
text: qsTr(galleryRoll.visible ? "Pin Roll bar":
"UnPin Roll bar")
onTriggered: galleryRoll.visible = !galleryRoll.visible
}
Kirigami.Separator{ width: parent.width; height: 1}
MenuItem
{
text: "Configurations..."
onTriggered: {close()}
}
Kirigami.Separator{ width: parent.width; height: 1}
MenuItem
{
text: "Sort..."
onTriggered: {close()}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment