This commit is contained in:
zhuzichu
2023-07-07 16:04:17 +08:00
parent 9223d5f937
commit 03771cd7c9
25 changed files with 75 additions and 55 deletions

View File

@ -10,6 +10,7 @@ Window {
Component.onCompleted: {
FluApp.init(app)
FluTheme.darkMode = FluDarkMode.System
FluTheme.enableAnimation = true
FluApp.routes = {
"/":"qrc:/example/qml/window/MainWindow.qml",
"/about":"qrc:/example/qml/window/AboutWindow.qml",

View File

@ -12,7 +12,7 @@ FluScrollablePage{
FluArea{
Layout.fillWidth: true
Layout.topMargin: 20
height: 210
height: 270
paddings: 10
ColumnLayout{
spacing:0
@ -72,6 +72,17 @@ FluScrollablePage{
FluTheme.nativeText = !FluTheme.nativeText
}
}
FluText{
text:"开启动画效果"
Layout.topMargin: 20
}
FluToggleSwitch{
Layout.topMargin: 5
checked: FluTheme.enableAnimation
onClicked: {
FluTheme.enableAnimation = !FluTheme.enableAnimation
}
}
}
}
CodeExpander{

View File

@ -220,7 +220,7 @@ CustomWindow {
}
function handleDarkChanged(button){
if(FluTools.isMacos()){
if(FluTools.isMacos() || !FluTheme.enableAnimation){
changeDark()
}else{
var target = window.contentItem