35 lines
771 B
QML
35 lines
771 B
QML
import QtQuick 2.12
|
|
import org.ukui.menu.core 1.0
|
|
|
|
import AppUI 1.0 as AppUI
|
|
|
|
MenuMainWindow {
|
|
id: mainWindow
|
|
visible: true
|
|
|
|
Component.onCompleted: {
|
|
console.log("MenuMainWindow Completed.");
|
|
}
|
|
|
|
onIsFullScreenChanged: {
|
|
console.log("full screen", isFullScreen)
|
|
//loader.source = isFullScreen ? "qrc:/qml/FullScreenUI.qml" : "qrc:/qml/NormalUI.qml";
|
|
}
|
|
|
|
AppUI.NormalUI {
|
|
anchors.fill: mainWindow.contentItem;
|
|
transitions: Transition {
|
|
NumberAnimation {
|
|
easing.type: Easing.OutBounce;
|
|
properties: "width,height";
|
|
duration: 4000;
|
|
}
|
|
}
|
|
Behavior on width {
|
|
PropertyAnimation {
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|