This commit is contained in:
zhuzichu 2023-10-17 10:34:37 +08:00
parent 0030c44a6c
commit 3a775a8bb2
4 changed files with 6 additions and 15 deletions

View File

@ -15,7 +15,6 @@ FluWindow {
title: "FluentUI"
width: 1000
height: 640
closeDestory:false
minimumWidth: 520
minimumHeight: 200
launchMode: FluWindowType.SingleTask
@ -26,11 +25,6 @@ FluWindow {
id:viewmodel_settings
}
closeListener:function(event){
dialog_close.open()
event.accepted = false
}
FluEvent{
id:event_checkupdate
name: "checkUpdate"
@ -39,7 +33,6 @@ FluWindow {
}
}
Component.onCompleted: {
FluTools.setQuitOnLastWindowClosed(false)
tour.open()
checkUpdate(true)
FluEventBus.registerEvent(event_checkupdate)
@ -122,6 +115,7 @@ FluWindow {
showDark: true
z:7
darkClickListener:(button)=>handleDarkChanged(button)
closeClickListener: ()=>{dialog_close.open()}
}
Row{
z:8
@ -170,6 +164,7 @@ FluWindow {
}
darkText: Lang.dark_mode
showDark: true
closeClickListener: ()=>{dialog_close.open()}
darkClickListener:(button)=>handleDarkChanged(button)
z:7
}

View File

@ -18,7 +18,6 @@ FluWindow {
title: "FluentUI"
width: 1000
height: 640
closeDestory:false
minimumWidth: 520
minimumHeight: 200
launchMode: FluWindowType.SingleTask
@ -28,11 +27,6 @@ FluWindow {
id:viewmodel_settings
}
closeListener:function(event){
dialog_close.open()
event.accepted = false
}
FluEvent{
id:event_checkupdate
name: "checkUpdate"
@ -42,7 +36,6 @@ FluWindow {
}
Component.onCompleted: {
FluTools.setQuitOnLastWindowClosed(false)
tour.open()
checkUpdate(true)
FluEventBus.registerEvent(event_checkupdate)
@ -125,6 +118,7 @@ FluWindow {
showDark: true
z:7
darkClickListener:(button)=>handleDarkChanged(button)
closeClickListener: ()=>{dialog_close.open()}
}
Row{
z:8
@ -174,6 +168,7 @@ FluWindow {
darkText: Lang.dark_mode
showDark: true
darkClickListener:(button)=>handleDarkChanged(button)
closeClickListener: ()=>{dialog_close.open()}
z:7
}
FluNavigationView{

View File

@ -1,5 +1,6 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic
import FluentUI
ProgressBar{

View File

@ -1,6 +1,6 @@
import QtQuick
import QtQuick.Controls
import QtQuick.Shapes
import QtQuick.Controls.Basic
import FluentUI
ProgressBar{