This commit is contained in:
朱子楚\zhuzi
2023-08-07 21:46:54 +08:00
parent e4fb9989d0
commit f8340bdf59
5 changed files with 186 additions and 89 deletions

View File

@ -16,7 +16,6 @@ FluScrollablePage{
{title:"Save",description: "Save your changes.",target:()=>btn_save},
{title:"Other Actions",description: "Click to see other actions.",target:()=>btn_more}
]
}
FluArea{
@ -45,14 +44,23 @@ FluScrollablePage{
FluButton{
id:btn_upload
text:"Upload"
onClicked: {
showInfo("Upload")
}
}
FluFilledButton{
id:btn_save
text:"Save"
onClicked: {
showInfo("Save")
}
}
FluIconButton{
id:btn_more
iconSource: FluentIcons.More
onClicked: {
showInfo("More")
}
}
}
}

View File

@ -27,6 +27,7 @@ CustomWindow {
Component.onCompleted: {
FluTools.setQuitOnLastWindowClosed(false)
tour.open()
}
SystemTrayIcon {
@ -175,7 +176,8 @@ CustomWindow {
title:"FluentUI"
onLogoClicked:{
clickCount += 1
if(clickCount === 1){
showSuccess("点击%1次".arg(clickCount))
if(clickCount === 5){
loader.reload()
flipable.flipped = true
clickCount = 0
@ -259,4 +261,12 @@ CustomWindow {
}
}
FluTour{
id:tour
steps:[
{title:"夜间模式",description: "这里可以切换夜间模式.",target:()=>app_bar_front.darkButton()},
{title:"隐藏彩蛋",description: "多点几下试试!!",target:()=>nav_view.logoButton()}
]
}
}