This commit is contained in:
朱子楚\zhuzi
2023-08-13 20:49:04 +08:00
parent 0b17d03f23
commit 7fe71c892b
2 changed files with 8 additions and 11 deletions

View File

@ -10,6 +10,12 @@ Window {
property var argument:({})
property var background : com_background
property Component loadingItem: com_loading
property color backgroundColor: {
if(active){
return FluTheme.dark ? Qt.rgba(26/255,34/255,40/255,1) : Qt.rgba(238/255,244/255,249/255,1)
}
return FluTheme.dark ? Qt.rgba(32/255,32/255,32/255,1) : Qt.rgba(243/255,243/255,243/255,1)
}
property var _pageRegister
property string _route
property var closeFunc: function(event){
@ -34,12 +40,7 @@ Window {
Component{
id:com_background
Rectangle{
color: {
if(active){
return FluTheme.dark ? Qt.rgba(26/255,34/255,40/255,1) : Qt.rgba(238/255,244/255,249/255,1)
}
return FluTheme.dark ? Qt.rgba(32/255,32/255,32/255,1) : Qt.rgba(243/255,243/255,243/255,1)
}
color: window.backgroundColor
}
}
Loader{