ukui-menu/qml/AppUI/FullScreenUI.qml

61 lines
1.8 KiB
QML
Raw Normal View History

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-03-20 15:33:32 +08:00
import AppControls2 1.0 as AppControls2
import org.ukui.menu.core 1.0
AppControls2.StyleBackground {
paletteRole: Palette.Dark
MouseArea {
anchors.fill: parent
onClicked: {
if (fullScreenContent.visible) {
//执行全屏退出操作
forceActiveFocus();
mainWindow.hide();
} else {
2023-04-18 10:43:21 +08:00
folderLoader.isFolderOpened = false;
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 {
id: fullScreenHeader
2023-03-17 17:25:50 +08:00
Layout.preferredHeight: 130
Layout.fillWidth: true
Layout.maximumHeight: 130
searchOpacity: fullScreenContent.isContentShow ? 1 : 0
2023-03-17 17:25:50 +08:00
}
Item {
2023-03-17 17:25:50 +08:00
Layout.fillHeight: true
Layout.fillWidth: true
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-18 10:43:21 +08:00
FullScreenFolder {
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-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
}
}
}