Commit d4628029 authored by Camilo higuita's avatar Camilo higuita

new placessidebar to the global drawer

parent 4e301ef8
...@@ -22,18 +22,18 @@ Maui.ApplicationWindow ...@@ -22,18 +22,18 @@ Maui.ApplicationWindow
about.appDescription: qsTr("Index is a file manager that works on desktops, Android and Plasma Mobile. Index lets you browse your system files and applications and preview your music, text, image and video files and share them with external applications.") about.appDescription: qsTr("Index is a file manager that works on desktops, Android and Plasma Mobile. Index lets you browse your system files and applications and preview your music, text, image and video files and share them with external applications.")
about.appIcon: "qrc:/assets/index.svg" about.appIcon: "qrc:/assets/index.svg"
pageStack.defaultColumnWidth: sidebarWidth // pageStack.defaultColumnWidth: Kirigami.Units.gridUnit * 25
pageStack.initialPage: [placesSidebar, browserView] // pageStack.defaultColumnWidth: sidebarWidth
pageStack.interactive: isMobile // pageStack.initialPage: [browserView]
pageStack.separatorVisible: pageStack.wideMode // pageStack.interactive: isMobile
// pageStack.separatorVisible: false
property alias dialog : dialogLoader.item property alias dialog : dialogLoader.item
property bool searchBar: false property bool searchBar: false
accentColor: altColor accentColor: "#303952"
// highlightColor: "#64B5F6" // highlightColor: "#64B5F6"
altColor: "#303952"
altToolBars: false altToolBars: false
altColorText: "#ffffff" altColorText: "#ffffff"
// headBarBGColor: "#64B5F6" // headBarBGColor: "#64B5F6"
...@@ -56,6 +56,8 @@ Maui.ApplicationWindow ...@@ -56,6 +56,8 @@ Maui.ApplicationWindow
}else browser.goBack() }else browser.goBack()
} }
// headBarBGColor: viewBackgroundColor
// headBar.drawBorder: false
headBar.middleContent: Maui.PathBar headBar.middleContent: Maui.PathBar
{ {
id: pathBar id: pathBar
...@@ -100,18 +102,34 @@ Maui.ApplicationWindow ...@@ -100,18 +102,34 @@ Maui.ApplicationWindow
id: dialogLoader id: dialogLoader
} }
Maui.PlacesSidebar globalDrawer: Maui.GlobalDrawer
{ {
id: placesSidebar id: _drawer
onPlaceClicked: browser.openFolder(path) width: Kirigami.Units.gridUnit * 14
list.groups: [FMList.PLACES_PATH, FMList.APPS_PATH, FMList.CLOUD_PATH, FMList.BOOKMARKS_PATH, FMList.DRIVES_PATH, FMList.TAGS_PATH]
width: isCollapsed ? iconSize*2 : parent.width modal: !root.isWide
height: parent.height handleVisible: modal
Maui.PlacesSidebar
{
id: placesSidebar
Layout.fillHeight: true
Layout.fillWidth: true
onPlaceClicked: browser.openFolder(path)
list.groups: [FMList.PLACES_PATH, FMList.APPS_PATH, FMList.CLOUD_PATH, FMList.BOOKMARKS_PATH, FMList.DRIVES_PATH, FMList.TAGS_PATH]
// width: isCollapsed ? iconSize*2 : parent.width
// height: parent.height
}
} }
Browser
content: Browser
{ {
id: browserView id: browserView
anchors.fill: parent
} }
Component Component
......
...@@ -23,9 +23,10 @@ ColumnLayout ...@@ -23,9 +23,10 @@ ColumnLayout
Layout.fillHeight: true Layout.fillHeight: true
Layout.margins: 0 Layout.margins: 0
footBarOverlap: true footBarOverlap: true
altToolBars: isMobile altToolBars: true
floatingBar: true floatingBar: true
headBar.visible: true headBar.visible: true
headBar.drawBorder: false
menu:[ menu:[
Maui.MenuItem Maui.MenuItem
{ {
...@@ -123,7 +124,7 @@ ColumnLayout ...@@ -123,7 +124,7 @@ ColumnLayout
Layout.maximumHeight: control.height * 0.3 Layout.maximumHeight: control.height * 0.3
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.top: handle.bottom anchors.top: handle.bottom
source: !isMobile ? "Terminal.qml" : undefined // source: !isMobile ? "Terminal.qml" : undefined
} }
} }
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