This commit is contained in:
朱子楚\zhuzi 2023-10-20 21:28:51 +08:00
parent 5f6d66b6ce
commit c6a43c41db
5 changed files with 15 additions and 3 deletions

View File

@ -254,7 +254,7 @@ FluWindow {
}
function handleDarkChanged(button){
if(FluTools.isMacos() || !FluTheme.enableAnimation){
if(!FluTheme.enableAnimation){
changeDark()
}else{
loader_reveal.sourceComponent = com_reveal

View File

@ -257,7 +257,7 @@ FluWindow {
}
function handleDarkChanged(button){
if(FluTools.isMacos() || !FluTheme.enableAnimation){
if(!FluTheme.enableAnimation){
changeDark()
}else{
loader_reveal.sourceComponent = com_reveal

@ -1 +1 @@
Subproject commit 125da5c8e1ab37ce87c863c7c336a27bf64cec54
Subproject commit 80f869adcaf7db76ba8088f2c16382dcd5feaafb

View File

@ -14,6 +14,7 @@ Window {
property bool fixSize: false
property Component loadingItem: com_loading
property var appBar: com_app_bar
flags: Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMinMaxButtonsHint | Qt.WindowCloseButtonHint
property color backgroundColor: {
if(active){
return FluTheme.dark ? Qt.rgba(26/255,34/255,40/255,1) : Qt.rgba(243/255,243/255,243/255,1)
@ -48,14 +49,19 @@ Window {
onVisibleChanged: {
lifecycle.onVisible(visible)
}
onVisibilityChanged: {
console.debug(visibility)
}
QtObject{
id:d
function changedStayTop(){
var visibility = window.visibility
if(window.stayTop){
window.flags = window.flags | Qt.WindowStaysOnTopHint
}else{
window.flags = window.flags &~ Qt.WindowStaysOnTopHint
}
window.visibility = visibility
}
}
Connections{

View File

@ -13,6 +13,7 @@ Window {
property bool fixSize: false
property Component loadingItem: com_loading
property var appBar: com_app_bar
flags: Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMinMaxButtonsHint | Qt.WindowCloseButtonHint
property color backgroundColor: {
if(active){
return FluTheme.dark ? Qt.rgba(26/255,34/255,40/255,1) : Qt.rgba(243/255,243/255,243/255,1)
@ -47,14 +48,19 @@ Window {
onVisibleChanged: {
lifecycle.onVisible(visible)
}
onVisibilityChanged: {
console.debug(visibility)
}
QtObject{
id:d
function changedStayTop(){
var visibility = window.visibility
if(window.stayTop){
window.flags = window.flags | Qt.WindowStaysOnTopHint
}else{
window.flags = window.flags &~ Qt.WindowStaysOnTopHint
}
window.visibility = visibility
}
}
Connections{