mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
b3ca045936
commit
05b41f3383
@ -243,6 +243,7 @@ CustomWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleDarkChanged(button){
|
function handleDarkChanged(button){
|
||||||
|
if(Screen.devicePixelRatio===1){
|
||||||
var pos = button.mapToItem(window.contentItem,0,0)
|
var pos = button.mapToItem(window.contentItem,0,0)
|
||||||
var mouseX = pos.x
|
var mouseX = pos.x
|
||||||
var mouseY = pos.y
|
var mouseY = pos.y
|
||||||
@ -262,6 +263,13 @@ CustomWindow {
|
|||||||
anim_radius.enabled = true
|
anim_radius.enabled = true
|
||||||
canvas.radius = canvas.maxRadius
|
canvas.radius = canvas.maxRadius
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
if(FluTheme.dark){
|
||||||
|
FluTheme.darkMode = FluDarkMode.Light
|
||||||
|
}else{
|
||||||
|
FluTheme.darkMode = FluDarkMode.Dark
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user