huangrunheng 2 лет назад
Родитель
Сommit
f8f6c9ed40
3 измененных файлов с 21 добавлено и 0 удалено
  1. 1 0
      module/gui/qml.qrc
  2. 15 0
      module/gui/qml/Component/Notity.qml
  3. 5 0
      module/gui/qml/MainWindow.qml

+ 1 - 0
module/gui/qml.qrc

@@ -35,5 +35,6 @@
         <file>qml/Component/RuleFile2.qml</file>
         <file>qml/Content/NotifyTest.qml</file>
         <file>qml/Content/TaskList.qml</file>
+        <file>qml/Component/Notity.qml</file>
     </qresource>
 </RCC>

+ 15 - 0
module/gui/qml/Component/Notity.qml

@@ -0,0 +1,15 @@
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Window
+import QtQuick.Controls
+import FluentUI
+
+FluContentDialog{
+    title:"全新GUI"
+    message:"我们打算在2024.1.1全面切换新到GUI: OASX"
+    negativeText:"了解"
+    positiveText:"详情"
+    onPositiveClicked:{
+        Qt.openUrlExternally('https://github.com/runhey/OASX')
+    }
+}

+ 5 - 0
module/gui/qml/MainWindow.qml

@@ -68,6 +68,9 @@ FluWindow {
 //            process_manager.create_all()
         }
     }
+    Notity{
+        id: notity
+    }
 
     FluNavigationView{
         id:nav_view
@@ -83,6 +86,8 @@ FluWindow {
             footerItems.navigationView = nav_view
             nav_view.setCurrentIndex(0)
             items.addFluPaneItems()
+
+            notity.open()
         }
     }
     Component.onCompleted:{