2022-12-23 11:32:21 +08:00
|
|
|
import QtQuick 2.0
|
2023-03-17 17:25:50 +08:00
|
|
|
import QtQuick.Layouts 1.12
|
2023-12-11 16:13:53 +08:00
|
|
|
import org.ukui.quick.items 1.0 as UkuiItems
|
2023-03-20 15:33:32 +08:00
|
|
|
import org.ukui.menu.core 1.0
|
|
|
|
|
2023-12-11 16:13:53 +08:00
|
|
|
UkuiItems.StyleBackground {
|
|
|
|
paletteRole: UkuiItems.Theme.Dark
|
2023-04-08 18:42:31 +08:00
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
onClicked: {
|
|
|
|
if (fullScreenContent.visible) {
|
|
|
|
//执行全屏退出操作
|
|
|
|
forceActiveFocus();
|
|
|
|
mainWindow.hide();
|
|
|
|
} else {
|
2023-04-18 10:43:21 +08:00
|
|
|
folderLoader.isFolderOpened = false;
|
2023-04-08 18:42:31 +08:00
|
|
|
fullScreenContent.visible = true;
|
|
|
|
fullScreenContent.isContentShow = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-20 15:33:32 +08:00
|
|
|
|
2023-03-17 17:25:50 +08:00
|
|
|
ColumnLayout {
|
2022-12-23 11:32:21 +08:00
|
|
|
anchors.fill: parent
|
2023-03-17 17:25:50 +08:00
|
|
|
anchors.leftMargin: 35
|
|
|
|
anchors.rightMargin: 35
|
|
|
|
|
|
|
|
FullScreenHeader {
|
2023-04-08 18:42:31 +08:00
|
|
|
id: fullScreenHeader
|
2023-03-17 17:25:50 +08:00
|
|
|
Layout.preferredHeight: 130
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.maximumHeight: 130
|
2023-04-08 18:42:31 +08:00
|
|
|
searchOpacity: fullScreenContent.isContentShow ? 1 : 0
|
2023-03-17 17:25:50 +08:00
|
|
|
}
|
|
|
|
|
2023-04-08 18:42:31 +08:00
|
|
|
Item {
|
2023-03-17 17:25:50 +08:00
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2023-04-08 18:42:31 +08:00
|
|
|
|
|
|
|
FullScreenContent {
|
|
|
|
id: fullScreenContent
|
|
|
|
anchors.fill: parent
|
2023-04-18 10:43:21 +08:00
|
|
|
Component.onCompleted: folderLoader.turnPageFinished.connect(contentShowFinished)
|
|
|
|
Component.onDestruction: folderLoader.turnPageFinished.disconnect(contentShowFinished)
|
2023-04-08 18:42:31 +08:00
|
|
|
}
|
|
|
|
|
2023-04-18 10:43:21 +08:00
|
|
|
FullScreenFolder {
|
2023-04-08 18:42:31 +08:00
|
|
|
id: folderLoader
|
|
|
|
anchors.fill: parent
|
2023-04-18 10:43:21 +08:00
|
|
|
Component.onCompleted: fullScreenContent.openFolderSignal.connect(initFolder)
|
|
|
|
Component.onDestruction: fullScreenContent.openFolderSignal.disconnect(initFolder)
|
2023-04-08 18:42:31 +08:00
|
|
|
}
|
2023-03-17 17:25:50 +08:00
|
|
|
}
|
2022-12-23 11:32:21 +08:00
|
|
|
|
2023-03-17 17:25:50 +08:00
|
|
|
FullScreenFooter {
|
|
|
|
Layout.preferredHeight: 90
|
|
|
|
Layout.fillWidth: true
|
2022-12-23 11:32:21 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|