This commit is contained in:
朱子楚\zhuzi
2023-03-28 21:37:10 +08:00
parent b70a982586
commit a298f43388
46 changed files with 191 additions and 173 deletions

View File

@ -10,7 +10,8 @@ Window {
color: "#00000000"
Component.onCompleted: {
FluApp.init(app,properties)
FluTheme.isDark = false
FluTheme.frameless = ("windows" === Qt.platform.os)
FluTheme.dark = false
FluApp.routes = {
"/":"qrc:/page/MainPage.qml",
"/about":"qrc:/page/AboutPage.qml",

View File

@ -26,7 +26,7 @@ FluScrollablePage{
iconSource: FluentIcons.AcceptMedium
iconSize: 15
visible: modelData === FluTheme.primaryColor
color: FluTheme.isDark ? Qt.rgba(0,0,0,1) : Qt.rgba(1,1,1,1)
color: FluTheme.dark ? Qt.rgba(0,0,0,1) : Qt.rgba(1,1,1,1)
}
MouseArea{
id:mouse_item
@ -44,9 +44,9 @@ FluScrollablePage{
Layout.topMargin: 20
}
FluToggleSwitch{
selected: FluTheme.isDark
selected: FluTheme.dark
clickFunc:function(){
FluTheme.isDark = !FluTheme.isDark
FluTheme.dark = !FluTheme.dark
}
}
FluText{
@ -54,9 +54,9 @@ FluScrollablePage{
Layout.topMargin: 20
}
FluToggleSwitch{
selected: FluTheme.isNativeText
selected: FluTheme.nativeText
clickFunc:function(){
FluTheme.isNativeText = !FluTheme.isNativeText
FluTheme.nativeText = !FluTheme.nativeText
}
}
}

View File

@ -57,7 +57,7 @@ FluWindow {
selectedTextColor: Qt.rgba(51,153,255,1)
color:FluColors.Black
selectionColor: {
if(FluTheme.isDark){
if(FluTheme.dark){
return FluTheme.primaryColor.lighter
}else{
return FluTheme.primaryColor.dark
@ -82,7 +82,7 @@ FluWindow {
bottom: layout_bottom.top
margins: 10
}
color: FluTheme.isDark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(245/255,245/255,245/255,1)
color: FluTheme.dark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(245/255,245/255,245/255,1)
ListView{
id:list_message
anchors.fill: parent