mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 21:37:04 +08:00
update
This commit is contained in:
parent
5f6d66b6ce
commit
c6a43c41db
@ -254,7 +254,7 @@ FluWindow {
|
||||
}
|
||||
|
||||
function handleDarkChanged(button){
|
||||
if(FluTools.isMacos() || !FluTheme.enableAnimation){
|
||||
if(!FluTheme.enableAnimation){
|
||||
changeDark()
|
||||
}else{
|
||||
loader_reveal.sourceComponent = com_reveal
|
||||
|
@ -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
|
@ -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{
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user