This commit is contained in:
朱子楚\zhuzi 2023-06-10 22:46:17 +08:00
parent b3ca045936
commit 05b41f3383

View File

@ -243,6 +243,7 @@ CustomWindow {
}
function handleDarkChanged(button){
if(Screen.devicePixelRatio===1){
var pos = button.mapToItem(window.contentItem,0,0)
var mouseX = pos.x
var mouseY = pos.y
@ -262,6 +263,13 @@ CustomWindow {
anim_radius.enabled = true
canvas.radius = canvas.maxRadius
})
}else{
if(FluTheme.dark){
FluTheme.darkMode = FluDarkMode.Light
}else{
FluTheme.darkMode = FluDarkMode.Dark
}
}
}
}