FluentUI/Gallery/res/qml/window/PageWindow.qml
yxdy a44db97aa3
Some checks failed
Gallery App Build / Windows (push) Has been cancelled
Gallery App Build / macOS (push) Has been cancelled
Gallery App Build / Ubuntu (push) Has been cancelled
init
2025-02-12 10:31:20 +08:00

39 lines
770 B
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import FluentUI.Controls
import FluentUI.impl
import Gallery
FramelessWindow {
property var argument
property alias infoBarManager: infobar_manager
id: window
width: 1000
height: 800
minimumWidth: 500
minimumHeight: 400
visible: true
windowEffect: Global.windowEffect
onInit:
(arg)=>{
argument = arg
}
onNewInit:
(arg)=>{
argument = arg
}
initialItem: {
if(argument){
return argument.url
}
return undefined
}
appBar.windowIcon: Item{}
InfoBarManager{
id: infobar_manager
target: window.contentItem
messageMaximumWidth: 380
}
}