runhey 3 лет назад
Родитель
Сommit
2d5f55dbd6
81 измененных файлов с 10025 добавлено и 9 удалено
  1. 234 0
      module/gui/FluentUI/Controls/ColorPicker/ColorPicker.qml
  2. 16 0
      module/gui/FluentUI/Controls/ColorPicker/Content/Checkerboard.qml
  3. 44 0
      module/gui/FluentUI/Controls/ColorPicker/Content/ColorSlider.qml
  4. 39 0
      module/gui/FluentUI/Controls/ColorPicker/Content/NumberBox.qml
  5. 18 0
      module/gui/FluentUI/Controls/ColorPicker/Content/PanelBorder.qml
  6. 62 0
      module/gui/FluentUI/Controls/ColorPicker/Content/SBPicker.qml
  7. 144 0
      module/gui/FluentUI/Controls/FluAppBar.qml
  8. 43 0
      module/gui/FluentUI/Controls/FluArea.qml
  9. 156 0
      module/gui/FluentUI/Controls/FluAutoSuggestBox.qml
  10. 78 0
      module/gui/FluentUI/Controls/FluBadge.qml
  11. 100 0
      module/gui/FluentUI/Controls/FluBreadcrumbBar.qml
  12. 61 0
      module/gui/FluentUI/Controls/FluButton.qml
  13. 120 0
      module/gui/FluentUI/Controls/FluCalendarPicker.qml
  14. 473 0
      module/gui/FluentUI/Controls/FluCalendarView.qml
  15. 136 0
      module/gui/FluentUI/Controls/FluCarousel.qml
  16. 110 0
      module/gui/FluentUI/Controls/FluCheckBox.qml
  17. 79 0
      module/gui/FluentUI/Controls/FluColorPicker.qml
  18. 31 0
      module/gui/FluentUI/Controls/FluColorView.qml
  19. 7 0
      module/gui/FluentUI/Controls/FluComboBox.qml
  20. 154 0
      module/gui/FluentUI/Controls/FluContentDialog.qml
  21. 45 0
      module/gui/FluentUI/Controls/FluContentPage.qml
  22. 421 0
      module/gui/FluentUI/Controls/FluDatePicker.qml
  23. 15 0
      module/gui/FluentUI/Controls/FluDivider.qml
  24. 96 0
      module/gui/FluentUI/Controls/FluDropDownButton.qml
  25. 108 0
      module/gui/FluentUI/Controls/FluExpander.qml
  26. 53 0
      module/gui/FluentUI/Controls/FluFilledButton.qml
  27. 117 0
      module/gui/FluentUI/Controls/FluFlipView.qml
  28. 23 0
      module/gui/FluentUI/Controls/FluFocusRectangle.qml
  29. 18 0
      module/gui/FluentUI/Controls/FluIcon.qml
  30. 80 0
      module/gui/FluentUI/Controls/FluIconButton.qml
  31. 233 0
      module/gui/FluentUI/Controls/FluInfoBar.qml
  32. 65 0
      module/gui/FluentUI/Controls/FluItem.qml
  33. 220 0
      module/gui/FluentUI/Controls/FluMediaPlayer.qml
  34. 64 0
      module/gui/FluentUI/Controls/FluMenu.qml
  35. 58 0
      module/gui/FluentUI/Controls/FluMenuItem.qml
  36. 89 0
      module/gui/FluentUI/Controls/FluMultilineTextBox.qml
  37. 914 0
      module/gui/FluentUI/Controls/FluNavigationView.qml
  38. 9 0
      module/gui/FluentUI/Controls/FluObject.qml
  39. 110 0
      module/gui/FluentUI/Controls/FluPagination.qml
  40. 20 0
      module/gui/FluentUI/Controls/FluPaneItem.qml
  41. 9 0
      module/gui/FluentUI/Controls/FluPaneItemEmpty.qml
  42. 13 0
      module/gui/FluentUI/Controls/FluPaneItemExpander.qml
  43. 10 0
      module/gui/FluentUI/Controls/FluPaneItemHeader.qml
  44. 9 0
      module/gui/FluentUI/Controls/FluPaneItemSeparator.qml
  45. 120 0
      module/gui/FluentUI/Controls/FluPasswordBox.qml
  46. 104 0
      module/gui/FluentUI/Controls/FluPivot.qml
  47. 9 0
      module/gui/FluentUI/Controls/FluPivotItem.qml
  48. 50 0
      module/gui/FluentUI/Controls/FluProgressBar.qml
  49. 79 0
      module/gui/FluentUI/Controls/FluProgressRing.qml
  50. 103 0
      module/gui/FluentUI/Controls/FluRadioButton.qml
  51. 60 0
      module/gui/FluentUI/Controls/FluRatingControl.qml
  52. 69 0
      module/gui/FluentUI/Controls/FluRectangle.qml
  53. 194 0
      module/gui/FluentUI/Controls/FluScrollBar.qml
  54. 66 0
      module/gui/FluentUI/Controls/FluScrollablePage.qml
  55. 68 0
      module/gui/FluentUI/Controls/FluShadow.qml
  56. 16 0
      module/gui/FluentUI/Controls/FluSingleton.qml
  57. 140 0
      module/gui/FluentUI/Controls/FluSlider.qml
  58. 108 0
      module/gui/FluentUI/Controls/FluStatusView.qml
  59. 350 0
      module/gui/FluentUI/Controls/FluTabView.qml
  60. 228 0
      module/gui/FluentUI/Controls/FluTableView.qml
  61. 65 0
      module/gui/FluentUI/Controls/FluText.qml
  62. 121 0
      module/gui/FluentUI/Controls/FluTextBox.qml
  63. 59 0
      module/gui/FluentUI/Controls/FluTextBoxBackground.qml
  64. 53 0
      module/gui/FluentUI/Controls/FluTextBoxMenu.qml
  65. 48 0
      module/gui/FluentUI/Controls/FluTextButton.qml
  66. 414 0
      module/gui/FluentUI/Controls/FluTimePicker.qml
  67. 101 0
      module/gui/FluentUI/Controls/FluToggleButton.qml
  68. 108 0
      module/gui/FluentUI/Controls/FluToggleSwitch.qml
  69. 23 0
      module/gui/FluentUI/Controls/FluTooltip.qml
  70. 313 0
      module/gui/FluentUI/Controls/FluTreeView.qml
  71. 113 0
      module/gui/FluentUI/Controls/FluWindow.qml
  72. 144 0
      module/gui/FluentUI/Controls/FluWindowResize.qml
  73. BIN
      module/gui/FluentUI/Font/Segoe_Fluent_Icons.ttf
  74. 1662 0
      module/gui/FluentUI/fluentui.qmltypes
  75. BIN
      module/gui/FluentUI/fluentuiplugin.dll
  76. 79 0
      module/gui/FluentUI/qmldir
  77. 2 3
      module/gui/fluent_app.py
  78. 5 0
      module/gui/oas.pyproject
  79. 6 0
      module/gui/oas.qrc
  80. 28 0
      module/gui/qml/MainWindow.qml
  81. 13 6
      module/gui/qml/app.qml

+ 234 - 0
module/gui/FluentUI/Controls/ColorPicker/ColorPicker.qml

@@ -0,0 +1,234 @@
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Controls
+import "Content"
+
+Rectangle {
+    id: colorPicker
+    property color colorValue: "transparent"
+    property bool enableAlphaChannel: true
+    property bool enableDetails: true
+    property int colorHandleRadius : 8
+    property color _changingColorValue : _hsla(hueSlider.value, sbPicker.saturation,sbPicker.brightness, alphaSlider.value)
+    on_ChangingColorValueChanged: {
+        colorValue = _changingColorValue
+    }
+
+    signal colorChanged(color changedColor)
+
+    implicitWidth: picker.implicitWidth
+    implicitHeight: picker.implicitHeight
+    color: "#00000000"
+    clip: true
+
+
+    RowLayout {
+        id: picker
+        anchors.top: parent.top
+        anchors.left: parent.left
+        anchors.right: parent.right
+        anchors.rightMargin: colorHandleRadius
+        anchors.bottom: parent.bottom
+        spacing: 0
+
+
+        SBPicker {
+            id: sbPicker
+            Layout.fillWidth: true
+            Layout.fillHeight: true
+            Layout.minimumWidth: 200
+            Layout.minimumHeight: 200
+            hueColor: {
+                var v = 1.0-hueSlider.value
+                if(0.0 <= v && v < 0.16) {
+                    return Qt.rgba(1.0, 0.0, v/0.16, 1.0)
+                } else if(0.16 <= v && v < 0.33) {
+                    return Qt.rgba(1.0 - (v-0.16)/0.17, 0.0, 1.0, 1.0)
+                } else if(0.33 <= v && v < 0.5) {
+                    return Qt.rgba(0.0, ((v-0.33)/0.17), 1.0, 1.0)
+                } else if(0.5 <= v && v < 0.76) {
+                    return Qt.rgba(0.0, 1.0, 1.0 - (v-0.5)/0.26, 1.0)
+                } else if(0.76 <= v && v < 0.85) {
+                    return Qt.rgba((v-0.76)/0.09, 1.0, 0.0, 1.0)
+                } else if(0.85 <= v && v <= 1.0) {
+                    return Qt.rgba(1.0, 1.0 - (v-0.85)/0.15, 0.0, 1.0)
+                } else {
+                    return "red"
+                }
+            }
+        }
+
+        Item {
+            id: huePicker
+            width: 12
+            Layout.fillHeight: true
+            Layout.topMargin: colorHandleRadius
+            Layout.bottomMargin: colorHandleRadius
+
+            Rectangle {
+                anchors.fill: parent
+                id: colorBar
+                gradient: Gradient {
+                    GradientStop { position: 1.0;  color: "#FF0000" }
+                    GradientStop { position: 0.85; color: "#FFFF00" }
+                    GradientStop { position: 0.76; color: "#00FF00" }
+                    GradientStop { position: 0.5;  color: "#00FFFF" }
+                    GradientStop { position: 0.33; color: "#0000FF" }
+                    GradientStop { position: 0.16; color: "#FF00FF" }
+                    GradientStop { position: 0.0;  color: "#FF0000" }
+                }
+            }
+            ColorSlider {
+                id: hueSlider; anchors.fill: parent
+            }
+        }
+
+        Item {
+            id: alphaPicker
+            visible: enableAlphaChannel
+            width: 12
+            Layout.leftMargin: 4
+            Layout.fillHeight: true
+            Layout.topMargin: colorHandleRadius
+            Layout.bottomMargin: colorHandleRadius
+            Checkerboard { cellSide: 4 }
+            Rectangle {
+                anchors.fill: parent
+                gradient: Gradient {
+                    GradientStop { position: 0.0; color: "#FF000000" }
+                    GradientStop { position: 1.0; color: "#00000000" }
+                }
+            }
+            ColorSlider {
+                id: alphaSlider; anchors.fill: parent
+            }
+        }
+
+        Column {
+            id: detailColumn
+            Layout.leftMargin: 4
+            Layout.fillHeight: true
+            Layout.topMargin: colorHandleRadius
+            Layout.bottomMargin: colorHandleRadius
+            Layout.alignment: Qt.AlignRight
+            visible: enableDetails
+
+            PanelBorder {
+                width: parent.width
+                height: 30
+                visible: enableAlphaChannel
+                Checkerboard { cellSide: 5 }
+                Rectangle {
+                    width: parent.width; height: 30
+                    border.width: 1; border.color: "black"
+                    color: colorPicker.colorValue
+                }
+            }
+
+            Item {
+                width: parent.width
+                height: 1
+            }
+
+
+            PanelBorder {
+                id: colorEditBox
+                height: 15; width: parent.width
+                TextInput {
+                    anchors.fill: parent
+                    color: "#AAAAAA"
+                    selectionColor: "#FF7777AA"
+                    font.pixelSize: 11
+                    maximumLength: 9
+                    focus: false
+                    text: _fullColorString(colorPicker.colorValue, alphaSlider.value)
+                    selectByMouse: true
+                }
+            }
+
+            Item {
+                width: parent.width
+                height: 8
+            }
+
+            Column {
+                width: parent.width
+                spacing: 1
+                NumberBox { caption: "H:"; value: hueSlider.value.toFixed(2) }
+                NumberBox { caption: "S:"; value: sbPicker.saturation.toFixed(2) }
+                NumberBox { caption: "B:"; value: sbPicker.brightness.toFixed(2) }
+            }
+
+            Item {
+                width: parent.width
+                height: 8
+            }
+
+            Column {
+                width: parent.width
+                spacing: 1
+                NumberBox {
+                    caption: "R:"
+                    value: _getChannelStr(colorPicker.colorValue, 0)
+                    min: 0; max: 255
+                }
+                NumberBox {
+                    caption: "G:"
+                    value: _getChannelStr(colorPicker.colorValue, 1)
+                    min: 0; max: 255
+                }
+                NumberBox {
+                    caption: "B:"
+                    value: _getChannelStr(colorPicker.colorValue, 2)
+                    min: 0; max: 255
+                }
+            }
+
+            Item{
+                width: parent.width
+                height: 1
+            }
+
+            NumberBox {
+                visible: enableAlphaChannel
+                caption: "A:"; value: Math.ceil(alphaSlider.value*255)
+                min: 0; max: 255
+            }
+        }
+    }
+
+    function _hsla(h, s, b, a) {
+        var lightness = (2 - s)*b
+        var satHSL = s*b/((lightness <= 1) ? lightness : 2 - lightness)
+        lightness /= 2
+
+        var c = Qt.hsla(h, satHSL, lightness, a)
+
+        colorChanged(c)
+
+        return c
+    }
+
+    function _rgb(rgb, a) {
+
+        var c = Qt.rgba(rgb.r, rgb.g, rgb.b, a)
+
+        colorChanged(c)
+
+        return c
+    }
+
+    function _fullColorString(clr, a) {
+        return "#" + ((Math.ceil(a*255) + 256).toString(16).substr(1, 2) + clr.toString().substr(1, 6)).toUpperCase()
+    }
+
+    function _getChannelStr(clr, channelIdx) {
+        return parseInt(clr.toString().substr(channelIdx*2 + 1, 2), 16)
+    }
+
+    function setColor(color) {
+        var c = Qt.tint(color, "transparent")
+        alphaSlider.setValue(c.a)
+        colorPicker.colorValue = c
+    }
+}

+ 16 - 0
module/gui/FluentUI/Controls/ColorPicker/Content/Checkerboard.qml

@@ -0,0 +1,16 @@
+import QtQuick
+Grid {
+    id: root
+    property int cellSide: 5
+    anchors.fill: parent
+    rows: height/cellSide; columns: width/cellSide
+    clip: true
+    Repeater {
+        model: root.columns*root.rows
+        Rectangle {
+            width: root.cellSide; height: root.cellSide
+            color: (index%2 == 0) ? "gray" : "white"
+        }
+    }
+}
+

+ 44 - 0
module/gui/FluentUI/Controls/ColorPicker/Content/ColorSlider.qml

@@ -0,0 +1,44 @@
+import QtQuick
+
+Item {
+    property int cursorHeight: 7
+    property real value: (1 - pickerCursor.y/height)
+    width: 15
+    height: 300
+    Item {
+        id: pickerCursor
+        width: parent.width
+        Rectangle {
+            x: -3; y: -height*0.5
+            width: parent.width + 4; height: cursorHeight
+            border.color: "black"; border.width: 1
+            color: "transparent"
+            Rectangle {
+                anchors.fill: parent; anchors.margins: 2
+                border.color: "white"; border.width: 1
+                color: "transparent"
+            }
+        }
+    }
+    MouseArea {
+        y: -Math.round(cursorHeight/2)
+        height: parent.height+cursorHeight
+        anchors.left: parent.left
+        preventStealing: true
+        anchors.right: parent.right
+        function handleMouse(mouse) {
+            if (mouse.buttons & Qt.LeftButton) {
+                pickerCursor.y = Math.max(0, Math.min(height, mouse.y)-cursorHeight)
+            }
+        }
+        onPositionChanged:(mouse)=> {
+            handleMouse(mouse)
+        }
+        onPressed:(mouse)=> handleMouse(mouse)
+    }
+
+    function setValue(val) {
+        pickerCursor.y = height * (1 - val)
+    }
+}
+

+ 39 - 0
module/gui/FluentUI/Controls/ColorPicker/Content/NumberBox.qml

@@ -0,0 +1,39 @@
+import QtQuick
+
+Row {
+    property alias  caption: captionBox.text
+    property alias  value: inputBox.text
+    property alias  min: numValidator.bottom
+    property alias  max: numValidator.top
+    property alias  decimals: numValidator.decimals
+
+    width: 80;
+    height: 15
+    spacing: 4
+    //anchors.margins: 2
+    Text {
+        id: captionBox
+        width: 18; height: parent.height
+        color: "#AAAAAA"
+        font.pixelSize: 11; font.bold: true
+    }
+    PanelBorder {
+        height: parent.height
+        TextInput {
+            id: inputBox
+            color: "#AAAAAA"; selectionColor: "#FF7777AA"
+            font.pixelSize: 11            
+            maximumLength: 10
+            focus: false
+            readOnly: true
+            selectByMouse: true
+            validator: DoubleValidator {
+                id: numValidator
+                bottom: 0; top: 1; decimals: 2
+                notation: DoubleValidator.StandardNotation
+            }
+        }
+    }
+}
+
+

+ 18 - 0
module/gui/FluentUI/Controls/ColorPicker/Content/PanelBorder.qml

@@ -0,0 +1,18 @@
+import QtQuick
+
+Rectangle {
+    width : 40; height : 15; radius: 2
+    border.width: 1; border.color: "#FF101010"
+    color: "transparent"
+    anchors.leftMargin: 1; anchors.topMargin: 3
+    clip: true
+    Rectangle {
+        anchors.fill: parent; radius: 2
+        anchors.leftMargin: -1; anchors.topMargin: -1
+        anchors.rightMargin: 0; anchors.bottomMargin: 0
+        border.width: 1; border.color: "#FF525255"
+        color: "transparent"
+    }
+}
+
+

+ 62 - 0
module/gui/FluentUI/Controls/ColorPicker/Content/SBPicker.qml

@@ -0,0 +1,62 @@
+import QtQuick
+
+Item {
+    id: root
+    property color hueColor : "blue"
+    property real saturation : pickerCursor.x/(width-2*r)
+    property real brightness : 1 - pickerCursor.y/(height-2*r)
+    property int r : colorHandleRadius
+
+    Rectangle {
+        x : r
+        y : r + parent.height - 2 * r
+        rotation: -90
+        transformOrigin: Item.TopLeft
+        width: parent.height - 2 * r
+        height: parent.width - 2 * r
+        gradient: Gradient {
+            GradientStop { position: 0.0; color: "#FFFFFF" }
+            GradientStop { position: 1.0; color: root.hueColor }
+        }
+    }
+    Rectangle {
+        x: r
+        y: r
+        width: parent.width - 2 * r
+        height: parent.height - 2 *  r
+        gradient: Gradient {
+            GradientStop { position: 1.0; color: "#FF000000" }
+            GradientStop { position: 0.0; color: "#00000000" }
+        }
+    }
+    Item {
+        id: pickerCursor
+        Rectangle {
+            width: r*2; height: r*2
+            radius: r
+            border.color: "black"; border.width: 2
+            color: "transparent"
+            Rectangle {
+                anchors.fill: parent; anchors.margins: 2;
+                border.color: "white"; border.width: 2
+                radius: width/2
+                color: "transparent"
+            }
+        }
+    }
+    MouseArea {
+        anchors.fill: parent
+        x: r
+        y: r
+        preventStealing: true
+        function handleMouse(mouse) {
+            if (mouse.buttons & Qt.LeftButton) {
+                pickerCursor.x = Math.max(0,Math.min(mouse.x - r,width-2*r));
+                pickerCursor.y = Math.max(0,Math.min(mouse.y - r,height-2*r));
+            }
+        }
+        onPositionChanged:(mouse)=> handleMouse(mouse)
+        onPressed:(mouse)=> handleMouse(mouse)
+    }
+}
+

+ 144 - 0
module/gui/FluentUI/Controls/FluAppBar.qml

@@ -0,0 +1,144 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Window
+import QtQuick.Layouts
+import FluentUI
+
+Rectangle{
+
+    property string title: ""
+    property string darkText : "夜间模式"
+    property string minimizeText : "最小化"
+    property string restoreText : "向下还原"
+    property string maximizeText : "最大化"
+    property string closeText : "关闭"
+    property color textColor: FluTheme.dark ? "#FFFFFF" : "#000000"
+    property color minimizeNormalColor: Qt.rgba(0,0,0,0)
+    property color minimizeHoverColor: FluTheme.dark ? Qt.rgba(1,1,1,0.1) : Qt.rgba(0,0,0,0.06)
+    property color maximizeNormalColor: Qt.rgba(0,0,0,0)
+    property color maximizeHoverColor: FluTheme.dark ? Qt.rgba(1,1,1,0.1) : Qt.rgba(0,0,0,0.06)
+    property color closeNormalColor: Qt.rgba(0,0,0,0)
+    property color closeHoverColor:  Qt.rgba(251/255,115/255,115/255,1)
+    property bool showDark: false
+    property color borerlessColor : FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+
+    Item{
+        id:d
+        property var win: Window.window
+        property bool isRestore: win && Window.Maximized === win.visibility
+        property bool resizable: win && !(win.minimumHeight === win.maximumHeight && win.maximumWidth === win.minimumWidth)
+    }
+
+    id:root
+    color: Qt.rgba(0,0,0,0)
+    visible: FluTheme.frameless
+    height: visible ? 30 : 0
+    opacity: visible
+    z: 65535
+
+    TapHandler {
+        onTapped: if (tapCount === 2) toggleMaximized()
+        gesturePolicy: TapHandler.DragThreshold
+    }
+
+    DragHandler {
+        target: null
+        grabPermissions: TapHandler.CanTakeOverFromAnything
+        onActiveChanged: if (active) { d.win.startSystemMove(); }
+    }
+
+    FluText {
+        text: title
+        anchors{
+            verticalCenter: parent.verticalCenter
+            left: parent.left
+            leftMargin: 10
+        }
+        color:root.textColor
+        fontStyle: FluText.Title
+        font.pixelSize: 14
+        font.bold: true
+    }
+
+    RowLayout{
+        anchors.right: parent.right
+        height: root.height
+        spacing: 0
+
+        RowLayout{
+            Layout.alignment: Qt.AlignVCenter
+            Layout.rightMargin: 5
+            visible: showDark
+            spacing: 5
+            FluText{
+                text:darkText
+                color:root.textColor
+            }
+            FluToggleSwitch{
+                selected: FluTheme.dark
+                clickFunc:function(){
+                    if(FluTheme.dark){
+                        FluTheme.darkMode = FluDarkMode.Light
+                    }else{
+                        FluTheme.darkMode = FluDarkMode.Dark
+                    }
+                }
+            }
+        }
+
+        FluIconButton{
+            width: 40
+            height: 30
+            iconSource : FluentIcons.ChromeMinimize
+            Layout.alignment: Qt.AlignVCenter
+            iconSize: 11
+            text:minimizeText
+            radius: 0
+            iconColor: root.textColor
+            color: hovered ? minimizeHoverColor : minimizeNormalColor
+            onClicked: {
+                d.win.showMinimized()
+            }
+        }
+        FluIconButton{
+            width: 40
+            height: 30
+            iconSource : d.isRestore  ? FluentIcons.ChromeRestore : FluentIcons.ChromeMaximize
+            color: hovered ? maximizeHoverColor : maximizeNormalColor
+            Layout.alignment: Qt.AlignVCenter
+            visible: d.resizable
+            radius: 0
+            iconColor: root.textColor
+            text:d.isRestore?restoreText:maximizeText
+            iconSize: 11
+            onClicked: {
+                toggleMaximized()
+            }
+        }
+        FluIconButton{
+            iconSource : FluentIcons.ChromeClose
+            Layout.alignment: Qt.AlignVCenter
+            text:closeText
+            width: 40
+            height: 30
+            radius: 0
+            iconSize: 10
+            iconColor: hovered ? Qt.rgba(1,1,1,1) : root.textColor
+            color:hovered ? closeHoverColor : closeNormalColor
+            onClicked: {
+                d.win.close()
+            }
+        }
+    }
+
+    function toggleMaximized() {
+        if(!d.resizable)
+            return
+        if (d.win.visibility === Window.Maximized) {
+            d.win.showNormal();
+        } else {
+            d.win.showMaximized();
+        }
+    }
+
+}

+ 43 - 0
module/gui/FluentUI/Controls/FluArea.qml

@@ -0,0 +1,43 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Window
+import FluentUI
+
+Rectangle {
+
+    default property alias content: container.data
+    property int paddings : 0
+    property int leftPadding : 0
+    property int rightPadding : 0
+    property int topPadding : 0
+    property int bottomPadding : 0
+
+    radius: 4
+    color: FluTheme.dark ? Window.active ?  Qt.rgba(38/255,44/255,54/255,1) : Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1)
+    border.color: FluTheme.dark ? Window.active ? Qt.rgba(55/255,55/255,55/255,1):Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
+    border.width: 1
+    implicitHeight: height
+    implicitWidth: width
+
+    Behavior on color{
+        ColorAnimation {
+            duration: 300
+        }
+    }
+
+    Behavior on border.color{
+        ColorAnimation {
+            duration: 300
+        }
+    }
+
+    Item {
+        id: container
+        anchors.fill: parent
+        anchors.leftMargin: Math.max(paddings,leftPadding)
+        anchors.rightMargin: Math.max(paddings,rightPadding)
+        anchors.topMargin: Math.max(paddings,topPadding)
+        anchors.bottomMargin: Math.max(paddings,bottomPadding)
+    }
+
+}

+ 156 - 0
module/gui/FluentUI/Controls/FluAutoSuggestBox.qml

@@ -0,0 +1,156 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+FluTextBox{
+
+    property var items:[]
+    property string emptyText: "没有找到结果"
+    property int autoSuggestBoxReplacement: FluentIcons.Search
+    signal itemClicked(var data)
+    signal handleClicked
+
+    id:control
+    width: 300
+
+    Component.onCompleted: {
+        loadData()
+    }
+
+    QtObject{
+        id:d
+        property bool flagVisible: true
+    }
+
+    Popup{
+        id:control_popup
+        y:control.height
+        focus: false
+        enter: Transition {
+            NumberAnimation {
+                property: "y"
+                from:0
+                to:control_popup.y
+                duration: 150
+            }
+            NumberAnimation {
+                property: "opacity"
+                from:0
+                to:1
+                duration: 150
+            }
+        }
+        onVisibleChanged: {
+            if(visible){
+                list_view.currentIndex = -1
+            }
+        }
+        background: Rectangle{
+            width: control.width
+            radius: 4
+            FluShadow{
+                radius: 4
+            }
+            color: FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(248/255,250/255,253/255,1)
+            height: 38*Math.min(Math.max(list_view.count,1),8)
+            ListView{
+                id:list_view
+                anchors.fill: parent
+                clip: true
+                currentIndex: -1
+                ScrollBar.vertical: FluScrollBar {}
+                header: Item{
+                    width: control.width
+                    height: visible ? 38 : 0
+                    visible: list_view.count === 0
+                    FluText{
+                        text:emptyText
+                        anchors{
+                            verticalCenter: parent.verticalCenter
+                            left: parent.left
+                            leftMargin: 10
+                        }
+                    }
+                }
+                delegate:Control{
+                    width: control.width
+                    padding:10
+                    background: Rectangle{
+                        color:  {
+                            if(list_view.currentIndex === index){
+                                return FluTheme.dark ? Qt.rgba(63/255,60/255,61/255,1) : Qt.rgba(237/255,237/255,242/255,1)
+                            }
+                            if(hovered){
+                                return FluTheme.dark ? Qt.rgba(63/255,60/255,61/255,1) : Qt.rgba(237/255,237/255,242/255,1)
+                            }
+                            return FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(0,0,0,0)
+                        }
+                        MouseArea{
+                            id:mouse_area
+                            anchors.fill: parent
+                            Connections{
+                                target: control
+                                function onHandleClicked(){
+                                    if((list_view.currentIndex === index)){
+                                        handleClick(modelData)
+                                    }
+                                }
+                            }
+                            onClicked: handleClick(modelData)
+                        }
+                        Rectangle{
+                            width: 3
+                            color:FluTheme.primaryColor.dark
+                            visible: list_view.currentIndex === index
+                            radius: 3
+                            height: 20
+                            anchors{
+                                left: parent.left
+                                verticalCenter: parent.verticalCenter
+                            }
+                        }
+                    }
+                    contentItem: FluText{
+                        text:modelData.title
+                        anchors{
+                            verticalCenter: parent.verticalCenter
+                        }
+                    }
+                }
+            }
+        }
+    }
+    onTextChanged: {
+        loadData()
+        if(d.flagVisible){
+            control_popup.visible = true
+        }
+    }
+
+    function handleClick(modelData){
+        control_popup.visible = false
+        control.itemClicked(modelData)
+        updateText(modelData.title)
+    }
+
+    function updateText(text){
+        d.flagVisible = false
+        control.text = text
+        d.flagVisible = true
+    }
+
+    function loadData(){
+        var result = []
+        if(items==null){
+            list_view.model = result
+            return
+        }
+        items.map(function(item){
+            if(item.title.indexOf(control.text)!==-1){
+                result.push(item)
+            }
+        })
+        list_view.model = result
+    }
+
+}

+ 78 - 0
module/gui/FluentUI/Controls/FluBadge.qml

@@ -0,0 +1,78 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Rectangle{
+
+    property bool isDot: false
+    property bool showZero: true
+    property int count: 0
+
+    id:control
+    color:Qt.rgba(255/255,77/255,79/255,1)
+    width: {
+        if(isDot)
+            return 10
+        if(count<10){
+            return 20
+        }else if(count<100){
+           return 30
+        }
+        return 40
+    }
+    height: {
+        if(isDot)
+            return 10
+        return 20
+    }
+    radius: {
+        if(isDot)
+            return 5
+        return 10
+    }
+    border.width: 1
+    border.color: Qt.rgba(1,1,1,1)
+    visible: {
+        if(showZero)
+            return true
+        return count!==0
+    }
+    anchors{
+        right: {
+            if(parent)
+                return parent.right
+            return undefined
+        }
+        top: {
+            if(parent)
+                return parent.top
+            return undefined
+        }
+        rightMargin: {
+            if(isDot){
+                return -2.5
+            }
+            return -(control.width/2)
+        }
+        topMargin: {
+            if(isDot){
+                return -2.5
+            }
+            return  -10
+        }
+    }
+
+    Text{
+        anchors.centerIn: parent
+        color: Qt.rgba(1,1,1,1)
+        visible: !isDot
+        text:{
+            if(count<100)
+                return count
+            return count+"+"
+        }
+    }
+
+
+
+}

+ 100 - 0
module/gui/FluentUI/Controls/FluBreadcrumbBar.qml

@@ -0,0 +1,100 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import FluentUI
+
+Item {
+
+    property int textSize: 15
+    property string separator: "/"
+    property var items: []
+    property int spacing: 5
+    signal clickItem(var model)
+
+    id:control
+    implicitWidth: 300
+    height: 30
+
+    onItemsChanged: {
+        list_model.clear()
+        list_model.append(items)
+    }
+
+    ListModel{
+        id:list_model
+    }
+
+    ListView{
+        id:list_view
+        width: parent.width
+        height: 30
+        orientation: ListView.Horizontal
+        model: list_model
+        clip: true
+        spacing : control.spacing
+        boundsBehavior: ListView.StopAtBounds
+        remove: Transition {
+            NumberAnimation {
+                properties: "opacity"
+                from: 1
+                to: 0
+                duration: 83
+            }
+        }
+        add: Transition {
+            NumberAnimation {
+                properties: "opacity"
+                from: 0
+                to: 1
+                duration: 83
+            }
+        }
+        delegate: Item{
+            height: item_layout.height
+            width: item_layout.width
+            RowLayout{
+                id:item_layout
+                spacing: list_view.spacing
+                height: list_view.height
+
+                FluText{
+                    text:model.title
+                    Layout.alignment: Qt.AlignVCenter
+                    color: {
+                        if(item_mouse.pressed){
+                            return FluTheme.dark ? Qt.rgba(150/255,150/255,150/235,1) : Qt.rgba(134/255,134/255,134/235,1)
+                        }
+                        if(item_mouse.containsMouse){
+                            return FluTheme.dark ? Qt.rgba(204/255,204/255,204/235,1) : Qt.rgba(92/255,92/255,92/235,1)
+                        }
+                        return FluTheme.dark ? Qt.rgba(255/255,255/255,255/235,1) :  Qt.rgba(26/255,26/255,26/235,1)
+                    }
+                    MouseArea{
+                        id:item_mouse
+                        anchors.fill: parent
+                        hoverEnabled: true
+                        onClicked: {
+                            control.clickItem(model)
+                        }
+                    }
+                }
+
+                FluText{
+                    text:control.separator
+                    font.pixelSize:  control.textSize
+                    visible: list_view.count-1 !== index
+                    Layout.alignment: Qt.AlignVCenter
+                }
+            }
+        }
+    }
+
+    function remove(index,count){
+        list_model.remove(index,count)
+    }
+
+    function count(){
+        return list_model.count
+    }
+
+}

+ 61 - 0
module/gui/FluentUI/Controls/FluButton.qml

@@ -0,0 +1,61 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+Button {
+
+    property bool disabled: false
+    property color normalColor: FluTheme.dark ? Qt.rgba(62/255,62/255,62/255,1) : Qt.rgba(254/255,254/255,254/255,1)
+    property color hoverColor: FluTheme.dark ? Qt.rgba(68/255,68/255,68/255,1) : Qt.rgba(251/255,251/255,251/255,1)
+    property color disableColor: FluTheme.dark ? Qt.rgba(59/255,59/255,59/255,1) : Qt.rgba(252/255,252/255,252/255,1)
+
+    id: control
+    topPadding:5
+    bottomPadding:5
+    leftPadding:15
+    rightPadding:15
+    enabled: !disabled
+    focusPolicy:Qt.TabFocus
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+
+    background: Rectangle{
+        border.color: FluTheme.dark ? "#505050" : "#DFDFDF"
+        border.width: 1
+        radius: 4
+        FluFocusRectangle{
+            visible: control.visualFocus
+            radius:8
+        }
+        color:{
+            if(disabled){
+                return disableColor
+            }
+            return hovered ? hoverColor :normalColor
+        }
+    }
+    contentItem: FluText {
+        text: control.text
+        horizontalAlignment: Text.AlignHCenter
+        verticalAlignment: Text.AlignVCenter
+        color: {
+            if(FluTheme.dark){
+                if(disabled){
+                    return Qt.rgba(131/255,131/255,131/255,1)
+                }
+                if(pressed){
+                    return Qt.rgba(162/255,162/255,162/255,1)
+                }
+                return Qt.rgba(1,1,1,1)
+            }else{
+                if(disabled){
+                    return Qt.rgba(160/255,160/255,160/255,1)
+                }
+                if(pressed){
+                    return Qt.rgba(96/255,96/255,96/255,1)
+                }
+                return Qt.rgba(0,0,0,1)
+            }
+        }
+    }
+}

+ 120 - 0
module/gui/FluentUI/Controls/FluCalendarPicker.qml

@@ -0,0 +1,120 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import QtQuick.Window
+import FluentUI
+
+Rectangle {
+
+    property color dividerColor: FluTheme.dark ? Qt.rgba(77/255,77/255,77/255,1) : Qt.rgba(239/255,239/255,239/255,1)
+    property color hoverColor: FluTheme.dark ? Qt.rgba(68/255,68/255,68/255,1) : Qt.rgba(251/255,251/255,251/255,1)
+    property color normalColor: FluTheme.dark ? Qt.rgba(61/255,61/255,61/255,1) : Qt.rgba(254/255,254/255,254/255,1)
+    property string text: "请选择日期"
+    property var window : Window.window
+
+    id:control
+    color: {
+        if(mouse_area.containsMouse){
+            return hoverColor
+        }
+        return normalColor
+    }
+    height: 30
+    width: 120
+    radius: 4
+    border.width: 1
+    border.color: dividerColor
+
+    MouseArea{
+        id:mouse_area
+        hoverEnabled: true
+        anchors.fill: parent
+        onClicked: {
+            popup.showPopup()
+        }
+    }
+
+    FluText{
+        id:text_date
+        anchors{
+            left: parent.left
+            right: parent.right
+            rightMargin: 30
+            top: parent.top
+            bottom: parent.bottom
+        }
+        verticalAlignment: Text.AlignVCenter
+        horizontalAlignment: Text.AlignHCenter
+        text:control.text
+    }
+
+    FluIcon{
+        iconSource: FluentIcons.Calendar
+        iconSize: 14
+        iconColor: text_date.color
+        anchors{
+            verticalCenter: parent.verticalCenter
+            right: parent.right
+            rightMargin: 12
+        }
+    }
+
+
+    Menu{
+        id:popup
+        height: container.height
+        width: container.width
+        modal: true
+        dim:false
+        enter: Transition {
+            reversible: true
+            NumberAnimation {
+                property: "opacity"
+                from:0
+                to:1
+                duration: 83
+            }
+        }
+
+        exit:Transition {
+            NumberAnimation {
+                property: "opacity"
+                from:1
+                to:0
+                duration: 83
+            }
+        }
+
+        contentItem: Item{
+            clip: true
+            FluCalendarView{
+                id:container
+                onDateClicked:
+                    (date)=>{
+                        popup.close()
+                        var year = date.getFullYear()
+                        var month = date.getMonth()
+                        var day =  date.getDate()
+                        text_date.text = year+"-"+(month+1)+"-"+day
+                    }
+            }
+        }
+        background: Item{
+            FluShadow{
+                radius: 5
+            }
+        }
+        function showPopup() {
+            var pos = control.mapToItem(null, 0, 0)
+            if(window.height>pos.y+control.height+container.height){
+                popup.y = control.height
+            } else if(pos.y>container.height){
+                popup.y = -container.height
+            } else {
+                popup.y = window.height-(pos.y+container.height)
+            }
+            popup.x = -(popup.width-control.width)/2
+            popup.open()
+        }
+    }
+}

+ 473 - 0
module/gui/FluentUI/Controls/FluCalendarView.qml

@@ -0,0 +1,473 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    enum DisplayMode {
+        Month,
+        Year,
+        Decade
+    }
+
+    property int displayMode: FluCalendarView.Month
+    property var date: new Date()
+    property var currentDate : new Date()
+    property var toDay: new Date()
+    signal dateClicked(var date)
+
+    id:control
+    width: 280
+    height: 325
+
+    Component.onCompleted: {
+        updateMouth(date)
+    }
+
+    Component{
+        id:com_week
+        Item{
+            height: 40
+            width: 40
+            FluText{
+                text:name
+                anchors.centerIn: parent
+            }
+        }
+    }
+
+    Component{
+        id:com_year
+        Button{
+            id:item_control
+            property bool isYear: control.toDay.getFullYear() === date.getFullYear()
+            height: 70
+            width: 70
+            onClicked:{
+                control.date = date
+                displayMode = FluCalendarView.Year
+                updateYear(date)
+            }
+            background: Item{
+                Rectangle{
+                    width: 60
+                    height: 60
+                    radius: 4
+                    anchors.centerIn: parent
+                    color:{
+                        if(FluTheme.dark){
+                            if(item_control.hovered){
+                                return Qt.rgba(1,1,1,0.05)
+                            }
+                            return Qt.rgba(0,0,0,0)
+                        }else{
+                            if(item_control.hovered){
+                                return Qt.rgba(0,0,0,0.05)
+                            }
+                            return Qt.rgba(0,0,0,0)
+                        }
+                    }
+                }
+                Rectangle{
+                    id:backgound_selected
+                    anchors.centerIn: parent
+                    width: 50
+                    height: 50
+                    radius: 25
+                    visible: isYear
+                    color: FluTheme.primaryColor.dark
+                }
+                FluText{
+                    text:date.getFullYear()
+                    anchors.centerIn: parent
+                    color: {
+                        if(isYear){
+                            return "#FFFFFF"
+                        }
+                        if(isDecade){
+                            return FluTheme.dark ? "#FFFFFF" : "#1A1A1A"
+                        }
+                        return Qt.rgba(150/255,150/255,150/255,1)
+                    }
+                }
+            }
+            contentItem: Item{}
+        }
+    }
+
+    Component{
+        id:com_month
+        Button{
+            id:item_control
+            property bool isYear: control.date.getFullYear() === date.getFullYear()
+            property bool isMonth: control.toDay.getFullYear() === date.getFullYear() && control.toDay.getMonth() === date.getMonth()
+            height: 70
+            width: 70
+            onClicked:{
+                control.date = date
+                displayMode = FluCalendarView.Month
+                updateMouth(date)
+            }
+            background: Item{
+                Rectangle{
+                    width: 60
+                    height: 60
+                    radius: 4
+                    anchors.centerIn: parent
+                    color:{
+                        if(FluTheme.dark){
+                            if(item_control.hovered){
+                                return Qt.rgba(1,1,1,0.05)
+                            }
+                            return Qt.rgba(0,0,0,0)
+                        }else{
+                            if(item_control.hovered){
+                                return Qt.rgba(0,0,0,0.05)
+                            }
+                            return Qt.rgba(0,0,0,0)
+                        }
+                    }
+                }
+                Rectangle{
+                    id:backgound_selected
+                    anchors.centerIn: parent
+                    width: 50
+                    height: 50
+                    radius: 25
+                    visible: isMonth
+                    color: FluTheme.primaryColor.dark
+                }
+                FluText{
+                    text:(date.getMonth()+1)+"月"
+                    anchors.centerIn: parent
+                    color: {
+                        if(isMonth){
+                            return "#FFFFFF"
+                        }
+                        if(isYear){
+                            return FluTheme.dark ? "#FFFFFF" : "#1A1A1A"
+                        }
+                        return Qt.rgba(150/255,150/255,150/255,1)
+                    }
+                }
+            }
+            contentItem: Item{}
+        }
+    }
+
+
+    Component{
+        id:com_day
+        Button{
+            id:item_control
+            property bool isMonth: control.date.getMonth() === date.getMonth()
+            property bool isDay: control.currentDate.getFullYear() === date.getFullYear() && control.currentDate.getMonth() === date.getMonth() && control.currentDate.getDate() === date.getDate()
+            property bool isToDay: control.toDay.getFullYear() === date.getFullYear() && control.toDay.getMonth() === date.getMonth() && control.toDay.getDate() === date.getDate()
+            height: 40
+            width: 40
+            onClicked: {
+                currentDate = date
+                control.dateClicked(date)
+            }
+            background: Item{
+                Rectangle{
+                    width: 36
+                    height: 36
+                    radius: 4
+                    anchors.centerIn: parent
+                    color:{
+                        if(FluTheme.dark){
+                            if(item_control.hovered){
+                                return Qt.rgba(1,1,1,0.05)
+                            }
+                            return Qt.rgba(0,0,0,0)
+                        }else{
+                            if(item_control.hovered){
+                                return Qt.rgba(0,0,0,0.05)
+                            }
+                            return Qt.rgba(0,0,0,0)
+                        }
+                    }
+                }
+
+                Rectangle{
+                    id:backgound_today
+                    anchors.centerIn: parent
+                    width: 36
+                    height: 36
+                    radius: 18
+                    color:"#00000000"
+                    visible: isDay
+                    border.color: FluTheme.primaryColor.dark
+                    border.width: 1
+                }
+
+                Rectangle{
+                    id:backgound_selected
+                    anchors.centerIn: parent
+                    width: 30
+                    height: 30
+                    radius: 15
+                    visible: isToDay
+                    color: FluTheme.primaryColor.dark
+                }
+
+                FluText{
+                    text:date.getDate()
+                    anchors.centerIn: parent
+                    color: {
+                        if(isToDay){
+                            return "#FFFFFF"
+                        }
+                        if(isMonth){
+                            return FluTheme.dark ? "#FFFFFF" : "#1A1A1A"
+                        }
+                        return Qt.rgba(150/255,150/255,150/255,1)
+                    }
+                }
+            }
+            contentItem: Item{}
+        }
+    }
+
+    FluArea{
+        anchors.fill: parent
+        radius: 5
+
+        FluShadow{
+            radius: 5
+        }
+
+        Rectangle{
+            id:layout_divider
+            height: 1
+            width: parent.width
+            color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
+            anchors{
+                top: parent.top
+                topMargin: 44
+            }
+        }
+
+        Item{
+            id:layout_top
+            anchors{
+                left: parent.left
+                right: parent.right
+                top: parent.top
+                bottom: layout_divider.top
+            }
+
+            FluTextButton{
+                id:title
+                leftPadding: 0
+                rightPadding: 0
+                anchors{
+                    verticalCenter: parent.verticalCenter
+                    left: parent.left
+                    leftMargin: 14
+                }
+                disabled: displayMode === FluCalendarView.Decade
+                onClicked:{
+                    if(displayMode === FluCalendarView.Month){
+                        displayMode = FluCalendarView.Year
+                        updateYear(date)
+                    }else if(displayMode === FluCalendarView.Year){
+                        displayMode = FluCalendarView.Decade
+                        updateDecade(date)
+                    }
+                }
+            }
+
+            FluIconButton{
+                id:icon_up
+                iconSource: FluentIcons.CaretUpSolid8
+                iconSize: 10
+                anchors{
+                    verticalCenter: parent.verticalCenter
+                    right: icon_down.left
+                    rightMargin: 14
+                }
+                onClicked: {
+                    var year = date.getFullYear()
+                    var month = date.getMonth()
+                    if(displayMode === FluCalendarView.Month){
+                        var lastMonthYear = year;
+                        var lastMonthMonth = month - 1
+                        if (month === 0) {
+                            lastMonthYear = year - 1
+                            lastMonthMonth = 11
+                        }
+                        date = new Date(lastMonthYear,lastMonthMonth,1)
+                        updateMouth(date)
+                    }else if(displayMode === FluCalendarView.Year){
+                        date = new Date(year-1,month,1)
+                        updateYear(date)
+                    }else if(displayMode === FluCalendarView.Decade){
+                        date = new Date(Math.floor(year / 10) * 10-10,month,1)
+                        updateDecade(date)
+                    }
+                }
+            }
+
+            FluIconButton{
+                id:icon_down
+                iconSource: FluentIcons.CaretDownSolid8
+                iconSize: 10
+                anchors{
+                    verticalCenter: parent.verticalCenter
+                    right: parent.right
+                    rightMargin: 8
+                }
+                onClicked: {
+                    var year = date.getFullYear()
+                    var month = date.getMonth()
+                    if(displayMode === FluCalendarView.Month){
+                        var nextMonthYear = year
+                        var nextMonth = month + 1
+                        if (month === 11) {
+                            nextMonthYear = year + 1
+                            nextMonth = 0
+                        }
+                        date = new Date(nextMonthYear,nextMonth,1)
+                        updateMouth(date)
+                    }else if(displayMode === FluCalendarView.Year){
+                        date = new Date(year+1,month,1)
+                        updateYear(date)
+                    }else if(displayMode === FluCalendarView.Decade){
+                        date = new Date(Math.floor(year / 10) * 10+10,month,1)
+                        updateDecade(date)
+                    }
+                }
+            }
+        }
+
+        ListModel {
+            id:list_model
+        }
+
+        Item{
+            id:layout_bottom
+            anchors{
+                left: parent.left
+                right: parent.right
+                top: layout_divider.bottom
+                bottom: parent.bottom
+            }
+
+            GridView{
+                model: list_model
+                anchors.fill: parent
+                cellHeight: displayMode === FluCalendarView.Month ? 40 : 70
+                cellWidth: displayMode === FluCalendarView.Month ? 40 : 70
+                clip: true
+                boundsBehavior:Flickable.StopAtBounds
+                delegate: Loader{
+                    property var modelData : model
+                    property var name : model.name
+                    property var date : model.date
+                    property var isDecade: {
+                        return model.isDecade
+                    }
+                    sourceComponent: {
+                        if(model.type === 0){
+                            return com_week
+                        }
+                        if(model.type === 1){
+                            return com_day
+                        }
+                        if(model.type === 2){
+                            return com_month
+                        }
+                        if(model.type === 3){
+                            return com_year
+                        }
+                        return com_day
+                    }
+                }
+            }
+        }
+    }
+
+    function createItemWeek(name){
+        return {type:0,date:new Date(),name:name,isDecade:false}
+    }
+
+    function createItemDay(date){
+        return {type:1,date:date,name:"",isDecade:false}
+    }
+
+    function createItemMonth(date){
+        return {type:2,date:date,name:"",isDecade:false}
+    }
+
+    function createItemYear(date,isDecade){
+        return {type:3,date:date,name:"",isDecade:isDecade}
+    }
+
+    function updateDecade(date){
+        list_model.clear()
+        var year = date.getFullYear()
+        const decadeStart = Math.floor(year / 10) * 10;
+        for(var i = decadeStart ; i< decadeStart+10 ; i++){
+            list_model.append(createItemYear(new Date(i,0,1),true));
+        }
+        for(var j =  decadeStart+10 ; j< decadeStart+16 ; j++){
+            list_model.append(createItemYear(new Date(j,0,1),false));
+        }
+        title.text = decadeStart+"-"+(decadeStart+10)
+    }
+
+    function updateYear(date){
+        list_model.clear()
+        var year = date.getFullYear()
+        for(var i = 0 ; i< 12 ; i++){
+            list_model.append(createItemMonth(new Date(year,i)));
+        }
+        for(var j = 0 ; j< 4 ; j++){
+            list_model.append(createItemMonth(new Date(year+1,j)));
+        }
+        title.text = year+"年"
+    }
+
+    function updateMouth(date){
+        list_model.clear()
+        list_model.append([createItemWeek("一"),createItemWeek("二"),createItemWeek("三"),createItemWeek("四"),createItemWeek("五"),createItemWeek("六"),createItemWeek("日")])
+        var year = date.getFullYear()
+        var month = date.getMonth()
+        var day =  date.getDate()
+        var firstDayOfMonth = new Date(year, month, 1)
+        var dayOfWeek = firstDayOfMonth.getDay()
+        var headerSize = (dayOfWeek===0?7:dayOfWeek)-1
+        if(headerSize!==0){
+            var lastMonthYear = year;
+            var lastMonthMonth = month - 1
+            if (month === 0) {
+                lastMonthYear = year - 1
+                lastMonthMonth = 11
+            }
+            var lastMonthDays = new Date(lastMonthYear, lastMonthMonth+1, 0).getDate()
+            for (var i = headerSize-1; i >= 0; i--) {
+                list_model.append(createItemDay(new Date(lastMonthYear, lastMonthMonth,lastMonthDays-i)))
+            }
+        }
+        const lastDayOfMonth = new Date(year, month+1, 0).getDate()
+        for (let day = 1; day <= lastDayOfMonth; day++) {
+            list_model.append(createItemDay(new Date(year, month,day)))
+        }
+        var footerSize = 49-list_model.count
+        var nextMonthYear = year
+        var nextMonth = month + 1
+        if (month === 11) {
+            nextMonthYear = year + 1
+            nextMonth = 0
+        }
+        const nextDayOfMonth = new Date(nextMonthYear, nextMonth+1, 0).getDate()
+        for (let j = 1; j <= footerSize; j++) {
+            list_model.append(createItemDay(new Date(nextMonthYear, nextMonth,j)))
+        }
+        title.text = year+"年"+(month+1)+"月"
+    }
+
+
+}

+ 136 - 0
module/gui/FluentUI/Controls/FluCarousel.qml

@@ -0,0 +1,136 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    property bool flagXChanged: true
+    property int radius : 5
+    property int loopTime: 2000
+    property bool showIndicator: true
+
+    id:control
+    width: 400
+    height: 300
+
+    ListModel{
+        id:content_model
+    }
+
+    FluRectangle{
+        anchors.fill: parent
+        radius: [control.radius,control.radius,control.radius,control.radius]
+        FluShadow{
+            radius:control.radius
+        }
+        ListView{
+            id:list_view
+            anchors.fill: parent
+            snapMode: ListView.SnapOneItem
+            clip: true
+            boundsBehavior: ListView.StopAtBounds
+            model:content_model
+            maximumFlickVelocity: 4 * (list_view.orientation === Qt.Horizontal ? width : height)
+            preferredHighlightBegin: 0
+            preferredHighlightEnd: 0
+            highlightMoveDuration: 0
+            orientation : ListView.Horizontal
+            delegate: Item{
+                width: ListView.view.width
+                height: ListView.view.height
+                property int displayIndex: {
+                    if(index === 0)
+                        return content_model.count-3
+                    if(index === content_model.count-1)
+                        return 0
+                    return index-1
+                }
+                Image {
+                    anchors.fill: parent
+                    source: model.url
+                    asynchronous: true
+                    fillMode:Image.PreserveAspectCrop
+                }
+            }
+            onMovementEnded:{
+                currentIndex = list_view.contentX/list_view.width
+                if(currentIndex === 0){
+                    currentIndex = list_view.count-2
+                }else if(currentIndex === list_view.count-1){
+                    currentIndex = 1
+                }
+                flagXChanged = false
+                timer_run.start()
+            }
+            onMovementStarted: {
+                flagXChanged = true
+                timer_run.stop()
+            }
+            onContentXChanged: {
+                if(flagXChanged){
+                    var maxX = Math.min(list_view.width*(currentIndex+1),list_view.count*list_view.width)
+                    var minY = Math.max(0,(list_view.width*(currentIndex-1)))
+                    if(contentX>=maxX){
+                        contentX = maxX
+                    }
+                    if(contentX<=minY){
+                        contentX = minY
+                    }
+                }
+            }
+        }
+    }
+    function setData(data){
+        content_model.clear()
+        content_model.append(data[data.length-1])
+        content_model.append(data)
+        content_model.append(data[0])
+        list_view.currentIndex = 1
+        timer_run.restart()
+    }
+    Row{
+        spacing: 10
+        anchors{
+            horizontalCenter: parent.horizontalCenter
+            bottom: parent.bottom
+            bottomMargin: 20
+        }
+        visible: showIndicator
+        Repeater{
+            model: list_view.count
+            Rectangle{
+                width: 8
+                height: 8
+                radius: 4
+                visible: {
+                    if(index===0 || index===list_view.count-1)
+                        return false
+                    return true
+                }
+                border.width: 1
+                border.color: FluColors.Grey100
+                color:   list_view.currentIndex === index ?  FluTheme.primaryColor.dark : Qt.rgba(1,1,1,0.5)
+            }
+        }
+    }
+    Timer{
+        id:timer_anim
+        interval: 250
+        onTriggered: {
+            list_view.highlightMoveDuration = 0
+            if(list_view.currentIndex === list_view.count-1){
+                list_view.currentIndex = 1
+            }
+        }
+    }
+    Timer{
+        id:timer_run
+        interval: control.loopTime
+        repeat: true
+        onTriggered: {
+            list_view.highlightMoveDuration = 250
+            list_view.currentIndex = list_view.currentIndex+1
+            timer_anim.start()
+        }
+    }
+}

+ 110 - 0
module/gui/FluentUI/Controls/FluCheckBox.qml

@@ -0,0 +1,110 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import QtQuick.Layouts
+import FluentUI
+
+Button {
+
+    property bool selected: false
+    property var clickFunc
+    property bool disabled: false
+    property color borderNormalColor: FluTheme.dark ? Qt.rgba(160/255,160/255,160/255,1) : Qt.rgba(136/255,136/255,136/255,1)
+    property color borderSelectedColor: FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+    property color borderHoverColor: FluTheme.dark ? Qt.rgba(167/255,167/255,167/255,1) : Qt.rgba(135/255,135/255,135/255,1)
+    property color borderDisableColor: FluTheme.dark ? Qt.rgba(82/255,82/255,82/255,1) : Qt.rgba(199/255,199/255,199/255,1)
+    property color borderPressedColor: FluTheme.dark ? Qt.rgba(90/255,90/255,90/255,1) : Qt.rgba(191/255,191/255,191/255,1)
+
+    property color normalColor: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(247/255,247/255,247/255,1)
+    property color selectedColor: FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+    property color hoverColor: FluTheme.dark ? Qt.rgba(72/255,72/255,72/255,1) : Qt.rgba(236/255,236/255,236/255,1)
+    property color selectedHoverColor: FluTheme.dark ? Qt.darker(selectedColor,1.15) : Qt.lighter(selectedColor,1.15)
+    property color selectedPreesedColor: FluTheme.dark ? Qt.darker(selectedColor,1.3) : Qt.lighter(selectedColor,1.3)
+    property color selectedDisableColor: FluTheme.dark ? Qt.rgba(82/255,82/255,82/255,1) : Qt.rgba(199/255,199/255,199/255,1)
+    property color disableColor: FluTheme.dark ? Qt.rgba(50/255,50/255,50/255,1) : Qt.rgba(253/255,253/255,253/255,1)
+
+    id:control
+    enabled: !disabled
+    focusPolicy:Qt.TabFocus
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+    padding:0
+    onClicked: {
+        if(disabled){
+            return
+        }
+        if(clickFunc){
+            clickFunc()
+            return
+        }
+        selected = !selected
+    }
+    background: Item{
+        FluFocusRectangle{
+            visible: control.visualFocus
+        }
+    }
+    contentItem: RowLayout{
+        spacing: 4
+        Rectangle{
+            width: 20
+            height: 20
+            radius: 4
+            border.color: {
+                if(disabled){
+                    return borderDisableColor
+                }
+                if(selected){
+                    return borderSelectedColor
+                }
+                if(pressed){
+                    return borderPressedColor
+                }
+                if(hovered){
+                    return borderHoverColor
+                }
+                return borderNormalColor
+            }
+            border.width: 1
+            color: {
+                if(selected){
+                    if(disabled){
+                        return selectedDisableColor
+                    }
+                    if(pressed){
+                        return selectedPreesedColor
+                    }
+                    if(hovered){
+                        return selectedHoverColor
+                    }
+                    return selectedColor
+                }
+                if(hovered){
+                    return hoverColor
+                }
+                return normalColor
+            }
+            Behavior on color {
+                ColorAnimation{
+                    duration: 150
+                }
+            }
+            FluIcon {
+                anchors.centerIn: parent
+                iconSource: FluentIcons.AcceptMedium
+                iconSize: 15
+                visible: selected
+                iconColor: FluTheme.dark ? Qt.rgba(0,0,0,1) : Qt.rgba(1,1,1,1)
+                Behavior on visible {
+                    NumberAnimation{
+                        duration: 150
+                    }
+                }
+            }
+        }
+        FluText{
+            text: control.text
+            Layout.leftMargin: 5
+            visible: text !== ""
+        }
+    }
+}

+ 79 - 0
module/gui/FluentUI/Controls/FluColorPicker.qml

@@ -0,0 +1,79 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import QtQuick.Layouts
+import QtQuick.Window
+import FluentUI
+
+Button{
+    id:control
+    width: 36
+    height: 36
+    implicitWidth: width
+    implicitHeight: height
+    background:
+        Rectangle{
+        id:layout_color
+        radius: 5
+        color: container.colorValue
+        border.color: {
+            if(hovered)
+                return FluTheme.primaryColor.light
+            return FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
+        }
+        border.width: 1
+    }
+    contentItem: Item{}
+    onClicked: {
+        popup.showPopup()
+    }
+    Menu{
+        id:popup
+        modal: true
+        dim:false
+        height: container.height
+        width: container.width
+        contentItem: Item{
+            clip: true
+            FluColorView{
+                id:container
+            }
+        }
+        background:Item{
+            FluShadow{
+                radius: 5
+            }
+        }
+        enter: Transition {
+            reversible: true
+            NumberAnimation {
+                property: "opacity"
+                from:0
+                to:1
+                duration: 83
+            }
+        }
+
+        exit:Transition {
+            NumberAnimation {
+                property: "opacity"
+                from:1
+                to:0
+                duration: 83
+            }
+        }
+        function showPopup() {
+            var pos = control.mapToItem(null, 0, 0)
+            if(window.height>pos.y+control.height+container.height){
+                popup.y = control.height
+            } else if(pos.y>container.height){
+                popup.y = -container.height
+            } else {
+                popup.y = window.height-(pos.y+container.height)
+            }
+            popup.x = -(popup.width-control.width)/2
+            popup.open()
+        }
+    }
+
+}

+ 31 - 0
module/gui/FluentUI/Controls/FluColorView.qml

@@ -0,0 +1,31 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+import "ColorPicker"
+
+Item {
+
+    property alias colorValue: color_picker.colorValue
+
+    width: color_picker.width+10
+    height: color_picker.height
+
+    FluArea{
+        anchors.fill: parent
+        radius: 5
+
+        FluShadow{
+            radius: 5
+        }
+
+        ColorPicker{
+            id:color_picker
+        }
+    }
+
+    function setColor(color) {
+        color_picker.setColor(color)
+    }
+
+}
+

+ 7 - 0
module/gui/FluentUI/Controls/FluComboBox.qml

@@ -0,0 +1,7 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+}

+ 154 - 0
module/gui/FluentUI/Controls/FluContentDialog.qml

@@ -0,0 +1,154 @@
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Controls
+import QtQuick.Window
+import FluentUI
+
+Popup {
+    id: popup
+
+    property string title: "Title"
+    property string message: "Message"
+    property string neutralText: "Neutral"
+    property string negativeText: "Negative"
+    property string positiveText: "Positive"
+    signal neutralClicked
+    signal negativeClicked
+    signal positiveClicked
+    enum ButtonFlag{
+        NegativeButton=1
+        ,NeutralButton=2
+        ,PositiveButton=4
+    }
+    property int buttonFlags: FluContentDialog.NegativeButton | FluContentDialog.PositiveButton
+    property var minWidth: {
+        if(Window.window==null)
+            return 400
+        return  Math.min(Window.window.width,400)
+    }
+    modal:true
+    anchors.centerIn: Overlay.overlay
+    closePolicy: Popup.CloseOnEscape
+    background:Item{}
+
+    enter: Transition {
+        reversible: true
+        NumberAnimation {
+            properties: "opacity,scale"
+            from:0
+            to:1
+            duration: 167
+            easing.type: Easing.BezierSpline
+            easing.bezierCurve: [ 0, 0, 0, 1 ]
+        }
+    }
+    exit:Transition {
+        NumberAnimation {
+            properties: "opacity,scale"
+            from:1
+            to:0
+            duration: 167
+            easing.type: Easing.BezierSpline
+            easing.bezierCurve: [ 1, 0, 0, 0 ]
+        }
+    }
+    contentItem: Rectangle {
+        id:layout_content
+        implicitWidth:minWidth
+        implicitHeight: text_title.height + text_message.height + layout_actions.height
+        color:FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(249/255,249/255,249/255,1)
+        radius:5
+
+        FluShadow{
+            radius: 5
+        }
+
+        FluText{
+            id:text_title
+            fontStyle: FluText.TitleLarge
+            text:title
+            topPadding: 20
+            leftPadding: 20
+            rightPadding: 20
+            wrapMode: Text.WrapAnywhere
+            anchors{
+                top:parent.top
+                left: parent.left
+                right: parent.right
+            }
+        }
+
+        FluText{
+            id:text_message
+            fontStyle: FluText.Body
+            wrapMode: Text.WrapAnywhere
+            text:message
+            topPadding: 14
+            leftPadding: 20
+            rightPadding: 20
+            bottomPadding: 14
+            anchors{
+                top:text_title.bottom
+                left: parent.left
+                right: parent.right
+            }
+        }
+
+        Rectangle{
+            id:layout_actions
+            height: 68
+            radius: 5
+            color: FluTheme.dark ? Qt.rgba(32/255,32/255,32/255,1) : Qt.rgba(243/255,243/255,243/255,1)
+            anchors{
+                top:text_message.bottom
+                left: parent.left
+                right: parent.right
+            }
+
+            RowLayout{
+                anchors
+                {
+                    centerIn: parent
+                    margins: spacing
+                    fill: parent
+                }
+                spacing: 15
+                FluButton{
+                    id:neutral_btn
+                    Layout.fillWidth: true
+                    Layout.fillHeight: true
+                    visible: popup.buttonFlags&FluContentDialog.NeutralButton
+                    text: neutralText
+                    onClicked: {
+                        popup.close()
+                        neutralClicked()
+                    }
+                }
+
+                FluButton{
+                    id:negative_btn
+                    Layout.fillWidth: true
+                    Layout.fillHeight: true
+                    visible: popup.buttonFlags&FluContentDialog.NegativeButton
+                    text: negativeText
+                    onClicked: {
+                        popup.close()
+                        negativeClicked()
+                    }
+                }
+
+                FluFilledButton{
+                    id:positive_btn
+                    Layout.fillWidth: true
+                    Layout.fillHeight: true
+                    visible: popup.buttonFlags&FluContentDialog.PositiveButton
+                    text: positiveText
+                    onClicked: {
+                        popup.close()
+                        positiveClicked()
+                    }
+                }
+            }
+        }
+    }
+}

+ 45 - 0
module/gui/FluentUI/Controls/FluContentPage.qml

@@ -0,0 +1,45 @@
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Window
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    property alias title: text_title.text
+    default property alias content: container.data
+    property int leftPadding: 0
+    property int topPadding: 0
+    property int rightPadding: 0
+    property int bottomPadding: 0
+
+    id:control
+
+    FluText{
+        id:text_title
+        fontStyle: FluText.TitleLarge
+        anchors{
+            top: parent.top
+            topMargin: control.topPadding
+            left: parent.left
+            right: parent.right
+            leftMargin: control.leftPadding
+            rightMargin: control.rightPadding
+        }
+    }
+
+    Item{
+        clip: true
+        id:container
+        anchors{
+            left: parent.left
+            right: parent.right
+            top: text_title.bottom
+            bottom: parent.bottom
+            leftMargin: control.leftPadding
+            rightMargin: control.rightPadding
+            bottomMargin: control.bottomPadding
+        }
+    }
+
+}

+ 421 - 0
module/gui/FluentUI/Controls/FluDatePicker.qml

@@ -0,0 +1,421 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import QtQuick.Window
+import FluentUI
+
+Rectangle {
+
+    property color dividerColor: FluTheme.dark ? Qt.rgba(77/255,77/255,77/255,1) : Qt.rgba(239/255,239/255,239/255,1)
+    property color hoverColor: FluTheme.dark ? Qt.rgba(68/255,68/255,68/255,1) : Qt.rgba(251/255,251/255,251/255,1)
+    property color normalColor: FluTheme.dark ? Qt.rgba(61/255,61/255,61/255,1) : Qt.rgba(254/255,254/255,254/255,1)
+    property var window : Window.window
+    property bool showYear: true
+    property bool changeFlag: true
+    readonly property var rowData: ["","",""]
+
+    id:root
+    color: {
+        if(mouse_area.containsMouse){
+            return hoverColor
+        }
+        return normalColor
+    }
+    height: 30
+    width: 300
+    radius: 4
+    border.width: 1
+    border.color: dividerColor
+
+    MouseArea{
+        id:mouse_area
+        hoverEnabled: true
+        anchors.fill: parent
+        onClicked: {
+            popup.showPopup()
+        }
+    }
+
+    Rectangle{
+        id:divider_1
+        width: 1
+        x:  parent.width/3
+        height: parent.height
+        color: dividerColor
+        visible: showYear
+    }
+
+
+    Rectangle{
+        id:divider_2
+        width: 1
+        x: showYear ? parent.width*2/3 :  parent.width/2
+        height: parent.height
+        color: dividerColor
+    }
+
+    FluText{
+        id:text_year
+        anchors{
+            left: parent.left
+            right: divider_1.left
+            top: parent.top
+            bottom: parent.bottom
+        }
+        visible: showYear
+        verticalAlignment: Text.AlignVCenter
+        horizontalAlignment: Text.AlignHCenter
+        text:"年"
+    }
+
+
+    FluText{
+        id:text_month
+        anchors{
+            left: showYear ? divider_1.right : parent.left
+            right: divider_2.left
+            top: parent.top
+            bottom: parent.bottom
+        }
+        verticalAlignment: Text.AlignVCenter
+        horizontalAlignment: Text.AlignHCenter
+        text:"月"
+    }
+
+
+    FluText{
+        id:text_day
+        anchors{
+            left: divider_2.right
+            right: parent.right
+            top: parent.top
+            bottom: parent.bottom
+        }
+        verticalAlignment: Text.AlignVCenter
+        horizontalAlignment: Text.AlignHCenter
+        text:"日"
+    }
+
+    Menu{
+        id:popup
+        modal: true
+        width: container.width
+        height: container.height
+        dim:false
+        enter: Transition {
+            reversible: true
+            NumberAnimation {
+                property: "opacity"
+                from:0
+                to:1
+                duration: 83
+            }
+        }
+
+        exit:Transition {
+            NumberAnimation {
+                property: "opacity"
+                from:1
+                to:0
+                duration: 83
+            }
+        }
+        background:Item{
+            FluShadow{
+                radius: 4
+            }
+        }
+        contentItem: Item{
+            clip: true
+            Rectangle{
+                id:container
+                radius: 4
+                width: 300
+                height: 340
+                color: FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(248/255,250/255,253/255,1)
+                MouseArea{
+                    anchors.fill: parent
+                }
+                FluShadow{
+                    radius: 4
+                }
+
+                RowLayout{
+                    id:layout_content
+                    spacing: 0
+                    width: parent.width
+                    height: 300
+
+                    Component{
+                        id:list_delegate
+
+                        Item{
+                            height:38
+                            width:getListView().width
+
+                            function getListView(){
+                                if(type === 0)
+                                    return list_view_1
+                                if(type === 1)
+                                    return list_view_2
+                                if(type === 2)
+                                    return list_view_3
+                            }
+
+
+                            Rectangle{
+                                anchors.fill: parent
+                                anchors.topMargin: 2
+                                anchors.bottomMargin: 2
+                                anchors.leftMargin: 5
+                                anchors.rightMargin: 5
+                                color:  {
+                                    if(getListView().currentIndex === position){
+                                        if(FluTheme.dark){
+                                            return  item_mouse.containsMouse ? Qt.darker(FluTheme.primaryColor.lighter,1.1) : FluTheme.primaryColor.lighter
+                                        }else{
+                                            return  item_mouse.containsMouse ? Qt.lighter(FluTheme.primaryColor.dark,1.1): FluTheme.primaryColor.dark
+                                        }
+                                    }
+                                    if(item_mouse.containsMouse){
+                                        return FluTheme.dark ? Qt.rgba(63/255,60/255,61/255,1) : Qt.rgba(237/255,237/255,242/255,1)
+                                    }
+                                    return FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(0,0,0,0)
+                                }
+                                radius: 3
+                                MouseArea{
+                                    id:item_mouse
+                                    anchors.fill: parent
+                                    hoverEnabled: true
+                                    onClicked: {
+                                        getListView().currentIndex = position
+                                        if(type === 0){
+                                            text_year.text = model
+                                            list_view_2.model = generateMonthArray(1,12)
+                                            text_month.text = list_view_2.model[list_view_2.currentIndex]
+
+                                            list_view_3.model = generateMonthDaysArray(list_view_1.model[list_view_1.currentIndex],list_view_2.model[list_view_2.currentIndex])
+                                            text_day.text = list_view_3.model[list_view_3.currentIndex]
+                                        }
+                                        if(type === 1){
+                                            text_month.text = model
+                                            list_view_3.model = generateMonthDaysArray(list_view_1.model[list_view_1.currentIndex],list_view_2.model[list_view_2.currentIndex])
+                                            text_day.text = list_view_3.model[list_view_3.currentIndex]
+
+                                        }
+                                        if(type === 2){
+                                            text_day.text = model
+                                        }
+                                    }
+                                }
+                                FluText{
+                                    text:model
+                                    color: {
+                                        if(getListView().currentIndex === position){
+                                            if(FluTheme.dark){
+                                                return Qt.rgba(0,0,0,1)
+                                            }else{
+                                                return Qt.rgba(1,1,1,1)
+                                            }
+                                        }else{
+                                            return FluTheme.dark ? "#FFFFFF" : "#1A1A1A"
+                                        }
+                                    }
+                                    anchors.centerIn: parent
+                                }
+                            }
+                        }
+                    }
+
+                    ListView{
+                        id:list_view_1
+                        width: 100
+                        height: parent.height
+                        boundsBehavior:Flickable.StopAtBounds
+                        ScrollBar.vertical: FluScrollBar {}
+                        model: generateYearArray(1924,2048)
+                        clip: true
+                        preferredHighlightBegin: 0
+                        preferredHighlightEnd: 0
+                        highlightMoveDuration: 0
+                        visible: showYear
+                        delegate: Loader{
+                            property var model: modelData
+                            property int type:0
+                            property int position:index
+                            sourceComponent: list_delegate
+                        }
+                    }
+                    Rectangle{
+                        width: 1
+                        height: parent.height
+                        color: dividerColor
+                    }
+                    ListView{
+                        id:list_view_2
+                        width: showYear ? 100 : 150
+                        height: parent.height
+                        clip: true
+                        ScrollBar.vertical: FluScrollBar {}
+                        preferredHighlightBegin: 0
+                        preferredHighlightEnd: 0
+                        highlightMoveDuration: 0
+                        boundsBehavior:Flickable.StopAtBounds
+                        delegate: Loader{
+                            property var model: modelData
+                            property int type:1
+                            property int position:index
+                            sourceComponent: list_delegate
+                        }
+                    }
+                    Rectangle{
+                        width: 1
+                        height: parent.height
+                        color: dividerColor
+                    }
+                    ListView{
+                        id:list_view_3
+                        width:  showYear ? 100 : 150
+                        height: parent.height
+                        clip: true
+                        preferredHighlightBegin: 0
+                        preferredHighlightEnd: 0
+                        highlightMoveDuration: 0
+                        ScrollBar.vertical: FluScrollBar {}
+                        Layout.alignment: Qt.AlignVCenter
+                        boundsBehavior:Flickable.StopAtBounds
+                        delegate: Loader{
+                            property var model: modelData
+                            property int type:2
+                            property int position:index
+                            sourceComponent: list_delegate
+                        }
+                    }
+                }
+
+                Rectangle{
+                    width: parent.width
+                    height: 1
+                    anchors.top: layout_content.bottom
+                    color: dividerColor
+                }
+
+                Rectangle{
+                    id:layout_actions
+                    height: 40
+                    radius: 5
+                    color: FluTheme.dark ? Qt.rgba(32/255,32/255,32/255,1) : Qt.rgba(243/255,243/255,243/255,1)
+                    anchors{
+                        bottom:parent.bottom
+                        left: parent.left
+                        right: parent.right
+                    }
+
+                    Item {
+                        id:divider
+                        width: 1
+                        height: parent.height
+                        anchors.centerIn: parent
+                    }
+
+                    FluButton{
+                        anchors{
+                            left: parent.left
+                            leftMargin: 20
+                            rightMargin: 10
+                            right: divider.left
+                            verticalCenter: parent.verticalCenter
+                        }
+                        text: "取消"
+                        onClicked: {
+                            popup.close()
+                        }
+                    }
+
+                    FluFilledButton{
+                        anchors{
+                            right: parent.right
+                            left: divider.right
+                            rightMargin: 20
+                            leftMargin: 10
+                            verticalCenter: parent.verticalCenter
+                        }
+                        text: "确定"
+                        onClicked: {
+                            changeFlag = false
+                            popup.close()
+                        }
+                    }
+                }
+            }
+        }
+        y:35
+        function showPopup() {
+            changeFlag = true
+            rowData[0] = text_year.text
+            rowData[1] = text_month.text
+            rowData[2] = text_day.text
+
+            const now = new Date();
+            var year = text_year.text === "年"? now.getFullYear() : Number(text_year.text);
+            var month = text_month.text === "月"? now.getMonth() + 1 : Number(text_month.text);
+            var day =  text_day.text === "日" ? now.getDate() : Number(text_day.text);
+
+            list_view_1.currentIndex = list_view_1.model.indexOf(year)
+            text_year.text = year
+
+            list_view_2.model = generateMonthArray(1,12)
+            list_view_2.currentIndex = list_view_2.model.indexOf(month)
+            text_month.text = month
+
+            list_view_3.model = generateMonthDaysArray(year,month)
+            list_view_3.currentIndex = list_view_3.model.indexOf(day)
+            text_day.text = day
+
+            var pos = root.mapToItem(null, 0, 0)
+            if(window.height>pos.y+root.height+container.height){
+                popup.y = root.height
+            } else if(pos.y>container.height){
+                popup.y = -container.height
+            } else {
+                popup.y = window.height-(pos.y+container.height)
+            }
+            popup.open()
+        }
+
+        onClosed: {
+            if(changeFlag){
+                text_year.text = rowData[0]
+                text_month.text = rowData[1]
+                text_day.text = rowData[2]
+            }
+        }
+    }
+
+    function generateYearArray(startYear, endYear) {
+        const yearArray = [];
+        for (let year = startYear; year <= endYear; year++) {
+            yearArray.push(year);
+        }
+        return yearArray;
+    }
+
+    function generateMonthArray(startMonth, endMonth) {
+        const monthArray = [];
+        for (let month = startMonth; month <= endMonth; month++) {
+            monthArray.push(month);
+        }
+        return monthArray;
+    }
+
+    function generateMonthDaysArray(year, month) {
+        const monthDaysArray = [];
+        const lastDayOfMonth = new Date(year, month, 0).getDate();
+        for (let day = 1; day <= lastDayOfMonth; day++) {
+            monthDaysArray.push(day);
+        }
+        return monthDaysArray;
+    }
+
+
+}

+ 15 - 0
module/gui/FluentUI/Controls/FluDivider.qml

@@ -0,0 +1,15 @@
+import QtQuick
+import QtQuick.Window
+import FluentUI
+
+Rectangle {
+
+    color: FluTheme.dark ? Window.active ? Qt.rgba(55/255,55/255,55/255,1):Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,230/255,234/255,1)
+
+    Behavior on color{
+        ColorAnimation {
+            duration: 300
+        }
+    }
+
+}

+ 96 - 0
module/gui/FluentUI/Controls/FluDropDownButton.qml

@@ -0,0 +1,96 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import QtQuick.Window
+import FluentUI
+
+Button {
+
+    property bool disabled: false
+    property color normalColor: FluTheme.dark ? Qt.rgba(62/255,62/255,62/255,1) : Qt.rgba(254/255,254/255,254/255,1)
+    property color hoverColor: FluTheme.dark ? Qt.rgba(68/255,68/255,68/255,1) : Qt.rgba(251/255,251/255,251/255,1)
+    property color disableColor: FluTheme.dark ? Qt.rgba(59/255,59/255,59/255,1) : Qt.rgba(252/255,252/255,252/255,1)
+    property var window : Window.window
+    property alias items: menu.content
+
+    id: control
+    topPadding:5
+    bottomPadding:5
+    leftPadding:15
+    rightPadding:35
+    enabled: !disabled
+    focusPolicy:Qt.TabFocus
+
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+
+    background: Rectangle{
+        border.color: FluTheme.dark ? "#505050" : "#DFDFDF"
+        border.width: 1
+        radius: 4
+        FluFocusRectangle{
+            visible: control.visualFocus
+            radius:8
+        }
+        color:{
+            if(disabled){
+                return disableColor
+            }
+            return hovered ? hoverColor :normalColor
+        }
+        FluIcon{
+            iconSource:FluentIcons.ChevronDown
+            iconSize: 15
+            anchors{
+                right: parent.right
+                rightMargin: 10
+                verticalCenter: parent.verticalCenter
+            }
+            iconColor:title.color
+        }
+
+    }
+    contentItem: FluText {
+        id:title
+        text: control.text
+        horizontalAlignment: Text.AlignHCenter
+        verticalAlignment: Text.AlignVCenter
+        color: {
+            if(FluTheme.dark){
+                if(disabled){
+                    return Qt.rgba(131/255,131/255,131/255,1)
+                }
+                if(pressed){
+                    return Qt.rgba(162/255,162/255,162/255,1)
+                }
+                return Qt.rgba(1,1,1,1)
+            }else{
+                if(disabled){
+                    return Qt.rgba(160/255,160/255,160/255,1)
+                }
+                if(pressed){
+                    return Qt.rgba(96/255,96/255,96/255,1)
+                }
+                return Qt.rgba(0,0,0,1)
+            }
+        }
+    }
+
+    onClicked: {
+        var pos = control.mapToItem(null, 0, 0)
+        var containerHeight = menu.getContainerHeight()
+        if(window.height>pos.y+control.height+containerHeight){
+            menu.y = control.height
+        }else if(pos.y>containerHeight){
+            menu.y = -containerHeight
+        }else{
+            menu.y = window.height-(pos.y+containerHeight)
+        }
+        menu.open()
+    }
+
+    FluMenu{
+        id:menu
+        width: control.width
+    }
+
+}

+ 108 - 0
module/gui/FluentUI/Controls/FluExpander.qml

@@ -0,0 +1,108 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Window
+import FluentUI
+
+Item {
+
+    property string  headerText: "Titlte"
+    property bool expand: false
+    property int contentHeight : 300
+    default property alias content: container.data
+
+    id:root
+    height: layout_header.height + container.height
+    width: 400
+    implicitWidth: width
+    implicitHeight: height
+
+    Rectangle{
+        id:layout_header
+        width: parent.width
+        height: 45
+        radius: 4
+        color: FluTheme.dark ? Window.active ? Qt.rgba(38/255,44/255,54/255,1) : Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1)
+        border.color: FluTheme.dark ?  Window.active ? Qt.rgba(55/255,55/255,55/255,1) : Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
+
+        Behavior on color{
+            ColorAnimation {
+                duration: 300
+            }
+        }
+
+        Behavior on border.color{
+            ColorAnimation {
+                duration: 300
+            }
+        }
+
+        MouseArea{
+            id:root_mouse
+            anchors.fill: parent
+            hoverEnabled: true
+            onClicked: {
+                expand = !expand
+            }
+        }
+
+        FluText{
+            text: headerText
+            anchors{
+                verticalCenter: parent.verticalCenter
+                left: parent.left
+                leftMargin: 15
+            }
+        }
+
+        FluIconButton{
+            anchors{
+                verticalCenter: parent.verticalCenter
+                right: parent.right
+                rightMargin: 15
+            }
+            color:{
+                if(root_mouse.containsMouse || hovered){
+                    return FluTheme.dark ? Qt.rgba(73/255,73/255,73/255,1) : Qt.rgba(245/255,245/255,245/255,1)
+                }
+                return FluTheme.dark ? Qt.rgba(0,0,0,0) : Qt.rgba(0,0,0,0)
+            }
+            onClicked: {
+                expand = !expand
+            }
+            contentItem: FluIcon{
+                rotation: expand?0:180
+                iconSource:FluentIcons.ChevronUp
+                iconSize: 15
+                Behavior on rotation {
+                    NumberAnimation{
+                        duration: 150
+                    }
+                }
+            }
+        }
+    }
+
+
+    Rectangle{
+        id:container
+        width: parent.width
+        clip: true
+        anchors{
+            top: layout_header.bottom
+            topMargin: -1
+            left: layout_header.left
+        }
+        radius: 4
+        color: FluTheme.dark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1)
+        border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
+        height: expand ? contentHeight : 0
+        Behavior on height {
+            NumberAnimation{
+                duration: 167
+                easing.type: Easing.BezierSpline
+                easing.bezierCurve: expand ? [ 0, 0, 0, 1 ] : [ 1, 0, 0, 0 ]
+            }
+        }
+    }
+
+}

+ 53 - 0
module/gui/FluentUI/Controls/FluFilledButton.qml

@@ -0,0 +1,53 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+Button {
+
+    property bool disabled: false
+    property color normalColor: FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+    property color hoverColor: FluTheme.dark ? Qt.darker(normalColor,1.1) : Qt.lighter(normalColor,1.1)
+    property color disableColor: FluTheme.dark ? Qt.rgba(82/255,82/255,82/255,1) : Qt.rgba(199/255,199/255,199/255,1)
+    property color pressedColor: FluTheme.dark ? Qt.darker(normalColor,1.2) : Qt.lighter(normalColor,1.2)
+
+    id: control
+    enabled: !disabled
+    topPadding:5
+    bottomPadding:5
+    leftPadding:15
+    rightPadding:15
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+    focusPolicy:Qt.TabFocus
+    background: Rectangle{
+        radius: 4
+        FluFocusRectangle{
+            visible: control.visualFocus
+            radius:8
+        }
+        color:{
+            if(disabled){
+                return disableColor
+            }
+            if(pressed){
+                return pressedColor
+            }
+            return hovered ? hoverColor :normalColor
+        }
+    }
+    contentItem: FluText {
+        text: control.text
+        horizontalAlignment: Text.AlignHCenter
+        verticalAlignment: Text.AlignVCenter
+        color: {
+            if(FluTheme.dark){
+                if(disabled){
+                    return Qt.rgba(173/255,173/255,173/255,1)
+                }
+                return Qt.rgba(0,0,0,1)
+            }else{
+                return Qt.rgba(1,1,1,1)
+            }
+        }
+    }
+}

+ 117 - 0
module/gui/FluentUI/Controls/FluFlipView.qml

@@ -0,0 +1,117 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+Item{
+
+    property bool vertical: false
+    default property alias content : swipe.contentData
+    property alias currentIndex: swipe.currentIndex
+
+    id:control
+    width: 400
+    height: 300
+    implicitWidth: width
+    implicitHeight: height
+
+    QtObject{
+        id:d
+        property bool flag: true
+    }
+
+    MouseArea{
+        anchors.fill: parent
+        preventStealing: true
+        onWheel:
+            (wheel)=>{
+                if(!d.flag)
+                return
+                if (wheel.angleDelta.y > 0){
+                    btn_start.clicked()
+                }else{
+                    btn_end.clicked()
+                }
+                d.flag = false
+                timer.restart()
+            }
+    }
+
+    Timer{
+        id:timer
+        interval: 250
+        onTriggered: {
+            d.flag = true
+        }
+    }
+
+    SwipeView {
+        id:swipe
+        clip: true
+        interactive: false
+        orientation:control.vertical ? Qt.Vertical : Qt.Horizontal
+        anchors.fill: parent
+    }
+
+    Button{
+        id:btn_start
+        height: vertical ? 20 : 40
+        width: vertical ? 40 : 20
+        anchors{
+            left: vertical ? undefined : parent.left
+            leftMargin: vertical ? undefined : 2
+            verticalCenter: vertical ? undefined : parent.verticalCenter
+            horizontalCenter: !vertical ? undefined : parent.horizontalCenter
+            top: !vertical ? undefined :parent.top
+            topMargin: !vertical ? undefined :2
+        }
+        background: Rectangle{
+            radius: 4
+            color:FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,0.97) : Qt.rgba(237/255,237/255,237/255,0.97)
+        }
+        contentItem:FluIcon{
+            iconSource: vertical ? FluentIcons.CaretUpSolid8 : FluentIcons.CaretLeftSolid8
+            width: 10
+            height: 10
+            iconSize: 10
+            iconColor: btn_start.hovered ? FluColors.Grey220  :  FluColors.Grey120
+            anchors.centerIn: parent
+        }
+        visible: swipe.currentIndex !==0
+        onClicked: {
+            swipe.currentIndex = Math.max(swipe.currentIndex - 1, 0)
+        }
+    }
+
+    Button{
+        id:btn_end
+        height: vertical ? 20 : 40
+        width: vertical ? 40 : 20
+        anchors{
+            right: vertical ? undefined : parent.right
+            rightMargin: vertical ? undefined : 2
+            verticalCenter: vertical ? undefined : parent.verticalCenter
+            horizontalCenter: !vertical ? undefined : parent.horizontalCenter
+            bottom: !vertical ? undefined :parent.bottom
+            bottomMargin: !vertical ? undefined :2
+        }
+        background: Rectangle{
+            radius: 4
+            color:FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,0.97) : Qt.rgba(237/255,237/255,237/255,0.97)
+        }
+        visible: swipe.currentIndex !== swipe.count - 1
+        contentItem:FluIcon{
+            iconSource: vertical ? FluentIcons.CaretDownSolid8 : FluentIcons.CaretRightSolid8
+            width: 10
+            height: 10
+            iconSize: 10
+            iconColor: btn_end.hovered ? FluColors.Grey220  :  FluColors.Grey120
+            anchors.centerIn: parent
+        }
+        onClicked: {
+            swipe.currentIndex = Math.min(swipe.currentIndex + 1,swipe.count-1)
+        }
+    }
+
+}
+

+ 23 - 0
module/gui/FluentUI/Controls/FluFocusRectangle.qml

@@ -0,0 +1,23 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    property int radius: 4
+
+    id:root
+    anchors.fill: parent
+    anchors.margins: -3
+    Rectangle{
+        width: root.width
+        height: root.height
+        anchors.centerIn: parent
+        color: "#00000000"
+        border.width: 3
+        radius: root.radius
+        border.color: FluTheme.dark ? Qt.rgba(1,1,1,1) : Qt.rgba(0,0,0,1)
+        z: 65535
+    }
+
+}

+ 18 - 0
module/gui/FluentUI/Controls/FluIcon.qml

@@ -0,0 +1,18 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Text {
+
+    property int iconSource
+    property int iconSize: 20
+    property color iconColor: FluTheme.dark ? "#FFFFFF" : "#000000"
+
+    id:text_icon
+    font.family: "Segoe Fluent Icons"
+    font.pixelSize: iconSize
+    horizontalAlignment: Text.AlignHCenter
+    verticalAlignment: Text.AlignVCenter
+    color: iconColor
+    text: (String.fromCharCode(iconSource).toString(16));
+}

+ 80 - 0
module/gui/FluentUI/Controls/FluIconButton.qml

@@ -0,0 +1,80 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+Button {
+
+    property int iconSize: 20
+    property int iconSource
+    property bool disabled: false
+    property int radius:4
+    property color hoverColor: FluTheme.dark ? Qt.rgba(62/255,62/255,62/255,1) : Qt.rgba(0,0,0,0.03)
+    property color pressedColor: FluTheme.dark ? Qt.rgba(62/255,62/255,62/255,1) : Qt.rgba(0,0,0,0.06)
+    property color normalColor: FluTheme.dark ? Qt.rgba(0,0,0,0) : Qt.rgba(0,0,0,0)
+    property color disableColor: FluTheme.dark ? Qt.rgba(0,0,0,0) : Qt.rgba(0,0,0,0)
+    property color color: {
+        if(disabled){
+            return disableColor
+        }
+        if(pressed){
+            return pressedColor
+        }
+        return hovered ? hoverColor : normalColor
+    }
+    property color iconColor: {
+        if(FluTheme.dark){
+            if(disabled){
+                return Qt.rgba(130/255,130/255,130/255,1)
+            }
+            return Qt.rgba(1,1,1,1)
+        }else{
+            if(disabled){
+                return Qt.rgba(161/255,161/255,161/255,1)
+            }
+            return Qt.rgba(0,0,0,1)
+        }
+    }
+
+    id:control
+    width: 30
+    height: 30
+    implicitWidth: width
+    implicitHeight: height
+    padding: 0
+    enabled: !disabled
+    focusPolicy:Qt.TabFocus
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+    background: Rectangle{
+        radius: control.radius
+        color:control.color
+        FluFocusRectangle{
+            visible: control.visualFocus
+        }
+    }
+    contentItem: Item{
+        Text {
+            id:text_icon
+            font.family: "Segoe Fluent Icons"
+            font.pixelSize: iconSize
+            width: iconSize
+            height: iconSize
+            horizontalAlignment: Text.AlignHCenter
+            verticalAlignment: Text.AlignVCenter
+            anchors.centerIn: parent
+            color:control.iconColor
+            text: (String.fromCharCode(iconSource).toString(16));
+        }
+        FluTooltip{
+            id:tool_tip
+            visible: {
+                if(control.text === ""){
+                    return false
+                }
+                return hovered
+            }
+            text:control.text
+            delay: 1000
+        }
+    }
+}

+ 233 - 0
module/gui/FluentUI/Controls/FluInfoBar.qml

@@ -0,0 +1,233 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+FluObject {
+    id:infoBar
+
+    property var root;
+    property int layoutY: 75;
+
+    FluObject{
+        id:mcontrol
+
+        property string const_success: "success";
+        property string const_info:    "info";
+        property string const_warning: "warning";
+        property string const_error:   "error";
+        property int maxWidth: 300;
+        property var screenLayout: null;
+
+        function create(type,text,duration,moremsg){
+            if(screenLayout){
+                var last = screenLayout.getLastloader();
+                if(last.type === type && last.text === text && moremsg === last.moremsg){
+                    last.restart();
+                    return;
+                }
+            }
+
+            initScreenLayout();
+            contentComponent.createObject(screenLayout,{
+                                              type:type,
+                                              text:text,
+                                              duration:duration,
+                                              moremsg:moremsg,
+                                          });
+        }
+
+        function createCustom(itemcomponent,duration){
+            initScreenLayout();
+            if(itemcomponent){
+                contentComponent.createObject(screenLayout,{itemcomponent:itemcomponent,duration:duration});
+            }
+        }
+
+        function initScreenLayout(){
+            if(screenLayout == null){
+                screenLayout = screenlayoutComponent.createObject(root);
+                screenLayout.y = infoBar.layoutY;
+                screenLayout.z = 100000;
+            }
+        }
+
+        Component{
+            id:screenlayoutComponent
+            Column{
+                spacing: 20
+                width: parent.width
+                move: Transition {
+                    NumberAnimation { properties: "y"; easing.type: Easing.OutBack; duration: 300 }
+                }
+
+                onChildrenChanged: if(children.length === 0)  destroy();
+
+                function getLastloader(){
+                    if(children.length > 0){
+                        return children[children.length - 1];
+                    }
+                    return null;
+                }
+            }
+        }
+
+        Component{
+            id:contentComponent
+            Item{
+                id:content;
+                property int duration: 1500
+                property var itemcomponent
+                property string type
+                property string text
+                property string moremsg
+
+                width:  parent.width;
+                height: loader.height;
+
+                function close(){
+                    content.destroy();
+                }
+
+                function restart(){
+                    delayTimer.restart();
+                }
+
+                Timer {
+                    id:delayTimer
+                    interval: duration; running: true; repeat: true
+                    onTriggered: content.close();
+                }
+
+                Loader{
+                    id:loader;
+                    x:(parent.width - width) / 2;
+                    property var _super: content;
+
+                    scale: item ? 1 : 0;
+                    asynchronous: true
+
+                    Behavior on scale {
+                        NumberAnimation {
+                            easing.type: Easing.OutBack;
+                            duration: 100
+                        }
+                    }
+
+                    sourceComponent:itemcomponent ? itemcomponent : mcontrol.fluent_sytle;
+                }
+
+            }
+        }
+
+        property Component fluent_sytle:  Rectangle{
+            width:  rowlayout.width  + (_super.moremsg ? 25 : 80);
+            height: rowlayout.height + 20;
+            color: {
+                if(FluTheme.dark){
+                    switch(_super.type){
+                    case mcontrol.const_success: return Qt.rgba(57/255,61/255,27/255,1);
+                    case mcontrol.const_warning: return Qt.rgba(67/255,53/255,25/255,1);
+                    case mcontrol.const_info:    return Qt.rgba(39/255,39/255,39/255,1);
+                    case mcontrol.const_error:   return Qt.rgba(68/255,39/255,38/255,1);
+                    }
+                    return Qt.rgba(255,255,255,1)
+                }else{
+                    switch(_super.type){
+                    case mcontrol.const_success: return "#dff6dd";
+                    case mcontrol.const_warning: return "#fff4ce";
+                    case mcontrol.const_info:    return "#f4f4f4";
+                    case mcontrol.const_error:   return "#fde7e9";
+                    }
+                    return "#FFFFFF"
+                }
+            }
+            radius: 4
+            border.width: 1
+            border.color: {
+                if(FluTheme.dark){
+                    switch(_super.type){
+                    case mcontrol.const_success: return Qt.rgba(56/255,61/255,27/255,1);
+                    case mcontrol.const_warning: return Qt.rgba(66/255,53/255,25/255,1);
+                    case mcontrol.const_info:    return Qt.rgba(38/255,39/255,39/255,1);
+                    case mcontrol.const_error:   return Qt.rgba(67/255,39/255,38/255,1);
+                    }
+                    return "#FFFFFF"
+                }else{
+                    switch(_super.type){
+                    case mcontrol.const_success: return "#d2e8d0";
+                    case mcontrol.const_warning: return "#f0e6c2";
+                    case mcontrol.const_info:    return "#e6e6e6";
+                    case mcontrol.const_error:   return "#eed9db";
+                    }
+                    return "#FFFFFF"
+                }
+            }
+            Row{
+                id:rowlayout
+                x:20;
+                y:(parent.height - height) / 2;
+                spacing: 10
+
+                FluIcon{
+                    iconSource:{
+                        switch(_super.type){
+                        case mcontrol.const_success: return FluentIcons.CompletedSolid;
+                        case mcontrol.const_warning: return FluentIcons.InfoSolid;
+                        case mcontrol.const_info:    return FluentIcons.InfoSolid;
+                        case mcontrol.const_error:   return FluentIcons.StatusErrorFull;
+                        }FluentIcons.StatusErrorFull
+                        return FluentIcons.FA_info_circle
+                    }
+                    iconSize:20
+                    iconColor: {
+                        if(FluTheme.dark){
+                            switch(_super.type){
+                            case mcontrol.const_success: return Qt.rgba(108/255,203/255,95/255,1);
+                            case mcontrol.const_warning: return Qt.rgba(252/255,225/255,0/255,1);
+                            case mcontrol.const_info:    return FluTheme.primaryColor.lighter;
+                            case mcontrol.const_error:   return Qt.rgba(255/255,153/255,164/255,1);
+                            }
+                            return "#FFFFFF"
+                        }else{
+                            switch(_super.type){
+                            case mcontrol.const_success: return "#0f7b0f";
+                            case mcontrol.const_warning: return "#9d5d00";
+                            case mcontrol.const_info:    return "#0066b4";
+                            case mcontrol.const_error:   return "#c42b1c";
+                            }
+                            return "#FFFFFF"
+                        }
+                    }
+                }
+
+                FluText{
+                    text:_super.text
+                    wrapMode: Text.WrapAnywhere
+                    width: Math.min(implicitWidth,mcontrol.maxWidth)
+                }
+            }
+        }
+    }
+
+    function showSuccess(text,duration=1000,moremsg){
+        mcontrol.create(mcontrol.const_success,text,duration,moremsg ? moremsg : "");
+    }
+
+    function showInfo(text,duration=1000,moremsg){
+        mcontrol.create(mcontrol.const_info,text,duration,moremsg ? moremsg : "");
+    }
+
+    function showWarning(text,duration=1000,moremsg){
+        mcontrol.create(mcontrol.const_warning,text,duration,moremsg ? moremsg : "");
+    }
+
+    function showError(text,duration=1000,moremsg){
+        mcontrol.create(mcontrol.const_error,text,duration,moremsg ? moremsg : "");
+    }
+
+    function showCustom(itemcomponent,duration=1000){
+        mcontrol.createCustom(itemcomponent,duration);
+    }
+
+
+}

+ 65 - 0
module/gui/FluentUI/Controls/FluItem.qml

@@ -0,0 +1,65 @@
+import QtQuick
+import QtQuick.Controls
+import Qt5Compat.GraphicalEffects
+
+Item{
+    id:control
+    property var radius:[0,0,0,0]
+    default property alias contentItem: container.data
+
+    Item{
+        id:container
+        width: control.width
+        height: control.height
+        opacity: 0
+    }
+
+    onWidthChanged: {
+        canvas.requestPaint()
+    }
+
+    onHeightChanged: {
+        canvas.requestPaint()
+    }
+
+    onRadiusChanged: {
+        canvas.requestPaint()
+    }
+
+    Canvas {
+        id: canvas
+        anchors.fill: parent
+        visible: false
+        onPaint: {
+            var ctx = getContext("2d");
+            var x = 0;
+            var y = 0;
+            var w = control.width;
+            var h = control.height;
+            ctx.setTransform(1, 0, 0, 1, 0, 0);
+            ctx.clearRect(0, 0, canvas.width, canvas.height);
+            ctx.save();
+            ctx.beginPath();
+            ctx.moveTo(x + radius[0], y);
+            ctx.lineTo(x + w - radius[1], y);
+            ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]);
+            ctx.lineTo(x + w, y + h - radius[2]);
+            ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]);
+            ctx.lineTo(x + radius[3], y + h);
+            ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]);
+            ctx.lineTo(x, y + radius[0]);
+            ctx.arcTo(x, y, x + radius[0], y, radius[0]);
+            ctx.closePath();
+            ctx.fillStyle = control.color;
+            ctx.fill();
+            ctx.restore();
+        }
+    }
+
+    OpacityMask {
+        anchors.fill: container
+        source: container
+        maskSource: canvas
+    }
+
+}

+ 220 - 0
module/gui/FluentUI/Controls/FluMediaPlayer.qml

@@ -0,0 +1,220 @@
+import QtQuick
+import QtQuick.Controls
+import QtMultimedia
+import FluentUI
+
+Rectangle {
+
+    property url source
+    property bool showControl: false
+    property real volume: 30
+
+    id:control
+    width: 480
+    height: 270
+    color: FluColors.Black
+    clip: true
+
+    MouseArea{
+        anchors.fill: parent
+        preventStealing: true
+        onClicked: {
+            showControl = !showControl
+        }
+    }
+
+    MediaPlayer {
+        id: mediaplayer
+        property bool autoSeek:true
+        source: control.source
+        videoOutput: video_output
+        audioOutput: AudioOutput{
+            id:audio_output
+        }
+        onErrorChanged:
+            (error)=> {
+                console.debug(error)
+            }
+        onPositionChanged: {
+            if(autoSeek){
+                slider.seek(mediaplayer.position*slider.maxValue/mediaplayer.duration)
+            }
+        }
+        onMediaStatusChanged:
+            (status)=> {
+                if(status===2){
+                    slider.maxValue = mediaplayer.duration
+                    showControl = true
+                    mediaplayer.play()
+                }
+            }
+    }
+
+    onSourceChanged: {
+        slider.seek(0)
+    }
+
+    VideoOutput {
+        id:video_output
+        anchors.fill: parent
+    }
+
+    Item{
+        height: 100
+        y:showControl ? control.height - 110 : control.height
+        anchors{
+            horizontalCenter: parent.horizontalCenter
+        }
+        width: 460
+        opacity: showControl
+        MouseArea{
+            anchors.fill: parent
+        }
+        Behavior on opacity{
+            NumberAnimation{
+                duration: 150
+            }
+        }
+        Behavior on y{
+            NumberAnimation{
+                duration: 150
+            }
+        }
+        Rectangle{
+            anchors.fill: parent
+            color:FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,0.97) : Qt.rgba(237/255,237/255,237/255,0.97)
+            radius: 5
+        }
+
+        FluSlider{
+            id:slider
+            size:parent.width-20
+            y:20
+            anchors.horizontalCenter: parent.horizontalCenter
+            tipEnabled:false
+            onPressed: {
+                mediaplayer.autoSeek = false
+                mediaplayer.pause()
+            }
+            value:mediaplayer.position
+            onReleased: {
+                mediaplayer.autoSeek = true
+                mediaplayer.play()
+            }
+            onValueChanged: {
+                if(mediaplayer.autoSeek == false){
+                    mediaplayer.position = value*mediaplayer.duration/slider.maxValue
+                }
+            }
+            onLineClickFunc:function(val){
+                mediaplayer.position = val*mediaplayer.duration/slider.maxValue
+            }
+        }
+
+        FluText{
+            id:start_time
+            anchors{
+                top: slider.bottom
+                topMargin: 10
+                left: slider.left
+            }
+            text: formatDuration(slider.value*mediaplayer.duration/slider.maxValue)
+        }
+
+        FluText{
+            id:end_time
+            anchors{
+                top: slider.bottom
+                right: slider.right
+                topMargin: 10
+            }
+            text: formatDuration(mediaplayer.duration)
+        }
+
+        Row{
+            spacing: 10
+            anchors{
+                horizontalCenter: parent.horizontalCenter
+                bottom: parent.bottom
+                bottomMargin: 10
+            }
+            FluIconButton{
+                iconSize: 17
+                iconSource:  FluentIcons.SkipBack10
+                onClicked: {
+                    mediaplayer.position = Math.max(mediaplayer.position-10*1000,0)
+                }
+            }
+            FluIconButton{
+                iconSize: 15
+                iconSource: mediaplayer.playbackState === MediaPlayer.PlayingState ?   FluentIcons.Pause  : FluentIcons.Play
+                onClicked: {
+                    if(mediaplayer.playbackState === MediaPlayer.PlayingState){
+                        mediaplayer.pause()
+                    }else{
+                        mediaplayer.play()
+                    }
+                }
+            }
+            FluIconButton{
+                iconSize: 17
+                iconSource:  FluentIcons.SkipForward30
+                onClicked: {
+                    mediaplayer.position = Math.min(mediaplayer.position+30*1000,mediaplayer.duration)
+                }
+            }
+        }
+
+        FluIconButton{
+            id:btn_volume
+            iconSize: 17
+            iconSource:  audio_output.muted ? FluentIcons.Mute  :  FluentIcons.Volume
+            anchors{
+                left: parent.left
+                leftMargin: 5
+                bottom: parent.bottom
+                bottomMargin: 10
+            }
+            onClicked: {
+                audio_output.muted = !audio_output.muted
+            }
+        }
+
+        FluSlider{
+            id:slider_volume
+            size: 80
+            dotSize: 20
+            value:30
+            anchors{
+                left:btn_volume.right
+                verticalCenter: btn_volume.verticalCenter
+                leftMargin: 10
+            }
+            onValueChanged:{
+                audio_output.volume = value/100
+            }
+        }
+    }
+
+    function formatDuration(duration) {
+        const seconds = Math.floor(duration / 1000);
+        const hours = Math.floor(seconds / 3600);
+        const minutes = Math.floor((seconds % 3600) / 60);
+        const remainingSeconds = seconds % 60;
+        return `${pad(hours)}:${pad(minutes)}:${pad(remainingSeconds)}`;
+    }
+
+    function pad(value) {
+        return value.toString().padStart(2, '0');
+    }
+
+    function pause(){
+        mediaplayer.pause()
+    }
+
+    function play(){
+        mediaplayer.play()
+    }
+
+}
+

+ 64 - 0
module/gui/FluentUI/Controls/FluMenu.qml

@@ -0,0 +1,64 @@
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Controls
+import FluentUI
+
+Menu {
+
+    default property alias content: container.data
+    property bool enableAnimation: true
+    id: popup
+    width: 140
+    height: container.height
+    modal:true
+    dim:false
+    enter: Transition {
+        reversible: true
+        NumberAnimation {
+            property: "opacity"
+            from:0
+            to:1
+            duration: enableAnimation ? 83 : 0
+        }
+    }
+
+    exit:Transition {
+        NumberAnimation {
+            property: "opacity"
+            from:1
+            to:0
+            duration: enableAnimation ? 83 : 0
+        }
+    }
+
+    background:Item{
+        FluShadow{
+            radius: 5
+        }
+    }
+    contentItem: Item {
+        clip: true
+        Rectangle{
+            anchors.fill: parent
+            color:FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(249/255,249/255,249/255,1)
+            border.color: FluTheme.dark ? Window.active ? Qt.rgba(55/255,55/255,55/255,1):Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
+            border.width: 1
+            radius: 5
+        }
+        Column{
+            id:container
+            spacing: 5
+            topPadding: 5
+            bottomPadding: 5
+            width: popup.width
+            function closePopup(){
+                popup.close()
+            }
+        }
+    }
+
+    function getContainerHeight(){
+        return container.height
+    }
+
+}

+ 58 - 0
module/gui/FluentUI/Controls/FluMenuItem.qml

@@ -0,0 +1,58 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    property string text: "MenuItem"
+    property var onClickFunc
+    signal clicked
+
+    id:control
+    width: {
+        if(control.parent){
+            return control.parent.width
+        }
+        return 140
+    }
+    height: 32
+
+    Rectangle{
+        anchors.centerIn: parent
+        width: control.width-40
+        height: 32
+        radius: 4
+        color:{
+            if(FluTheme.dark){
+                if(mouse_area.containsMouse){
+                    return Qt.rgba(1,1,1,0.05)
+                }
+                return Qt.rgba(0,0,0,0)
+            }else{
+                if(mouse_area.containsMouse){
+                    return Qt.rgba(0,0,0,0.05)
+                }
+                return Qt.rgba(0,0,0,0)
+            }
+        }
+
+        FluText{
+            text: control.text
+            anchors.centerIn: parent
+        }
+
+        MouseArea{
+            id:mouse_area
+            hoverEnabled: true
+            anchors.fill: parent
+            onClicked: {
+                if(control.onClickFunc){
+                    control.onClickFunc()
+                    return
+                }
+                control.parent.closePopup()
+                control.clicked()
+            }
+        }
+    }
+}

+ 89 - 0
module/gui/FluentUI/Controls/FluMultilineTextBox.qml

@@ -0,0 +1,89 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+TextArea{
+
+    property int fontStyle: FluText.Body
+    property int pixelSize : FluTheme.textSize
+    property bool disabled: false
+    property color normalColor: FluTheme.dark ?  Qt.rgba(255/255,255/255,255/255,1) : Qt.rgba(27/255,27/255,27/255,1)
+    property color disableColor: FluTheme.dark ? Qt.rgba(131/255,131/255,131/255,1) : Qt.rgba(160/255,160/255,160/255,1)
+    property color placeholderNormalColor: FluTheme.dark ? Qt.rgba(210/255,210/255,210/255,1) : Qt.rgba(96/255,96/255,96/255,1)
+    property color placeholderFocusColor: FluTheme.dark ? Qt.rgba(152/255,152/255,152/255,1) : Qt.rgba(141/255,141/255,141/255,1)
+    property color placeholderDisableColor: FluTheme.dark ? Qt.rgba(131/255,131/255,131/255,1) : Qt.rgba(160/255,160/255,160/255,1)
+
+    id:control
+    width: 300
+    enabled: !disabled
+    color: {
+        if(disabled){
+            return disableColor
+        }
+        return normalColor
+    }
+    wrapMode: Text.WrapAnywhere
+    renderType: FluTheme.nativeText ? Text.NativeRendering : Text.QtRendering
+    selectionColor: FluTheme.primaryColor.lightest
+    placeholderTextColor: {
+        if(disabled){
+            return placeholderDisableColor
+        }
+        if(focus){
+            return placeholderFocusColor
+        }
+        return placeholderNormalColor
+    }
+    font.bold: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return true
+        case FluText.TitleLarge:
+            return true
+        case FluText.Title:
+            return true
+        case FluText.SubTitle:
+            return true
+        case FluText.BodyStrong:
+            return true
+        case FluText.Body:
+            return false
+        case FluText.Caption:
+            return false
+        default:
+            return false
+        }
+    }
+    font.pixelSize: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return text.pixelSize * 4.857
+        case FluText.TitleLarge:
+            return text.pixelSize * 2.857
+        case FluText.Title:
+            return text.pixelSize * 2
+        case FluText.SubTitle:
+            return text.pixelSize * 1.428
+        case FluText.Body:
+            return text.pixelSize * 1.0
+        case FluText.BodyStrong:
+            return text.pixelSize * 1.0
+        case FluText.Caption:
+            return text.pixelSize * 0.857
+        default:
+            return text.pixelSize * 1.0
+        }
+    }
+    selectByMouse: true
+    background: FluTextBoxBackground{ inputItem: control }
+    TapHandler {
+        acceptedButtons: Qt.RightButton
+        onTapped: control.echoMode !== TextInput.Password && menu.popup()
+    }
+    FluTextBoxMenu{
+        id:menu
+        inputItem: control
+    }
+
+}

+ 914 - 0
module/gui/FluentUI/Controls/FluNavigationView.qml

@@ -0,0 +1,914 @@
+import QtQuick
+import QtQuick.Window
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import QtQuick.Layouts
+import FluentUI
+
+Item {
+
+    enum DisplayMode {
+        Open,
+        Compact,
+        Minimal,
+        Auto
+    }
+
+    property url logo
+    property string title: ""
+    property FluObject items
+    property FluObject footerItems
+    property int displayMode: FluNavigationView.Auto
+    property Component  autoSuggestBox
+    property var window : {
+        if(Window.window == null)
+            return null
+        return Window.window
+    }
+
+    id:control
+
+    QtObject{
+        id:d
+        property bool enableStack: true
+        property int displayMode: {
+            if(control.displayMode !==FluNavigationView.Auto){
+                return control.displayMode
+            }
+            if(control.width<=700){
+                return FluNavigationView.Minimal
+            }else if(control.width<=900){
+                return FluNavigationView.Compact
+            }else{
+                return FluNavigationView.Open
+            }
+        }
+        property var stackItems: []
+        property bool enableNavigationPanel: false
+        property bool isCompact: d.displayMode === FluNavigationView.Compact
+        property bool isMinimal: d.displayMode === FluNavigationView.Minimal
+        property bool isCompactAndPanel: d.displayMode === FluNavigationView.Compact && d.enableNavigationPanel
+        property bool isCompactAndNotPanel:d.displayMode === FluNavigationView.Compact && !d.enableNavigationPanel
+        property bool isMinimalAndPanel: d.displayMode === FluNavigationView.Minimal && d.enableNavigationPanel
+
+        onIsCompactAndNotPanelChanged: {
+            collapseAll()
+        }
+
+        onDisplayModeChanged: {
+            if(d.displayMode === FluNavigationView.Compact){
+                collapseAll()
+            }
+            if(d.displayMode === FluNavigationView.Minimal){
+                anim_layout_list_x.enabled = false
+                d.enableNavigationPanel = false
+                timer_anim_x_enable.restart()
+            }
+        }
+
+        function handleItems(){
+            var idx = 0
+            var data = []
+            if(items){
+                for(var i=0;i<items.children.length;i++){
+                    var item = items.children[i]
+                    item.idx = idx
+                    data.push(item)
+                    idx++
+                    if(item instanceof FluPaneItemExpander){
+                        for(var j=0;j<item.children.length;j++){
+                            var itemChild = item.children[j]
+                            itemChild.parent = item
+                            itemChild.idx = idx
+                            data.push(itemChild)
+                            idx++
+                        }
+                    }
+                }
+                if(footerItems){
+                    var comEmpty = Qt.createComponent("FluPaneItemEmpty.qml");
+                    for(var k=0;k<footerItems.children.length;k++){
+                        var itemFooter = footerItems.children[k]
+                        if (comEmpty.status === Component.Ready) {
+                            var objEmpty = comEmpty.createObject(items,{idx:idx});
+                            itemFooter.idx = idx;
+                            data.push(objEmpty)
+                            idx++
+                        }
+                    }
+                }
+            }
+            return data
+        }
+    }
+
+    Component{
+        id:com_panel_item_empty
+        Item{
+            visible: false
+        }
+    }
+
+    Component{
+        id:com_panel_item_separatorr
+        FluDivider{
+            width: layout_list.width
+            height: {
+                if(model.parent){
+                    return model.parent.isExpand ? 1 : 0
+                }
+                return 1
+            }
+            Behavior on height {
+                NumberAnimation{
+                    duration: 167
+                    easing.type: Easing.BezierSpline
+                    easing.bezierCurve: [ 0, 0, 0, 1 ]
+                }
+            }
+        }
+    }
+
+    Component{
+        id:com_panel_item_header
+        Item{
+            height: {
+                if(model.parent){
+                    return model.parent.isExpand ? 30 : 0
+                }
+                return 30
+            }
+            Behavior on height {
+                NumberAnimation{
+                    duration: 167
+                    easing.type: Easing.BezierSpline
+                    easing.bezierCurve: [ 0, 0, 0, 1 ]
+                }
+            }
+            width: layout_list.width
+            FluText{
+                text:model.title
+                fontStyle: FluText.BodyStrong
+                anchors{
+                    bottom: parent.bottom
+                    left:parent.left
+                    leftMargin: 10
+                }
+            }
+        }
+    }
+
+    Component{
+        id:com_panel_item_expander
+        Item{
+            height: 38
+            width: layout_list.width
+            Rectangle{
+                radius: 4
+                anchors{
+                    top: parent.top
+                    bottom: parent.bottom
+                    left: parent.left
+                    right: parent.right
+                    topMargin: 2
+                    bottomMargin: 2
+                    leftMargin: 6
+                    rightMargin: 6
+                }
+                Rectangle{
+                    width: 3
+                    height: 18
+                    radius: 1.5
+                    color: FluTheme.primaryColor.dark
+                    visible: {
+                        for(var i=0;i<model.children.length;i++){
+                            var item = model.children[i]
+                            if(item.idx === nav_list.currentIndex && !model.isExpand){
+                                return true
+                            }
+                        }
+                        return false
+                    }
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                    }
+                }
+                FluIcon{
+                    rotation: model.isExpand?0:180
+                    iconSource:FluentIcons.ChevronUp
+                    iconSize: 15
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                        right: parent.right
+                        rightMargin: 12
+                    }
+                    opacity: {
+                        if(d.isCompactAndNotPanel){
+                            return false
+                        }
+                        return true
+                    }
+                    visible:opacity
+                    Behavior on opacity {
+                        NumberAnimation{
+                            duration: 83
+                        }
+                    }
+                    Behavior on rotation {
+                        NumberAnimation{
+                            duration: 83
+                        }
+                    }
+                }
+                MouseArea{
+                    id:item_mouse
+                    hoverEnabled: true
+                    anchors.fill: parent
+                    onClicked: {
+                        if(d.isCompactAndNotPanel){
+                            control_popup.showPopup(Qt.point(50,mapToItem(control,0,0).y),model.children)
+                            return
+                        }
+                        model.isExpand = !model.isExpand
+                    }
+                }
+                color: {
+                    if(FluTheme.dark){
+                        if((nav_list.currentIndex === idx)&&type===0){
+                            return Qt.rgba(1,1,1,0.06)
+                        }
+                        if(item_mouse.containsMouse){
+                            return Qt.rgba(1,1,1,0.03)
+                        }
+                        return Qt.rgba(0,0,0,0)
+                    }else{
+                        if(nav_list.currentIndex === idx&&type===0){
+                            return Qt.rgba(0,0,0,0.06)
+                        }
+                        if(item_mouse.containsMouse){
+                            return Qt.rgba(0,0,0,0.03)
+                        }
+                        return Qt.rgba(0,0,0,0)
+                    }
+                }
+                Component{
+                    id:com_icon
+                    FluIcon{
+                        iconSource: {
+                            if(model.icon){
+                                return model.icon
+                            }
+                            return 0
+                        }
+                        iconSize: 15
+                    }
+                }
+
+                Item{
+                    id:item_icon
+                    width: 30
+                    height: 30
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                        left:parent.left
+                        leftMargin: 3
+                    }
+                    Loader{
+                        anchors.centerIn: parent
+                        sourceComponent: {
+                            if(model.cusIcon){
+                                return model.cusIcon
+                            }
+                            return com_icon
+                        }
+                    }
+                }
+                FluText{
+                    id:item_title
+                    text:model.title
+                    opacity: {
+                        if(d.isCompactAndNotPanel){
+                            return false
+                        }
+                        return true
+                    }
+                    visible:opacity
+                    Behavior on opacity {
+                        NumberAnimation{
+                            duration: 83
+                        }
+                    }
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                        left:item_icon.right
+                    }
+                    color:{
+                        if(item_mouse.pressed){
+                            return FluTheme.dark ? FluColors.Grey80 : FluColors.Grey120
+                        }
+                        return FluTheme.dark ? FluColors.White : FluColors.Grey220
+                    }
+                }
+            }
+        }
+    }
+
+    Component{
+        id:com_panel_item
+        Item{
+            Behavior on height {
+                NumberAnimation{
+                    duration: 167
+                    easing.type: Easing.BezierSpline
+                    easing.bezierCurve: [ 0, 0, 0, 1 ]
+                }
+            }
+            clip: true
+            height: {
+                if(model.parent){
+                    return model.parent.isExpand ? 38 : 0
+                }
+                return 38
+            }
+            width: layout_list.width
+            Rectangle{
+                radius: 4
+                anchors{
+                    top: parent.top
+                    bottom: parent.bottom
+                    left: parent.left
+                    right: parent.right
+                    topMargin: 2
+                    bottomMargin: 2
+                    leftMargin: 6
+                    rightMargin: 6
+                }
+                MouseArea{
+                    id:item_mouse
+                    hoverEnabled: true
+                    anchors.fill: parent
+                    onClicked: {
+                        if(type === 0){
+                            if(model.tapFunc){
+                                model.tapFunc()
+                            }else{
+                                nav_list.currentIndex = idx
+                                layout_footer.currentIndex = -1
+                                if(d.isMinimal || d.isCompact){
+                                    d.enableNavigationPanel = false
+                                }
+                            }
+                        }else{
+                            if(model.tapFunc){
+                                model.tapFunc()
+                            }else{
+                                model.tap()
+                                d.stackItems.push(model)
+                                nav_list.currentIndex = nav_list.count-layout_footer.count+idx
+                                layout_footer.currentIndex = idx
+                                if(d.isMinimal || d.isCompact){
+                                    d.enableNavigationPanel = false
+                                }
+                            }
+                        }
+                    }
+                }
+                color: {
+                    if(FluTheme.dark){
+                        if(type===0){
+                            if(nav_list.currentIndex === idx){
+                                return Qt.rgba(1,1,1,0.06)
+                            }
+                        }else{
+                            if(nav_list.currentIndex === (nav_list.count-layout_footer.count+idx)){
+                                return Qt.rgba(1,1,1,0.06)
+                            }
+                        }
+                        if(item_mouse.containsMouse){
+                            return Qt.rgba(1,1,1,0.03)
+                        }
+                        return Qt.rgba(0,0,0,0)
+                    }else{
+                        if(type===0){
+                            if(nav_list.currentIndex === idx){
+                                return Qt.rgba(0,0,0,0.06)
+                            }
+                        }else{
+                            if(nav_list.currentIndex === (nav_list.count-layout_footer.count+idx)){
+                                return Qt.rgba(0,0,0,0.06)
+                            }
+                        }
+                        if(item_mouse.containsMouse){
+                            return Qt.rgba(0,0,0,0.03)
+                        }
+                        return Qt.rgba(0,0,0,0)
+                    }
+                }
+                Component{
+                    id:com_icon
+                    FluIcon{
+                        iconSource: {
+                            if(model.icon){
+                                return model.icon
+                            }
+                            return 0
+                        }
+                        iconSize: 15
+                    }
+                }
+
+                Item{
+                    id:item_icon
+                    width: 30
+                    height: 30
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                        left:parent.left
+                        leftMargin: 3
+                    }
+                    Loader{
+                        anchors.centerIn: parent
+                        sourceComponent: {
+                            if(model.cusIcon){
+                                return model.cusIcon
+                            }
+                            return com_icon
+                        }
+                    }
+                }
+
+                FluText{
+                    id:item_title
+                    text:model.title
+                    opacity: {
+                        if(d.isCompactAndNotPanel){
+                            return false
+                        }
+                        return true
+                    }
+                    visible:opacity
+                    Behavior on opacity {
+                        NumberAnimation{
+                            duration: 83
+                        }
+                    }
+                    color:{
+                        if(item_mouse.pressed){
+                            return FluTheme.dark ? FluColors.Grey80 : FluColors.Grey120
+                        }
+                        return FluTheme.dark ? FluColors.White : FluColors.Grey220
+                    }
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                        left:item_icon.right
+                    }
+                }
+            }
+        }
+    }
+
+
+    Item {
+        id:nav_app_bar
+        width: parent.width
+        height: 50
+        z:999
+        RowLayout{
+            height:parent.height
+            spacing: 0
+            FluIconButton{
+                iconSource: FluentIcons.ChromeBack
+                Layout.leftMargin: 5
+                Layout.preferredWidth: 40
+                Layout.preferredHeight: 40
+                Layout.alignment: Qt.AlignVCenter
+                disabled:  nav_swipe.depth === 1
+                iconSize: 13
+                onClicked: {
+                    nav_swipe.pop()
+                    d.stackItems.pop()
+                    var item = d.stackItems[d.stackItems.length-1]
+                    d.enableStack = false
+                    if(item.idx<(nav_list.count - layout_footer.count)){
+                        layout_footer.currentIndex = -1
+                    }else{
+                        console.debug(item.idx-(nav_list.count-layout_footer.count))
+                        layout_footer.currentIndex = item.idx-(nav_list.count-layout_footer.count)
+                    }
+                    nav_list.currentIndex = item.idx
+                    d.enableStack = true
+                }
+            }
+            FluIconButton{
+                id:btn_nav
+                iconSource: FluentIcons.GlobalNavButton
+                iconSize: 15
+                Layout.preferredWidth: d.isMinimal ? 40 : 0
+                Layout.preferredHeight: 40
+                Layout.alignment: Qt.AlignVCenter
+                onClicked: {
+                    d.enableNavigationPanel = !d.enableNavigationPanel
+                }
+                visible: Layout.preferredWidth !== 0
+                Behavior on Layout.preferredWidth{
+                    NumberAnimation{
+                        duration: 167
+                        easing.type: Easing.BezierSpline
+                        easing.bezierCurve: [ 0, 0, 0, 1 ]
+                    }
+                }
+            }
+            Image{
+                id:image_logo
+                Layout.preferredHeight: 20
+                Layout.preferredWidth: 20
+                source: control.logo
+                Layout.leftMargin: {
+                    if(btn_nav.visible){
+                        return 12
+                    }
+                    return 5
+                }
+                Layout.alignment: Qt.AlignVCenter
+            }
+            FluText{
+                Layout.alignment: Qt.AlignVCenter
+                text:control.title
+                Layout.leftMargin: 12
+                fontStyle: FluText.Body
+            }
+        }
+    }
+
+    Item{
+        anchors{
+            left: d.isMinimal || d.isCompactAndPanel  ? parent.left : layout_list.right
+            top: nav_app_bar.bottom
+            right: parent.right
+            bottom: parent.bottom
+            leftMargin: d.isCompactAndPanel ? 50 : 0
+        }
+        StackView{
+            id:nav_swipe
+            anchors.fill: parent
+            clip: true
+            popEnter : Transition{}
+            popExit : Transition {
+                NumberAnimation {
+                    properties: "y"
+                    from: 0
+                    to: nav_swipe.height
+                    duration: 167
+                    easing.type: Easing.BezierSpline
+                    easing.bezierCurve: [ 1, 0, 0, 0 ]
+                }
+            }
+            pushEnter: Transition {
+                NumberAnimation {
+                    properties: "y";
+                    from: nav_swipe.height;
+                    to: 0
+                    duration: 167
+                    easing.type: Easing.BezierSpline
+                    easing.bezierCurve: [ 0, 0, 0, 1 ]
+                }
+            }
+            pushExit : Transition{}
+            replaceEnter : Transition{}
+            replaceExit : Transition{}
+        }
+    }
+
+    MouseArea{
+        anchors.fill: parent
+        visible: d.isMinimalAndPanel||d.isCompactAndPanel
+        onClicked: {
+            d.enableNavigationPanel = false
+        }
+    }
+
+    Rectangle{
+        id:layout_list
+        width: {
+            if(d.isCompactAndNotPanel){
+                return 50
+            }
+            return 300
+        }
+        Behavior on width{
+            NumberAnimation{
+                duration: 167
+                easing.type: Easing.BezierSpline
+                easing.bezierCurve: [ 0, 0, 0, 1 ]
+            }
+        }
+        Behavior on x{
+            id:anim_layout_list_x
+            NumberAnimation{
+                duration: 167
+                easing.type: Easing.BezierSpline
+                easing.bezierCurve: [ 0, 0, 0, 1 ]
+            }
+        }
+        anchors{
+            top: parent.top
+            bottom: parent.bottom
+        }
+        border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,230/255,234/255,1)
+        border.width:  d.isMinimal || d.isCompactAndPanel ? 1 : 0
+        color: {
+            if(d.isMinimal || d.isCompactAndPanel){
+                return FluTheme.dark ? Qt.rgba(61/255,61/255,61/255,1) : Qt.rgba(243/255,243/255,243/255,1)
+            }
+            if(window && window.active){
+                return FluTheme.dark ? Qt.rgba(26/255,34/255,41/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)
+        }
+        Behavior on color{
+            ColorAnimation {
+                duration: 300
+            }
+        }
+        x: {
+            if(d.displayMode !== FluNavigationView.Minimal)
+                return 0
+            return d.isMinimalAndPanel  ? 0 : -width
+        }
+        Item{
+            id:layout_header
+            width: layout_list.width
+            clip: true
+            y:nav_app_bar.height
+            height: autoSuggestBox ? 38 : 0
+            Loader{
+                id:loader_auto_suggest_box
+                anchors.centerIn: parent
+                sourceComponent: autoSuggestBox
+                opacity: {
+                    if(d.isCompactAndNotPanel){
+                        return false
+                    }
+                    return true
+                }
+                visible: opacity
+                Behavior on opacity{
+                    NumberAnimation{
+                        duration: 83
+                    }
+                }
+            }
+
+            FluIconButton{
+                visible:opacity
+                opacity:d.isCompactAndNotPanel
+                Behavior on opacity{
+                    NumberAnimation{
+                        duration: 83
+                    }
+                }
+                hoverColor: FluTheme.dark ? Qt.rgba(1,1,1,0.03) : Qt.rgba(0,0,0,0.03)
+                pressedColor: FluTheme.dark ? Qt.rgba(1,1,1,0.03) : Qt.rgba(0,0,0,0.03)
+                normalColor: FluTheme.dark ? Qt.rgba(0,0,0,0) : Qt.rgba(0,0,0,0)
+                width:38
+                height:34
+                x:6
+                y:2
+                iconSize: 15
+                iconSource: {
+                    if(loader_auto_suggest_box.item){
+                        return loader_auto_suggest_box.item.autoSuggestBoxReplacement
+                    }
+                    return 0
+                }
+                onClicked: {
+                    d.enableNavigationPanel = !d.enableNavigationPanel
+                }
+            }
+        }
+
+        ListView{
+            id:nav_list
+            clip: true
+            ScrollBar.vertical: FluScrollBar {}
+            model:d.handleItems()
+            highlightMoveDuration: 150
+            highlight: Item{
+                clip: true
+                Rectangle{
+                    height: 18
+                    radius: 1.5
+                    color: FluTheme.primaryColor.dark
+                    width: 3
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                        left: parent.left
+                        leftMargin: 6
+                    }
+                }
+            }
+            onCurrentIndexChanged: {
+                if(d.enableStack){
+                    var item = model[currentIndex]
+                    if(item instanceof FluPaneItem){
+                        item.tap()
+                        d.stackItems.push(item)
+                    }
+                }
+            }
+            currentIndex: -1
+            anchors{
+                top: layout_header.bottom
+                topMargin: 6
+                left: parent.left
+                right: parent.right
+                bottom: layout_footer.top
+            }
+            delegate: Loader{
+                property var model: modelData
+                property var idx: index
+                property int type: 0
+                sourceComponent: {
+                    if(modelData instanceof FluPaneItem){
+                        return com_panel_item
+                    }
+                    if(modelData instanceof FluPaneItemHeader){
+                        return com_panel_item_header
+                    }
+                    if(modelData instanceof FluPaneItemSeparator){
+                        return com_panel_item_separatorr
+                    }
+                    if(modelData instanceof FluPaneItemExpander){
+                        return com_panel_item_expander
+                    }
+                    if(modelData instanceof FluPaneItemEmpty){
+                        return com_panel_item_empty
+                    }
+                }
+            }
+        }
+        ListView{
+            id:layout_footer
+            clip: true
+            width: layout_list.width
+            height: childrenRect.height
+            anchors.bottom: parent.bottom
+            interactive: false
+            currentIndex: -1
+            model: {
+                if(footerItems){
+                    return footerItems.children
+                }
+            }
+            highlightMoveDuration: 150
+            highlight: Item{
+                clip: true
+                Rectangle{
+                    height: 18
+                    radius: 1.5
+                    color: FluTheme.primaryColor.dark
+                    width: 3
+                    anchors{
+                        verticalCenter: parent.verticalCenter
+                        left: parent.left
+                        leftMargin: 6
+                    }
+                }
+            }
+            delegate: Loader{
+                property var model: modelData
+                property var idx: index
+                property int type: 1
+                sourceComponent: {
+                    if(modelData instanceof FluPaneItem){
+                        return com_panel_item
+                    }
+                    if(modelData instanceof FluPaneItemHeader){
+                        return com_panel_item_header
+                    }
+                    if(modelData instanceof FluPaneItemSeparator){
+                        return com_panel_item_separatorr
+                    }
+                }
+            }
+        }
+    }
+
+    Popup{
+        property var childModel
+        id:control_popup
+        enter: Transition {
+            NumberAnimation {
+                property: "opacity"
+                from:0
+                to:1
+                duration: 83
+            }
+        }
+        background: Rectangle{
+            width: 160
+            radius: 4
+            FluShadow{
+                radius: 4
+            }
+            color: FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(248/255,250/255,253/255,1)
+            height: 38*Math.min(Math.max(list_view.count,1),8)
+            ListView{
+                id:list_view
+                anchors.fill: parent
+                clip: true
+                currentIndex: -1
+                model: control_popup.childModel
+                ScrollBar.vertical: FluScrollBar {}
+                delegate:Button{
+                    width: 160
+                    padding:10
+                    background: Rectangle{
+                        color:  {
+                            if(hovered){
+                                return FluTheme.dark ? Qt.rgba(63/255,60/255,61/255,1) : Qt.rgba(237/255,237/255,242/255,1)
+                            }
+                            return FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(0,0,0,0)
+                        }
+                    }
+                    contentItem: FluText{
+                        text:modelData.title
+                        anchors{
+                            verticalCenter: parent.verticalCenter
+                        }
+                    }
+                    onClicked: {
+                        if(modelData.tapFunc){
+                            modelData.tapFunc()
+                        }else{
+                            nav_list.currentIndex = idx
+                            layout_footer.currentIndex = -1
+                            if(d.isMinimal || d.isCompact){
+                                d.enableNavigationPanel = false
+                            }
+                        }
+                        control_popup.close()
+                    }
+                }
+            }
+        }
+        function showPopup(pos,model){
+            control_popup.x = pos.x
+            control_popup.y = pos.y
+            control_popup.childModel = model
+            control_popup.open()
+        }
+    }
+
+    Timer{
+        id:timer_anim_x_enable
+        interval: 150
+        onTriggered: {
+            anim_layout_list_x.enabled = true
+        }
+    }
+
+    function collapseAll(){
+        for(var i=0;i<nav_list.model.length;i++){
+            var item = nav_list.model[i]
+            if(item instanceof FluPaneItemExpander){
+                item.isExpand = false
+            }
+        }
+    }
+
+    function setCurrentIndex(index){
+        nav_list.currentIndex = index
+
+    }
+
+    function getItems(){
+        return nav_list.model
+    }
+
+    function push(url){
+        nav_swipe.push(url)
+    }
+
+    function getCurrentIndex(){
+        return nav_list.currentIndex
+    }
+
+    function startPageByItem(data){
+        var items = getItems();
+        for(var i=0;i<items.length;i++){
+            var item =  items[i]
+            if(item.key === data.key){
+                if(getCurrentIndex() === i){
+                    return
+                }
+                setCurrentIndex(i)
+                if(item.parent && !d.isCompactAndNotPanel){
+                    item.parent.isExpand = true
+                }
+                return
+            }
+        }
+    }
+
+}

+ 9 - 0
module/gui/FluentUI/Controls/FluObject.qml

@@ -0,0 +1,9 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+QtObject {
+    id:flu_object;
+
+    default property list<QtObject> children;
+}

+ 110 - 0
module/gui/FluentUI/Controls/FluPagination.qml

@@ -0,0 +1,110 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import FluentUI
+
+Item {
+    id: control
+    signal requestPage(int page,int count)
+    property string previousText: "<上一页"
+    property string nextText: "下一页>"
+    property int pageCurrent: 0
+    property int itemCount: 0
+    property int pageCount: itemCount>0?Math.ceil(itemCount/__itemPerPage):0
+    property int __itemPerPage: 10
+    property int pageButtonCount: 5
+    property int __pageButtonHalf: Math.floor(pageButtonCount/2)+1
+
+
+    implicitHeight: 40
+    implicitWidth: content.width
+
+    Row{
+        id: content
+        height: control.height
+        spacing: 25
+        padding: 10
+
+
+        FluToggleButton{
+            visible: control.pageCount>1
+            disabled: control.pageCurrent<=1
+            text:control.previousText
+            onClicked: {
+                control.calcNewPage(control.pageCurrent-1);
+            }
+        }
+
+        Row{
+            spacing: 5
+            FluToggleButton{
+                property int pageNumber:1
+                visible: control.pageCount>0
+                enabled: control.pageCurrent>1
+                selected: pageNumber === control.pageCurrent
+                text:String(pageNumber)
+                onClicked: {
+                    control.calcNewPage(pageNumber);
+                }
+            }
+            FluText{
+                visible: (control.pageCount>control.pageButtonCount&&
+                          control.pageCurrent>control.__pageButtonHalf)
+                text: "..."
+            }
+            Repeater{
+                id: button_repeator
+                model: (control.pageCount<2)?0:(control.pageCount>=control.pageButtonCount)?(control.pageButtonCount-2):(control.pageCount-2)
+                delegate:FluToggleButton{
+                    property int  pageNumber: {
+                        return (control.pageCurrent<=control.__pageButtonHalf)
+                                ?(2+index)
+                                :(control.pageCount-control.pageCurrent<=control.pageButtonCount-control.__pageButtonHalf)
+                                  ?(control.pageCount-button_repeator.count+index)
+                                  :(control.pageCurrent+2+index-control.__pageButtonHalf)
+                    }
+                    text:String(pageNumber)
+                    selected: pageNumber === control.pageCurrent
+                    onClicked: {
+                        control.calcNewPage(pageNumber);
+                    }
+                }
+            }
+            FluText{
+                visible: (control.pageCount>control.pageButtonCount&&
+                          control.pageCount-control.pageCurrent>control.pageButtonCount-control.__pageButtonHalf)
+                text: "..."
+            }
+            FluToggleButton{
+                property int pageNumber:control.pageCount
+                visible: control.pageCount>1
+                selected: pageNumber === control.pageCurrent
+                text:String(pageNumber)
+                onClicked: {
+                    control.calcNewPage(pageNumber);
+                }
+            }
+        }
+        FluToggleButton{
+            visible: control.pageCount>1
+            disabled: control.pageCurrent>=control.pageCount
+            text:control.nextText
+            onClicked: {
+                control.calcNewPage(control.pageCurrent+1);
+            }
+        }
+    }
+
+    function calcNewPage(page)
+    {
+        if(!page)
+            return
+        let page_num=Number(page)
+        if(page_num<1||page_num>control.pageCount||page_num===control.pageCurrent)
+            return
+        control.pageCurrent=page_num
+        control.requestPage(page_num,control.__itemPerPage)
+    }
+
+
+}

+ 20 - 0
module/gui/FluentUI/Controls/FluPaneItem.qml

@@ -0,0 +1,20 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+QtObject {
+    readonly property string key : FluTools.uuid()
+    readonly property int flag : 0
+    property string title
+    property int order : 0
+    property int icon
+    property Component cusIcon
+    property bool recentlyAdded: false
+    property bool recentlyUpdated: false
+    property string desc
+    property var image
+    property var parent
+    property int idx
+    signal tap
+    property var tapFunc
+}

+ 9 - 0
module/gui/FluentUI/Controls/FluPaneItemEmpty.qml

@@ -0,0 +1,9 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+QtObject {
+    readonly property string key : FluTools.uuid()
+    property var parent
+    property int idx
+}

+ 13 - 0
module/gui/FluentUI/Controls/FluPaneItemExpander.qml

@@ -0,0 +1,13 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+FluObject {
+    readonly property string key : FluTools.uuid()
+    property string title
+    property var icon
+    property Component cusIcon
+    property bool isExpand: false
+    property var parent
+    property int idx
+}

+ 10 - 0
module/gui/FluentUI/Controls/FluPaneItemHeader.qml

@@ -0,0 +1,10 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+QtObject {
+    readonly property string key : FluTools.uuid()
+    property string title
+    property var parent
+    property int idx
+}

+ 9 - 0
module/gui/FluentUI/Controls/FluPaneItemSeparator.qml

@@ -0,0 +1,9 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+QtObject {
+    readonly property string key : FluTools.uuid()
+    property var parent
+    property int idx
+}

+ 120 - 0
module/gui/FluentUI/Controls/FluPasswordBox.qml

@@ -0,0 +1,120 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+TextField{
+
+    property int fontStyle: FluText.Body
+    property int pixelSize : FluTheme.textSize
+    property bool disabled: false
+    property int iconSource: 0
+    property color normalColor: FluTheme.dark ?  Qt.rgba(255/255,255/255,255/255,1) : Qt.rgba(27/255,27/255,27/255,1)
+    property color disableColor: FluTheme.dark ? Qt.rgba(131/255,131/255,131/255,1) : Qt.rgba(160/255,160/255,160/255,1)
+    property color placeholderNormalColor: FluTheme.dark ? Qt.rgba(210/255,210/255,210/255,1) : Qt.rgba(96/255,96/255,96/255,1)
+    property color placeholderFocusColor: FluTheme.dark ? Qt.rgba(152/255,152/255,152/255,1) : Qt.rgba(141/255,141/255,141/255,1)
+    property color placeholderDisableColor: FluTheme.dark ? Qt.rgba(131/255,131/255,131/255,1) : Qt.rgba(160/255,160/255,160/255,1)
+
+    id:control
+    width: 300
+    enabled: !disabled
+    color: {
+        if(disabled){
+            return disableColor
+        }
+        return normalColor
+    }
+    echoMode:btn_reveal.pressed ? TextField.Normal : TextField.Password
+    renderType: FluTheme.nativeText ? Text.NativeRendering : Text.QtRendering
+    selectionColor: FluTheme.primaryColor.lightest
+    placeholderTextColor: {
+        if(disabled){
+            return placeholderDisableColor
+        }
+        if(focus){
+            return placeholderFocusColor
+        }
+        return placeholderNormalColor
+    }
+    font.bold: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return true
+        case FluText.TitleLarge:
+            return true
+        case FluText.Title:
+            return true
+        case FluText.SubTitle:
+            return true
+        case FluText.BodyStrong:
+            return true
+        case FluText.Body:
+            return false
+        case FluText.Caption:
+            return false
+        default:
+            return false
+        }
+    }
+    font.pixelSize: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return text.pixelSize * 4.857
+        case FluText.TitleLarge:
+            return text.pixelSize * 2.857
+        case FluText.Title:
+            return text.pixelSize * 2
+        case FluText.SubTitle:
+            return text.pixelSize * 1.428
+        case FluText.Body:
+            return text.pixelSize * 1.0
+        case FluText.BodyStrong:
+            return text.pixelSize * 1.0
+        case FluText.Caption:
+            return text.pixelSize * 0.857
+        default:
+            return text.pixelSize * 1.0
+        }
+    }
+    selectByMouse: true
+    rightPadding: icon_end.visible ? 50 : 30
+    background: FluTextBoxBackground{
+        inputItem: control
+        FluIcon{
+            id:icon_end
+            iconSource: control.iconSource
+            iconSize: 15
+            opacity: 0.5
+            visible: control.iconSource != 0
+            anchors{
+                verticalCenter: parent.verticalCenter
+                right: parent.right
+                rightMargin: 5
+            }
+        }
+    }
+    FluIconButton{
+        id:btn_reveal
+        iconSource:FluentIcons.RevealPasswordMedium
+        iconSize: 10
+        width: 20
+        height: 20
+        opacity: 0.5
+        visible: control.text !== ""
+        anchors{
+            verticalCenter: parent.verticalCenter
+            right: parent.right
+            rightMargin: icon_end.visible ? 25 : 5
+        }
+    }
+    TapHandler {
+        acceptedButtons: Qt.RightButton
+        onTapped: control.echoMode !== TextInput.Password && menu.popup()
+    }
+    FluTextBoxMenu{
+        id:menu
+        inputItem: control
+    }
+
+}
+

+ 104 - 0
module/gui/FluentUI/Controls/FluPivot.qml

@@ -0,0 +1,104 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    default property alias content: d.children
+    property alias currentIndex: nav_list.currentIndex
+    property color normalColor: FluTheme.dark ? FluColors.Grey120 : FluColors.Grey120
+    property color hoverColor: FluTheme.dark ? FluColors.Grey10 : FluColors.Black
+
+    id:control
+    width: 400
+    height: 300
+    implicitHeight: height
+    implicitWidth: width
+
+    MouseArea{
+        anchors.fill: parent
+        preventStealing: true
+    }
+
+    FluObject{
+        id:d
+    }
+
+    ListView{
+        id:nav_list
+        height: 40
+        width: control.width
+        model:d.children
+        clip: true
+        spacing: 20
+        interactive: false
+        orientation:ListView.Horizontal
+        highlight: Item{
+            clip: true
+            Rectangle{
+                height: 3
+                radius: 1.5
+                color: FluTheme.primaryColor.dark
+                width: nav_list.currentItem ? nav_list.currentItem.width : 0
+                y:37
+                Behavior on width {
+                    NumberAnimation{
+                        duration: 150
+                    }
+                }
+            }
+        }
+        delegate: Button{
+            id:item_button
+            width: item_title.width
+            height: nav_list.height
+            background:Item{
+            }
+            contentItem: Item{
+                FluText {
+                    id:item_title
+                    fontStyle: FluText.Title
+                    font.bold: false
+                    text: modelData.title
+                    anchors.centerIn: parent
+                    color: {
+                        if(item_button.hovered)
+                            return hoverColor
+                        return normalColor
+                    }
+                }
+                transitions: Transition {
+                    NumberAnimation{
+                        duration: 400;
+                    }
+                }
+            }
+            onClicked: {
+                nav_list.currentIndex = index
+            }
+        }
+    }
+
+    Item{
+        id:container
+        anchors{
+            top: nav_list.bottom
+            topMargin: 10
+            left: parent.left
+            right: parent.right
+            bottom: parent.bottom
+        }
+
+        Repeater{
+            model:d.children
+            Loader{
+                property var argument: modelData.argument
+                anchors.fill: parent
+                sourceComponent: modelData.contentItem
+                visible: nav_list.currentIndex === index
+            }
+        }
+    }
+
+
+}

+ 9 - 0
module/gui/FluentUI/Controls/FluPivotItem.qml

@@ -0,0 +1,9 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+QtObject {
+    property string title
+    property Component contentItem
+    property var argument
+}

+ 50 - 0
module/gui/FluentUI/Controls/FluProgressBar.qml

@@ -0,0 +1,50 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+FluRectangle {
+
+    property real progress: 0.5
+    property bool indeterminate: true
+
+    id: control
+    width: 150
+    height: 5
+    radius: [3,3,3,3]
+    clip: true
+    color:  FluTheme.dark ? Qt.rgba(99/255,99/255,99/255,1) : Qt.rgba(214/255,214/255,214/255,1)
+
+    Component.onCompleted: {
+        if(indeterminate){
+            bar.x = -control.width*0.5
+            behavior.enabled = true
+            bar.x = control.width
+        }else{
+            bar.x = 0
+        }
+    }
+
+    Rectangle{
+        id:bar
+        radius: 3
+        width: control.width*progress
+        height:  control.height
+        color:FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+
+        Behavior on x{
+            id:behavior
+            enabled: false
+            NumberAnimation{
+                duration: 1000
+                onRunningChanged: {
+                    if(!running){
+                        behavior.enabled = false
+                        bar.x = -control.width*0.5
+                        behavior.enabled = true
+                        bar.x = control.width
+                    }
+                }
+            }
+        }
+    }
+}

+ 79 - 0
module/gui/FluentUI/Controls/FluProgressRing.qml

@@ -0,0 +1,79 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Rectangle {
+
+    property real linWidth : 5
+    property real progress: 0.25
+    property bool indeterminate: true
+    readonly property real radius2 : radius - linWidth/2
+    property color primaryColor : FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+
+    id: control
+    width: 44
+    height: 44
+    radius: 22
+    border.width: linWidth
+    color: "#00000000"
+    border.color: FluTheme.dark ? Qt.rgba(99/255,99/255,99/255,1) : Qt.rgba(214/255,214/255,214/255,1)
+
+    onProgressChanged: {
+        canvas.requestPaint()
+    }
+
+    Connections{
+        target: FluTheme
+        function onDarkChanged(){
+            canvas.requestPaint()
+        }
+    }
+
+    Component.onCompleted: {
+        if(indeterminate){
+            behavior.enabled = true
+            control.rotation = 360
+        }
+    }
+
+    Behavior on rotation{
+        id:behavior
+        enabled: false
+        NumberAnimation{
+            duration: 999
+            easing.type: Easing.BezierSpline
+            easing.bezierCurve: [0.55,0.55,0,1]
+            onRunningChanged: {
+                if(!running){
+                    behavior.enabled = false
+                    control.rotation = 0
+                    behavior.enabled = true
+                    control.rotation = 360
+                }
+            }
+        }
+    }
+
+    Canvas {
+        id:canvas
+        anchors.fill: parent
+        antialiasing: true
+        renderTarget: Canvas.Image
+        onPaint: {
+            var ctx = canvas.getContext("2d");
+            ctx.setTransform(1, 0, 0, 1, 0, 0);
+            ctx.clearRect(0, 0, canvas.width, canvas.height);
+            ctx.save();
+            ctx.lineWidth = linWidth;
+            ctx.strokeStyle = primaryColor;
+            ctx.fillStyle = primaryColor;
+            ctx.beginPath();
+            ctx.arc(width/2, height/2, radius2 ,-0.5 * Math.PI,-0.5 * Math.PI + progress * 2 * Math.PI);
+            ctx.stroke();
+            ctx.closePath();
+            ctx.restore();
+        }
+    }
+
+
+}

+ 103 - 0
module/gui/FluentUI/Controls/FluRadioButton.qml

@@ -0,0 +1,103 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import QtQuick.Layouts
+import FluentUI
+
+Button {
+
+    property bool selected: false
+    property bool disabled: false
+
+    id:control
+    enabled: !disabled
+    focusPolicy:Qt.TabFocus
+    padding:0
+    background: Item{
+        FluFocusRectangle{
+            visible: control.visualFocus
+        }
+    }
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+    contentItem: RowLayout{
+        Rectangle{
+            id:rect_check
+            width: 20
+            height: 20
+            radius: 10
+            border.width: {
+                if(selected&&disabled){
+                    return 3
+                }
+                if(pressed){
+                    if(selected){
+                        return 5
+                    }
+                    return 1
+                }
+                if(hovered){
+                    if(selected){
+                        return 3
+                    }
+                    return 1
+                }
+                return selected ? 5 : 1
+            }
+            Behavior on border.width {
+                NumberAnimation{
+                    duration: 167
+                    easing.type: Easing.BezierSpline
+                    easing.bezierCurve: [ 0, 0, 0, 1 ]
+                }
+            }
+            border.color: {
+                if(disabled){
+                    if(FluTheme.dark){
+                        return Qt.rgba(82/255,82/255,82/255,1)
+                    }else{
+                        return Qt.rgba(198/255,198/255,198/255,1)
+                    }
+                }
+                if(selected){
+                    if(FluTheme.dark){
+                        return FluTheme.primaryColor.lighter
+                    }else{
+
+                        return FluTheme.primaryColor.dark
+                    }
+                }else{
+                    if(FluTheme.dark){
+                        return Qt.rgba(161/255,161/255,161/255,1)
+                    }else{
+
+                        return Qt.rgba(141/255,141/255,141/255,1)
+                    }
+                }
+            }
+            color:{
+                if(disabled&&selected){
+                    return Qt.rgba(159/255,159/255,159/255,1)
+                }
+                if(FluTheme.dark){
+                    if(hovered){
+                        return Qt.rgba(43/255,43/255,43/255,1)
+                    }
+                    return Qt.rgba(50/255,50/255,50/255,1)
+                }else{
+                    if(hovered){
+                        if(selected){
+                            return Qt.rgba(1,1,1,1)
+                        }
+                        return Qt.rgba(222/255,222/255,222/255,1)
+                    }
+                    return Qt.rgba(1,1,1,1)
+                }
+            }
+        }
+        FluText{
+            text: control.text
+            Layout.alignment: Qt.AlignVCenter
+        }
+    }
+}
+

+ 60 - 0
module/gui/FluentUI/Controls/FluRatingControl.qml

@@ -0,0 +1,60 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    property int number: 5
+    property int spacing: 4
+    property int size: 18
+    property int value:0
+
+    id:control
+    implicitWidth: container.width
+    implicitHeight: container.height
+
+    QtObject{
+        id:d
+        property int mouseValue: 0
+        property int itemSize: control.size+spacing*2
+    }
+
+    Row{
+        id:container
+        spacing: 0
+        Repeater{
+            model:control.number
+            Item{
+                width: d.itemSize
+                height: d.itemSize
+                FluIcon{
+                    property bool isSelected : {
+                        if(d.mouseValue!==0){
+                            return index<d.mouseValue
+                        }
+                        return index<control.value
+                    }
+                    iconSize: control.size
+                    iconSource: isSelected ? FluentIcons.FavoriteStarFill : FluentIcons.FavoriteStar
+                    iconColor: isSelected ? FluTheme.primaryColor.dark : (FluTheme.dark ? "#FFFFFF" : "#000000")
+                    anchors.centerIn: parent
+                }
+            }
+        }
+    }
+
+    MouseArea{
+        anchors.fill: container
+        hoverEnabled: true
+        onPositionChanged: (mouse)=>{
+            d.mouseValue = Number(mouse.x / d.itemSize)+1
+        }
+        onExited: {
+            d.mouseValue = 0
+        }
+        onClicked: (mouse)=>{
+            control.value = Number(mouse.x / d.itemSize)+1
+        }
+    }
+
+}

+ 69 - 0
module/gui/FluentUI/Controls/FluRectangle.qml

@@ -0,0 +1,69 @@
+import QtQuick
+import QtQuick.Controls
+import Qt5Compat.GraphicalEffects
+import FluentUI
+
+Item{
+
+    property var radius:[0,0,0,0]
+    property color color : "#FFFFFF"
+    property bool shadow: true
+    default property alias contentItem: container.data
+
+    id:control
+    FluShadow{
+        anchors.fill: container
+        radius: control.radius[0]
+        visible: {
+            if(control.radius[0] === control.radius[1] && control.radius[0] === control.radius[2] && control.radius[0] === control.radius[3] && control.shadow){
+                return true
+            }
+            return false
+        }
+    }
+
+    Rectangle{
+        id:container
+        width: control.width
+        height: control.height
+        opacity: 0
+        color:control.color
+    }
+
+    Canvas {
+        id: canvas
+        anchors.fill: parent
+        visible: false
+        onPaint: {
+            var ctx = getContext("2d");
+            var x = 0;
+            var y = 0;
+            var w = control.width;
+            var h = control.height;
+            ctx.setTransform(1, 0, 0, 1, 0, 0);
+            ctx.clearRect(0, 0, canvas.width, canvas.height);
+            ctx.save();
+            ctx.beginPath();
+            ctx.moveTo(x + radius[0], y);
+            ctx.lineTo(x + w - radius[1], y);
+            ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]);
+            ctx.lineTo(x + w, y + h - radius[2]);
+            ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]);
+            ctx.lineTo(x + radius[3], y + h);
+            ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]);
+            ctx.lineTo(x, y + radius[0]);
+            ctx.arcTo(x, y, x + radius[0], y, radius[0]);
+            ctx.closePath();
+            ctx.fillStyle = control.color;
+            ctx.fill();
+            ctx.restore();
+        }
+    }
+
+    OpacityMask {
+        anchors.fill: container
+        source: container
+        maskSource: canvas
+    }
+
+}

+ 194 - 0
module/gui/FluentUI/Controls/FluScrollBar.qml

@@ -0,0 +1,194 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+ScrollBar {
+
+    property color handleNormalColor: Qt.rgba(134/255,134/255,134/255,1)
+    property color handleHoverColor: Qt.lighter(handleNormalColor)
+    property color handlePressColor: Qt.darker(handleNormalColor)
+    property bool expand: false
+
+    id: control
+    implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
+                            implicitContentWidth + leftPadding + rightPadding)
+    implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
+                             implicitContentHeight + topPadding + bottomPadding)
+
+    visible: control.policy !== ScrollBar.AlwaysOff
+    minimumSize: 0.3
+    topPadding:{
+        if(vertical){
+            if(expand)
+                return 15
+            return 2
+        }else{
+            if(expand){
+                return 2
+            }
+            return 4
+        }
+    }
+    bottomPadding:{
+        if(vertical){
+            if(expand)
+                return 15
+            return 2
+        }else{
+            if(expand){
+                return 2
+            }
+            return 4
+        }
+    }
+    leftPadding:{
+        if(vertical){
+            if(expand){
+                return 2
+            }
+            return 4
+        }else{
+            if(expand)
+                return 15
+            return 2
+        }
+    }
+    rightPadding:{
+        if(vertical){
+            if(expand){
+                return 2
+            }
+            return 4
+        }else{
+            if(expand)
+                return 15
+            return 2
+        }
+    }
+    Behavior on topPadding {
+        NumberAnimation{
+            duration: 150
+        }
+    }
+    Behavior on bottomPadding {
+        NumberAnimation{
+            duration: 150
+        }
+    }
+    Behavior on leftPadding {
+        NumberAnimation{
+            duration: 150
+        }
+    }
+    Behavior on rightPadding {
+        NumberAnimation{
+            duration: 150
+        }
+    }
+    contentItem: Rectangle {
+        id:item_react
+        implicitWidth: expand ? 8 : 2
+        implicitHeight:  expand ? 8 : 2
+        radius: width / 2
+        color: control.pressed?handlePressColor:control.hovered?handleHoverColor:handleNormalColor
+        opacity:(control.policy === ScrollBar.AlwaysOn || control.size < 1.0)?1.0:0.0
+    }
+    background:  Rectangle{
+        radius: 5
+        color: {
+            if(expand && item_react.opacity){
+                if(FluTheme.dark){
+                    return Qt.rgba(0,0,0,1)
+                }
+                return Qt.rgba(1,1,1,1)
+            }
+            return Qt.rgba(0,0,0,0)
+        }
+        MouseArea{
+            id:mouse_item
+            hoverEnabled: true
+            anchors.fill: parent
+            onEntered: {
+                timer.restart()
+            }
+            onExited: {
+                timer.restart()
+            }
+        }
+    }
+    Timer{
+        id:timer
+        interval: 800
+        onTriggered: {
+            expand = mouse_item.containsMouse || btn_top.hovered || btn_bottom.hovered || btn_left.hovered || btn_right.hovered
+        }
+    }
+    Behavior on implicitWidth {
+        NumberAnimation{
+            duration: 150
+        }
+    }
+
+    FluIconButton{
+        id:btn_top
+        iconSource: FluentIcons.CaretSolidUp
+        anchors.horizontalCenter: parent.horizontalCenter
+        width:10
+        height:10
+        z:100
+        iconColor: hovered ? FluColors.Black : FluColors.Grey120
+        iconSize: 8
+        anchors.top: parent.top
+        anchors.topMargin: 4
+        visible:vertical && expand && item_react.opacity
+        onClicked:{
+            decrease()
+        }
+    }
+    FluIconButton{
+        id:btn_bottom
+        iconSource: FluentIcons.CaretSolidDown
+        visible:vertical && expand && item_react.opacity
+        width:10
+        height:10
+        iconSize: 8
+        iconColor: hovered ? FluColors.Black : FluColors.Grey120
+        anchors.horizontalCenter: parent.horizontalCenter
+        anchors.bottom: parent.bottom
+        anchors.bottomMargin: 4
+        onClicked:{
+            increase()
+        }
+    }
+    FluIconButton{
+        id:btn_left
+        iconSource: FluentIcons.CaretSolidLeft
+        visible:!vertical && expand && item_react.opacity
+        width:10
+        height:10
+        iconSize: 8
+        iconColor: hovered ? FluColors.Black : FluColors.Grey120
+        anchors.leftMargin: 4
+        anchors.verticalCenter: parent.verticalCenter
+        anchors.left: parent.left
+        onClicked:{
+            decrease()
+        }
+    }
+    FluIconButton{
+        id:btn_right
+        iconSource: FluentIcons.CaretSolidRight
+        visible:!vertical && expand && item_react.opacity
+        width:10
+        height:10
+        iconSize: 8
+        iconColor: hovered ? FluColors.Black : FluColors.Grey120
+        anchors.rightMargin: 4
+        anchors.verticalCenter: parent.verticalCenter
+        anchors.right: parent.right
+        onClicked:{
+            increase()
+        }
+    }
+
+}

+ 66 - 0
module/gui/FluentUI/Controls/FluScrollablePage.qml

@@ -0,0 +1,66 @@
+import QtQuick
+import QtQuick.Layouts
+import QtQuick.Window
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    property alias title: text_title.text
+    default property alias content: container.data
+    property int spacing : 5
+    property int leftPadding: 0
+    property int topPadding: 0
+    property int rightPadding: 0
+    property int bottomPadding: 0
+
+    id:control
+
+    FluText{
+        id:text_title
+        fontStyle: FluText.TitleLarge
+        visible: text !== ""
+        height: visible?implicitHeight:0
+        anchors{
+            top: parent.top
+            topMargin: control.topPadding
+            left: parent.left
+            right: parent.right
+            leftMargin: control.leftPadding
+            rightMargin: control.rightPadding
+        }
+    }
+
+    Flickable{
+        id:flickview
+        clip: true
+        anchors{
+            left: parent.left
+            right: parent.right
+            top: text_title.bottom
+            bottom: parent.bottom
+            bottomMargin: control.bottomPadding
+        }
+        contentWidth: parent.width
+        contentHeight: container.height
+        ScrollBar.vertical: FluScrollBar {
+        }
+        anchors{
+            top: text_title.bottom
+            bottom: parent.bottom
+        }
+        ColumnLayout{
+            id:container
+            spacing: control.spacing
+            clip: true
+            anchors{
+                left: parent.left
+                right: parent.right
+                top: parent.top
+                leftMargin: control.leftPadding
+                rightMargin: control.rightPadding
+            }
+            width: parent.width
+        }
+    }
+}

+ 68 - 0
module/gui/FluentUI/Controls/FluShadow.qml

@@ -0,0 +1,68 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    property color color: FluTheme.dark ? "#FFFFFF" : "#999999"
+    property int radius: 4
+
+    id:root
+    anchors.fill: parent
+    anchors.margins: -4
+
+    Rectangle{
+        width: root.width
+        height: root.height
+        anchors.centerIn: parent
+        color: "#00000000"
+        opacity: 0.02
+        border.width: 1
+        radius: root.radius
+        border.color: root.color
+    }
+
+    Rectangle{
+        width: root.width - 2
+        height: root.height - 2
+        anchors.centerIn: parent
+        color: "#00000000"
+        opacity: 0.04
+        border.width: 1
+        radius: root.radius
+        border.color: root.color
+    }
+    Rectangle{
+        width: root.width - 4
+        height: root.height - 4
+        anchors.centerIn: parent
+        color: "#00000000"
+        opacity: 0.06
+        border.width: 1
+        radius: root.radius
+        border.color: root.color
+    }
+
+    Rectangle{
+        width: root.width - 6
+        height: root.height - 6
+        anchors.centerIn: parent
+        color: "#00000000"
+        opacity: 0.08
+        border.width: 1
+        radius: root.radius
+        border.color: root.color
+    }
+
+    Rectangle{
+        width: root.width - 8
+        height: root.height - 8
+        anchors.centerIn: parent
+        opacity: 0.1
+        radius: root.radius
+        color: "#00000000"
+        border.width: 1
+        border.color: root.color
+    }
+
+}

+ 16 - 0
module/gui/FluentUI/Controls/FluSingleton.qml

@@ -0,0 +1,16 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+QtObject {
+
+    id:control
+
+    Component.onCompleted: {
+        FluApp.setFluApp(FluApp)
+        FluApp.setFluColors(FluColors)
+        FluApp.setFluTheme(FluTheme)
+        FluApp.setFluTools(FluTools)
+    }
+
+}

+ 140 - 0
module/gui/FluentUI/Controls/FluSlider.qml

@@ -0,0 +1,140 @@
+import QtQuick
+import QtQuick.Controls
+import Qt5Compat.GraphicalEffects
+import FluentUI
+
+Item{
+
+    property int size: 180
+    property int dotSize: 24
+    property int value: 50
+    property int maxValue: 100
+    property bool vertical: false
+    property bool tipEnabled : true
+    property var onLineClickFunc
+    signal pressed
+    signal released
+
+    id:root
+    height: control.height
+    width: control.width
+    rotation: vertical ? 180 : 0
+
+    Component.onCompleted: {
+        seek(value)
+    }
+
+    MouseArea{
+        id:mouse_line
+        anchors.centerIn: control
+        width: vertical ? 10 : control.width
+        height: vertical ? control.height : 10
+        hoverEnabled: true
+        onClicked:
+            (mouse) => {
+                var val;
+                if(vertical){
+                    val = mouse.y*maxValue/control.height
+                }else{
+                    val = mouse.x*maxValue/control.width
+                }
+                if(onLineClickFunc){
+                    onLineClickFunc(val)
+                }else{
+                    seek(val)
+                }
+            }
+    }
+
+    Rectangle {
+        id: control
+        width: vertical ? 4 :size
+        height:  vertical ? size : 4
+        radius: 2
+        anchors.verticalCenter: parent.verticalCenter
+        color:FluTheme.dark ? Qt.rgba(162/255,162/255,162/255,1) : Qt.rgba(138/255,138/255,138/255,1)
+        Rectangle{
+            id:rect
+            radius: 2.5
+            width: vertical ? 5 : control.width*(value/maxValue)
+            height: vertical ? control.height*(value/maxValue) :  5
+            color:FluTheme.dark ? FluTheme.primaryColor.lighter :FluTheme.primaryColor.dark
+        }
+    }
+
+    Rectangle{
+        id:dot
+        width: dotSize
+        height: dotSize
+        FluShadow{
+            radius: dotSize/2
+        }
+        radius: dotSize/2
+        anchors.verticalCenter: vertical ? undefined : parent.verticalCenter
+        anchors.horizontalCenter: vertical ? parent.horizontalCenter : undefined
+        color:FluTheme.dark ? Qt.rgba(69/255,69/255,69/255,1) :Qt.rgba(1,1,1,1)
+        Rectangle{
+            width: dotSize
+            height: dotSize
+            radius: dotSize/2
+            color:FluTheme.dark ? FluTheme.primaryColor.lighter :FluTheme.primaryColor.dark
+            anchors.centerIn: parent
+            scale: {
+                if(control_mouse.pressed){
+                    return 4/10
+                }
+                return control_mouse.containsMouse || mouse_line.containsMouse  ? 6/10 : 5/10
+            }
+            Behavior on scale {
+                NumberAnimation{
+                    duration: 150
+                }
+            }
+        }
+        MouseArea{
+            id:control_mouse
+            anchors.fill: parent
+            hoverEnabled: true
+            drag {
+                target: dot
+                axis: vertical ? Drag.YAxis : Drag.XAxis
+                minimumX: vertical ? 0 : -dotSize/2
+                maximumX: vertical ? 0 : (control.width - dotSize/2)
+                minimumY: vertical ? -dotSize/2 : 0
+                maximumY: vertical ? (control.height - dotSize/2) : 0
+            }
+            onPressed: {
+                if(tipEnabled){
+                    tool_tip.visible  =  true
+                }
+                root.pressed()
+            }
+
+            onReleased: {
+                tool_tip.visible  =  false
+                root.released()
+            }
+        }
+
+        FluTooltip{
+            id:tool_tip
+            text:String(root.value)
+            y: vertical ? 32 : -40
+        }
+    }
+
+    function seek(val){
+        if(vertical){
+            dot.y =val/maxValue*control.height - dotSize/2
+            root.value = Qt.binding(function(){
+                return (dot.y+dotSize/2)/control.height*maxValue
+            })
+        }else{
+            dot.x =val/maxValue*control.width - dotSize/2
+            root.value = Qt.binding(function(){
+                return (dot.x+dotSize/2)/control.width*maxValue
+            })
+        }
+    }
+}
+

+ 108 - 0
module/gui/FluentUI/Controls/FluStatusView.qml

@@ -0,0 +1,108 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import FluentUI
+
+Item{
+
+    enum StatusMode  {
+        Loading,
+        Empty,
+        Error,
+        Success
+    }
+    default property alias content: container.data
+    property int statusMode: FluStatusView.Loading
+    signal errorClicked
+
+    Item{
+        id:container
+        anchors.fill: parent
+        visible: statusMode === FluStatusView.Success
+    }
+
+    FluArea{
+        paddings: 0
+        border.width: 0
+        anchors.fill: container
+        visible: opacity
+        opacity: statusMode === FluStatusView.Loading
+        Behavior on opacity {
+            NumberAnimation  { duration: 83 }
+        }
+        ColumnLayout{
+            anchors.centerIn: parent
+            visible: statusMode === FluStatusView.Loading
+            FluProgressRing{
+                indeterminate: true
+                Layout.alignment: Qt.AlignHCenter
+            }
+            FluText{
+                text:"正在加载..."
+                Layout.alignment: Qt.AlignHCenter
+            }
+        }
+    }
+
+    FluArea{
+        paddings: 0
+        border.width: 0
+        anchors.fill: container
+        visible: opacity
+        opacity: statusMode === FluStatusView.Empty
+        Behavior on opacity {
+            NumberAnimation  { duration: 83 }
+        }
+        ColumnLayout{
+            anchors.centerIn: parent
+            visible: statusMode === FluStatusView.Empty
+            FluText{
+                text:"空空如也"
+                fontStyle: FluText.BodyStrong
+                Layout.alignment: Qt.AlignHCenter
+            }
+        }
+    }
+
+    FluArea{
+        paddings: 0
+        border.width: 0
+        anchors.fill: container
+        visible: opacity
+        opacity: statusMode === FluStatusView.Error
+        Behavior on opacity {
+            NumberAnimation  { duration: 83 }
+        }
+        ColumnLayout{
+            anchors.centerIn: parent
+            FluText{
+                text:"页面出错了..."
+                fontStyle: FluText.BodyStrong
+                Layout.alignment: Qt.AlignHCenter
+            }
+            FluFilledButton{
+                id:btn_error
+                Layout.alignment: Qt.AlignHCenter
+                text:"重新加载"
+                onClicked:{
+                    errorClicked.call()
+                }
+            }
+        }
+    }
+
+
+    function showSuccessView(){
+        statusMode = FluStatusView.Success
+    }
+    function showLoadingView(){
+        statusMode = FluStatusView.Loading
+    }
+    function showEmptyView(){
+        statusMode = FluStatusView.Empty
+    }
+    function showErrorView(){
+        statusMode = FluStatusView.Error
+    }
+
+}

+ 350 - 0
module/gui/FluentUI/Controls/FluTabView.qml

@@ -0,0 +1,350 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import FluentUI
+
+Item {
+
+    enum TabWidthBehavior {
+        Equal,
+        SizeToContent,
+        Compact
+    }
+
+    enum CloseButtonVisibility{
+        Nerver,
+        Always,
+        OnHover
+    }
+
+    property int tabWidthBehavior : FluTabView.Equal
+    property int closeButtonVisibility : FluTabView.Always
+    property int itemWidth: 146
+    property bool addButtonVisibility: true
+    signal newPressed
+
+    id:control
+    implicitHeight: height
+    implicitWidth: width
+    anchors.fill: {
+        if(parent)
+            return parent
+        return undefined
+    }
+
+    QtObject {
+        id: d
+        property int dragIndex: -1
+        property bool dragBehavior: false
+        property bool itemPress: false
+        property int maxEqualWidth: 240
+    }
+
+    MouseArea{
+        anchors.fill: parent
+        preventStealing: true
+    }
+
+    ListModel{
+        id:tab_model
+    }
+
+    FluIconButton{
+        id:btn_new
+        visible: addButtonVisibility
+        width: 34
+        height: 34
+        x:Math.min(tab_nav.contentWidth,tab_nav.width)
+        anchors.top: parent.top
+        iconSource: FluentIcons.Add
+        onClicked: {
+            newPressed()
+        }
+    }
+
+    ListView{
+        id:tab_nav
+        height: 34
+        orientation: ListView.Horizontal
+        anchors{
+            top: parent.top
+            left: parent.left
+            right: parent.right
+            rightMargin: 34
+        }
+        interactive: false
+        model: tab_model
+        move: Transition {
+            NumberAnimation { properties: "x"; duration: 100; easing.type: Easing.OutCubic }
+            NumberAnimation { properties: "y"; duration: 100; easing.type: Easing.OutCubic }
+        }
+        moveDisplaced: Transition {
+            NumberAnimation { properties: "x"; duration: 300; easing.type: Easing.OutCubic}
+            NumberAnimation { properties: "y"; duration: 100;  easing.type: Easing.OutCubic }
+        }
+        clip: true
+        ScrollBar.horizontal: ScrollBar{
+            id: scroll_nav
+            policy: ScrollBar.AlwaysOff
+        }
+        delegate:  Item{
+
+            width: item_layout.width
+            height: item_container.height
+            z: item_mouse_drag.pressed ? 1000 : 1
+
+            Item{
+                id:item_layout
+                width: item_container.width
+                height: item_container.height
+
+                FluItem{
+                    id:item_container
+
+                    property real timestamp: new Date().getTime()
+
+                    height: tab_nav.height
+                    width: {
+                        if(tabWidthBehavior === FluTabView.Equal){
+                            return Math.max(Math.min(d.maxEqualWidth,tab_nav.width/tab_nav.count),41 + item_btn_close.width)
+                        }
+                        if(tabWidthBehavior === FluTabView.SizeToContent){
+                            return itemWidth
+                        }
+                        if(tabWidthBehavior === FluTabView.Compact){
+                            return item_mouse_hove.containsMouse || item_btn_close.hovered || tab_nav.currentIndex === index  ? itemWidth : 41 + item_btn_close.width
+                        }
+                        return Math.max(Math.min(d.maxEqualWidth,tab_nav.width/tab_nav.count),41 + item_btn_close.width)
+                    }
+                    radius: [6,6,0,0]
+                    Behavior on x { enabled: d.dragBehavior; NumberAnimation { duration: 200 } }
+                    Behavior on y { enabled: d.dragBehavior; NumberAnimation { duration: 200 } }
+
+                    MouseArea{
+                        id:item_mouse_hove
+                        anchors.fill: parent
+                        hoverEnabled: true
+                    }
+
+                    MouseArea{
+                        id:item_mouse_drag
+                        anchors.fill: parent
+                        drag.target: item_container
+                        drag.axis: Drag.XAxis
+
+                        onWheel: (wheel)=>{
+                                     if (wheel.angleDelta.y > 0) scroll_nav.decrease()
+                                     else scroll_nav.increase()
+                                 }
+
+                        onPressed: {
+                            d.itemPress = true
+                            item_container.timestamp = new Date().getTime();
+                            d.dragBehavior = false;
+                            var pos = tab_nav.mapFromItem(item_container, 0, 0)
+                            d.dragIndex = model.index
+                            item_container.parent = tab_nav
+                            item_container.x = pos.x
+                            item_container.y = pos.y
+                        }
+
+                        onReleased: {
+                            d.itemPress = false
+                            timer.stop()
+                            var timeDiff = new Date().getTime() - item_container.timestamp
+                            if (timeDiff < 300) {
+                                tab_nav.currentIndex = index
+                            }
+                            d.dragIndex = -1;
+                            var pos = tab_nav.mapToItem(item_layout, item_container.x, item_container.y)
+                            item_container.parent = item_layout;
+                            item_container.x = pos.x;
+                            item_container.y = pos.y;
+                            d.dragBehavior = true;
+                            item_container.x = 0;
+                            item_container.y = 0;
+                        }
+
+                        onPositionChanged: {
+                            var pos = tab_nav.mapFromItem(item_container, 0, 0)
+                            updatePosition(pos)
+                            if(pos.x<0){
+                                timer.isIncrease = false
+                                timer.restart()
+                            }else if(pos.x>tab_nav.width-itemWidth){
+                                timer.isIncrease = true
+                                timer.restart()
+                            }else{
+                                timer.stop()
+                            }
+                        }
+                        Timer{
+                            id:timer
+                            property bool isIncrease: true
+                            interval: 10
+                            repeat: true
+                            onTriggered: {
+                                if(isIncrease){
+                                    if(tab_nav.contentX>=tab_nav.contentWidth-tab_nav.width){
+                                        return
+                                    }
+                                    tab_nav.contentX = tab_nav.contentX+2
+                                }else{
+                                    if(tab_nav.contentX<=0){
+                                        return
+                                    }
+                                    tab_nav.contentX = tab_nav.contentX-2
+                                }
+                                item_mouse_drag.updatePosition(tab_nav.mapFromItem(item_container, 0, 0))
+                            }
+                        }
+                        function updatePosition(pos){
+                            var idx = tab_nav.indexAt(pos.x+tab_nav.contentX+1, pos.y)
+                            var firstIdx = tab_nav.indexAt(tab_nav.contentX+1, pos.y)
+                            var lastIdx = tab_nav.indexAt(tab_nav.width+tab_nav.contentX-1, pos.y)
+                            if(lastIdx === -1){
+                                lastIdx = tab_nav.count-1
+                            }
+                            if (idx!==-1 && idx >= firstIdx && idx <= lastIdx && d.dragIndex !== idx) {
+                                tab_model.move(d.dragIndex, idx, 1)
+                                d.dragIndex = idx;
+                            }
+                        }
+                    }
+
+                    Rectangle{
+                        anchors.fill: parent
+                        color: {
+                            if(FluTheme.dark){
+                                if(item_mouse_hove.containsMouse || item_btn_close.hovered){
+                                    return Qt.rgba(1,1,1,0.03)
+                                }
+                                if(tab_nav.currentIndex === index){
+                                    return Qt.rgba(1,1,1,0.06)
+                                }
+                                return Qt.rgba(0,0,0,0)
+                            }else{
+                                if(item_mouse_hove.containsMouse || item_btn_close.hovered){
+                                    return Qt.rgba(0,0,0,0.03)
+                                }
+                                if(tab_nav.currentIndex === index){
+                                    return Qt.rgba(0,0,0,0.06)
+                                }
+                                return Qt.rgba(0,0,0,0)
+                            }
+                        }
+                    }
+
+                    RowLayout{
+                        spacing: 0
+                        height: parent.height
+                        Image{
+                            source:model.icon
+                            Layout.leftMargin: 10
+                            Layout.preferredWidth: 14
+                            Layout.preferredHeight: 14
+                            Layout.alignment: Qt.AlignVCenter
+                        }
+                        FluText{
+                            id:item_text
+                            text: model.text
+                            Layout.leftMargin: 10
+                            visible: {
+                                if(tabWidthBehavior === FluTabView.Equal){
+                                    return true
+                                }
+                                if(tabWidthBehavior === FluTabView.SizeToContent){
+                                    return true
+                                }
+                                if(tabWidthBehavior === FluTabView.Compact){
+                                    return item_mouse_hove.containsMouse || item_btn_close.hovered || tab_nav.currentIndex === index
+                                }
+                                return false
+                            }
+                            Layout.preferredWidth: visible?item_container.width - 41 - item_btn_close.width:0
+                            elide: Text.ElideRight
+                            Layout.alignment: Qt.AlignVCenter
+                            FluTooltip{
+                                visible: item_mouse_hove.containsMouse
+                                text:item_text.text
+                                delay: 1000
+                            }
+                        }
+                    }
+
+                    FluIconButton{
+                        id:item_btn_close
+                        iconSource: FluentIcons.ChromeClose
+                        iconSize: 10
+                        width: visible ? 24 : 0
+                        height: 24
+                        visible: {
+                            if(closeButtonVisibility === FluTabView.Nerver)
+                                return false
+                            if(closeButtonVisibility === FluTabView.OnHover)
+                                return item_mouse_hove.containsMouse || item_btn_close.hovered
+                            return true
+                        }
+                        anchors{
+                            right: parent.right
+                            rightMargin: 5
+                            verticalCenter: parent.verticalCenter
+                        }
+                        onClicked: {
+                            tab_model.remove(index)
+                        }
+                    }
+
+                    FluDivider{
+                        width: 1
+                        height: 16
+                        anchors{
+                            verticalCenter: parent.verticalCenter
+                            right: parent.right
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+
+    Item{
+        id:container
+        anchors{
+            top: tab_nav.bottom
+            left: parent.left
+            right: parent.right
+            bottom: parent.bottom
+        }
+
+        Repeater{
+            model:tab_model
+            Loader{
+                property var argument: model.argument
+                anchors.fill: parent
+                sourceComponent: model.page
+                visible: tab_nav.currentIndex === index
+            }
+        }
+    }
+
+
+    function createTab(icon,text,page,argument={}){
+        return {icon:icon,text:text,page:page,argument:argument}
+    }
+
+    function appendTab(icon,text,page,argument){
+        tab_model.append(createTab(icon,text,page,argument))
+    }
+
+    function setTabList(list){
+        tab_model.clear()
+        tab_model.append(list)
+    }
+
+    function count(){
+        return tab_nav.count
+    }
+
+}

+ 228 - 0
module/gui/FluentUI/Controls/FluTableView.qml

@@ -0,0 +1,228 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import FluentUI
+
+Item {
+
+    property var columns : []
+    property var dataSource : []
+    property int pageCurrent: 1
+    property int itemCount: 1000
+    property int pageCount: 10
+    property int itemHeight: 56
+    signal requestPage(int page,int count)
+
+    id:control
+    implicitHeight: layout_table.height
+
+    QtObject{
+        id:d
+        property int coumnsWidth: parent.width
+    }
+
+    MouseArea{
+        anchors.fill: parent
+        preventStealing: true
+    }
+
+    ListModel{
+        id:model_coumns
+    }
+
+    ListModel{
+        id:model_data_source
+    }
+
+    onColumnsChanged: {
+        model_coumns.clear()
+        model_coumns.append(columns)
+        var w = 0
+        for(var i=0;i<model_coumns.count;i++){
+            var item = model_coumns.get(i)
+            w=w+item.width
+        }
+        d.coumnsWidth = w
+    }
+
+    onDataSourceChanged: {
+        model_data_source.clear()
+        model_data_source.append(dataSource)
+    }
+
+    Flickable{
+        id:layout_flickable
+        height: layout_table.height
+        anchors{
+            top: parent.top
+            left: parent.left
+            right: parent.right
+        }
+        contentWidth: layout_table.width
+        ScrollBar.horizontal: FluScrollBar {
+        }
+        Rectangle{
+            anchors.fill: layout_table
+            radius: 5
+            color: FluTheme.dark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1)
+        }
+        ListView{
+            id:layout_table
+            height: contentHeight
+            width: Math.max(layout_flickable.width,d.coumnsWidth)
+            clip:true
+            interactive: false
+
+            header: FluRectangle{
+                id:layout_coumns
+                height: control.itemHeight
+                width: parent.width
+                color:FluTheme.dark ? Qt.rgba(50/255,50/255,50/255,1) : Qt.rgba(247/255,247/255,247/255,1)
+                radius: [5,5,0,0]
+
+                Row{
+                    id:list_coumns
+                    spacing: 0
+                    anchors.fill: parent
+                    Repeater{
+                        model: model_coumns
+                        delegate: Item{
+                            height: list_coumns.height
+                            width: model.width
+                            FluText{
+                                text:model.title
+                                wrapMode: Text.WordWrap
+                                anchors{
+                                    verticalCenter: parent.verticalCenter
+                                    left: parent.left
+                                    leftMargin: 14
+                                }
+                                fontStyle: FluText.BodyStrong
+                            }
+                            FluDivider{
+                                width: 1
+                                height: 40
+                                anchors.right: parent.right
+                                anchors.verticalCenter: parent.verticalCenter
+                                visible: index !== list_coumns.count-1
+                            }
+                        }
+                    }
+                }
+            }
+
+            footer: Item{
+                height: 50
+                width:  layout_table.width
+                FluPagination{
+                    id:pagination
+                    height: 40
+                    pageCurrent: control.pageCurrent
+                    itemCount: control.itemCount
+                    pageCount: control.pageCount
+                    onRequestPage:
+                        (page,count)=> {
+                            control.requestPage(page,count)
+                        }
+                    anchors{
+                        top: parent.top
+                        right: parent.right
+                    }
+                }
+            }
+            model:model_data_source
+            delegate: Item{
+                height: table_row.maxHeight
+                width: layout_table.width
+                property var model_values : getObjectValues(index)
+                property var itemObject: getObject(index)
+                property var listModel: model
+                Row{
+                    id: table_row
+                    spacing: 0
+                    anchors.fill: parent
+                    property int maxHeight: itemHeight
+                    Repeater{
+                        model: model_values
+                        delegate:Item{
+                            height: table_row.maxHeight
+                            width: modelData.width
+                            Loader{
+                                property var model : modelData
+                                property var dataModel : listModel
+                                property var dataObject : itemObject
+                                anchors.fill: parent
+                                sourceComponent: {
+                                    if(model.itemData instanceof Component){
+                                        return model.itemData
+                                    }
+                                    return com_text
+                                }
+                                onHeightChanged:
+                                {
+                                    table_row.maxHeight = Math.max(table_row.maxHeight,height,itemHeight)
+                                    parent.height = table_row.maxHeight
+                                    table_row.parent.height = table_row.maxHeight
+                                }
+                            }
+                        }
+                    }
+                }
+                FluDivider{
+                    width: parent.width
+                    height: 1
+                    anchors.right: parent.right
+                    anchors.bottom: parent.bottom
+                }
+            }
+        }
+
+
+    }
+
+
+    Component{
+        id:com_text
+        Item{
+            MouseArea{
+                id:item_mouse
+                hoverEnabled: true
+                anchors.fill: parent
+            }
+            FluText{
+                id:table_value
+                text:String(model.itemData)
+                width: parent.width - 14
+                wrapMode: Text.WordWrap
+                onImplicitHeightChanged: parent.parent.parent.height = Math.max(implicitHeight + 20,itemHeight)
+                anchors{
+                    verticalCenter: parent.verticalCenter
+                    left: parent.left
+                    leftMargin: 14
+                }
+                FluTooltip{
+                    visible: item_mouse.containsMouse
+                    text:parent.text
+                    delay: 1000
+                }
+            }
+        }
+    }
+
+    function getObject(index){
+        return model_data_source.get(index)
+    }
+
+    function getObjectValues(index) {
+        var obj = model_data_source.get(index)
+        if(!obj)
+            return
+        var data = []
+        for(var i=0;i<model_coumns.count;i++){
+            var item = model_coumns.get(i)
+            data.push({itemData:obj[item.dataIndex],width:item.width})
+        }
+        return data;
+    }
+
+}

+ 65 - 0
module/gui/FluentUI/Controls/FluText.qml

@@ -0,0 +1,65 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+Text {
+
+    enum FontStyle {
+        Display,
+        TitleLarge,
+        Title,
+        SubTitle,
+        BodyStrong,
+        Body,
+        Caption
+    }
+
+    property int fontStyle: FluText.Body
+    property color textColor: FluTheme.dark ? FluColors.White : FluColors.Grey220
+    property int pixelSize : FluTheme.textSize
+
+    id:text
+    color: textColor
+    renderType: FluTheme.nativeText ? Text.NativeRendering : Text.QtRendering
+    font.bold: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return true
+        case FluText.TitleLarge:
+            return true
+        case FluText.Title:
+            return true
+        case FluText.SubTitle:
+            return true
+        case FluText.BodyStrong:
+            return true
+        case FluText.Body:
+            return false
+        case FluText.Caption:
+            return false
+        default:
+            return false
+        }
+    }
+    font.pixelSize: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return text.pixelSize * 4.857
+        case FluText.TitleLarge:
+            return text.pixelSize * 2.857
+        case FluText.Title:
+            return text.pixelSize * 2
+        case FluText.SubTitle:
+            return text.pixelSize * 1.428
+        case FluText.Body:
+            return text.pixelSize * 1.0
+        case FluText.BodyStrong:
+            return text.pixelSize * 1.0
+        case FluText.Caption:
+            return text.pixelSize * 0.857
+        default:
+            return text.pixelSize * 1.0
+        }
+    }
+
+}

+ 121 - 0
module/gui/FluentUI/Controls/FluTextBox.qml

@@ -0,0 +1,121 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+TextField{
+
+    property int fontStyle: FluText.Body
+    property int pixelSize : FluTheme.textSize
+    property bool disabled: false
+    property int iconSource: 0
+    property color normalColor: FluTheme.dark ?  Qt.rgba(255/255,255/255,255/255,1) : Qt.rgba(27/255,27/255,27/255,1)
+    property color disableColor: FluTheme.dark ? Qt.rgba(131/255,131/255,131/255,1) : Qt.rgba(160/255,160/255,160/255,1)
+    property color placeholderNormalColor: FluTheme.dark ? Qt.rgba(210/255,210/255,210/255,1) : Qt.rgba(96/255,96/255,96/255,1)
+    property color placeholderFocusColor: FluTheme.dark ? Qt.rgba(152/255,152/255,152/255,1) : Qt.rgba(141/255,141/255,141/255,1)
+    property color placeholderDisableColor: FluTheme.dark ? Qt.rgba(131/255,131/255,131/255,1) : Qt.rgba(160/255,160/255,160/255,1)
+
+    id:control
+    width: 300
+    enabled: !disabled
+    color: {
+        if(disabled){
+            return disableColor
+        }
+        return normalColor
+    }
+    renderType: FluTheme.nativeText ? Text.NativeRendering : Text.QtRendering
+    selectionColor: FluTheme.primaryColor.lightest
+    placeholderTextColor: {
+        if(disabled){
+            return placeholderDisableColor
+        }
+        if(focus){
+            return placeholderFocusColor
+        }
+        return placeholderNormalColor
+    }
+    font.bold: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return true
+        case FluText.TitleLarge:
+            return true
+        case FluText.Title:
+            return true
+        case FluText.SubTitle:
+            return true
+        case FluText.BodyStrong:
+            return true
+        case FluText.Body:
+            return false
+        case FluText.Caption:
+            return false
+        default:
+            return false
+        }
+    }
+    font.pixelSize: {
+        switch (fontStyle) {
+        case FluText.Display:
+            return text.pixelSize * 4.857
+        case FluText.TitleLarge:
+            return text.pixelSize * 2.857
+        case FluText.Title:
+            return text.pixelSize * 2
+        case FluText.SubTitle:
+            return text.pixelSize * 1.428
+        case FluText.Body:
+            return text.pixelSize * 1.0
+        case FluText.BodyStrong:
+            return text.pixelSize * 1.0
+        case FluText.Caption:
+            return text.pixelSize * 0.857
+        default:
+            return text.pixelSize * 1.0
+        }
+    }
+    selectByMouse: true
+    rightPadding: icon_end.visible ? 50 : 30
+    background: FluTextBoxBackground{
+        inputItem: control
+        FluIcon{
+            id:icon_end
+            iconSource: control.iconSource
+            iconSize: 15
+            opacity: 0.5
+            visible: control.iconSource != 0
+            anchors{
+                verticalCenter: parent.verticalCenter
+                right: parent.right
+                rightMargin: 5
+            }
+        }
+    }
+    FluIconButton{
+        iconSource:FluentIcons.ChromeClose
+        iconSize: 10
+        width: 20
+        height: 20
+        opacity: 0.5
+        visible: control.text !== ""
+        anchors{
+            verticalCenter: parent.verticalCenter
+            right: parent.right
+            rightMargin: icon_end.visible ? 25 : 5
+        }
+        onClicked:{
+            control.text = ""
+        }
+    }
+    TapHandler {
+        acceptedButtons: Qt.RightButton
+        onTapped: control.echoMode !== TextInput.Password && menu.popup()
+    }
+    FluTextBoxMenu{
+        id:menu
+        inputItem: control
+    }
+
+}
+

+ 59 - 0
module/gui/FluentUI/Controls/FluTextBoxBackground.qml

@@ -0,0 +1,59 @@
+import QtQuick
+import QtQuick.Controls
+import Qt5Compat.GraphicalEffects
+import FluentUI
+
+Rectangle{
+
+    property Item inputItem
+
+    id:content
+    radius: 4
+    layer.enabled: true
+    color: {
+        if(inputItem.disabled){
+            return FluTheme.dark ? Qt.rgba(59/255,59/255,59/255,1) : Qt.rgba(252/255,252/255,252/255,1)
+        }
+        if(inputItem.focus){
+            return FluTheme.dark ? Qt.rgba(36/255,36/255,36/255,1) : Qt.rgba(1,1,1,1)
+        }
+        if(inputItem.hovered){
+            return FluTheme.dark ? Qt.rgba(68/255,68/255,68/255,1) : Qt.rgba(251/255,251/255,251/255,1)
+        }
+        return FluTheme.dark ? Qt.rgba(62/255,62/255,62/255,1) : Qt.rgba(1,1,1,1)
+    }
+    layer.effect:OpacityMask {
+        maskSource: Rectangle {
+            width: content.width
+            height: content.height
+            radius: 4
+        }
+    }
+    border.width: 1
+    border.color: {
+        if(inputItem.disabled){
+            return FluTheme.dark ? Qt.rgba(73/255,73/255,73/255,1) : Qt.rgba(237/255,237/255,237/255,1)
+        }
+        return FluTheme.dark ? Qt.rgba(76/255,76/255,76/255,1) : Qt.rgba(240/255,240/255,240/255,1)
+    }
+    Rectangle{
+        width: parent.width
+        height: inputItem.focus ? 3 : 1
+        anchors.bottom: parent.bottom
+        visible: !inputItem.disabled
+        color: {
+            if(FluTheme.dark){
+                inputItem.focus ? FluTheme.primaryColor.lighter  : Qt.rgba(166/255,166/255,166/255,1)
+            }else{
+                return inputItem.focus ? FluTheme.primaryColor.dark  : Qt.rgba(183/255,183/255,183/255,1)
+            }
+        }
+        Behavior on height{
+            NumberAnimation{
+                duration: 167
+                easing.type: Easing.BezierSpline
+                easing.bezierCurve: [ 1, 0, 0, 0 ]
+            }
+        }
+    }
+}

+ 53 - 0
module/gui/FluentUI/Controls/FluTextBoxMenu.qml

@@ -0,0 +1,53 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+FluMenu{
+
+    property string cutText : "剪切"
+    property string copyText : "复制"
+    property string pasteText : "粘贴"
+    property string selectAllText : "全选"
+    property var inputItem
+
+    id:menu
+    focus:false
+    enableAnimation:false
+
+    Connections{
+        target: inputItem
+        function onTextChanged() {
+            menu.close()
+        }
+    }
+
+    FluMenuItem{
+        text: cutText
+        visible: inputItem.selectedText !== "" && !inputItem.readOnly
+        onClicked: {
+            inputItem.cut()
+        }
+    }
+
+    FluMenuItem{
+        text: copyText
+        visible: inputItem.selectedText !== ""
+        onClicked: {
+            inputItem.copy()
+        }
+    }
+    FluMenuItem{
+        text: pasteText
+        visible: inputItem.canPaste
+        onClicked: {
+            inputItem.paste()
+        }
+    }
+    FluMenuItem{
+        text: selectAllText
+        visible: inputItem.text !== ""
+        onClicked: {
+            inputItem.selectAll()
+        }
+    }
+}

+ 48 - 0
module/gui/FluentUI/Controls/FluTextButton.qml

@@ -0,0 +1,48 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+Button {
+
+    property bool disabled: false
+    property color normalColor: FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+    property color hoverColor: FluTheme.dark ? Qt.darker(normalColor,1.15) : Qt.lighter(normalColor,1.15)
+    property color pressedColor: FluTheme.dark ? Qt.darker(normalColor,1.3) : Qt.lighter(normalColor,1.3)
+    property color disableColor: FluTheme.dark ? Qt.rgba(82/255,82/255,82/255,1) : Qt.rgba(199/255,199/255,199/255,1)
+    property bool textBold: true
+
+    id: control
+    topPadding:0
+    bottomPadding:0
+    leftPadding:0
+    rightPadding:0
+    enabled: !disabled
+    focusPolicy:Qt.TabFocus
+
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+
+    background: Item{
+        FluFocusRectangle{
+            visible: control.visualFocus
+            radius:8
+        }
+    }
+    contentItem: FluText {
+        text: control.text
+        horizontalAlignment: Text.AlignHCenter
+        verticalAlignment: Text.AlignVCenter
+        font.bold: control.textBold
+        color: {
+            color:{
+                if(disabled){
+                    return disableColor
+                }
+                if(pressed){
+                    return pressedColor
+                }
+                return hovered ? hoverColor :normalColor
+            }
+        }
+    }
+}

+ 414 - 0
module/gui/FluentUI/Controls/FluTimePicker.qml

@@ -0,0 +1,414 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Layouts
+import QtQuick.Window
+import FluentUI
+
+Rectangle {
+
+    enum HourFormat {
+        H,
+        HH
+    }
+    property color dividerColor: FluTheme.dark ? Qt.rgba(77/255,77/255,77/255,1) : Qt.rgba(239/255,239/255,239/255,1)
+    property color hoverColor: FluTheme.dark ? Qt.rgba(68/255,68/255,68/255,1) : Qt.rgba(251/255,251/255,251/255,1)
+    property color normalColor: FluTheme.dark ? Qt.rgba(61/255,61/255,61/255,1) : Qt.rgba(254/255,254/255,254/255,1)
+    property var window : Window.window
+    property int hourFormat: FluTimePicker.H
+    property int isH: hourFormat === FluTimePicker.H
+
+    id:root
+    color: {
+        if(mouse_area.containsMouse){
+            return hoverColor
+        }
+        return normalColor
+    }
+    height: 30
+    width: 300
+    radius: 4
+    border.width: 1
+    border.color: dividerColor
+
+    MouseArea{
+        id:mouse_area
+        hoverEnabled: true
+        anchors.fill: parent
+        onClicked: {
+            popup.showPopup()
+        }
+    }
+
+    Rectangle{
+        id:divider_1
+        width: 1
+        x: isH ? parent.width/3 : parent.width/2
+        height: parent.height
+        color: dividerColor
+    }
+
+
+    Rectangle{
+        id:divider_2
+        width: 1
+        x:parent.width*2/3
+        height: parent.height
+        color: dividerColor
+        visible: isH
+    }
+
+    FluText{
+        id:text_hour
+        anchors{
+            left: parent.left
+            right: divider_1.left
+            top: parent.top
+            bottom: parent.bottom
+        }
+        verticalAlignment: Text.AlignVCenter
+        horizontalAlignment: Text.AlignHCenter
+        text:"时"
+    }
+
+
+    FluText{
+        id:text_minute
+        anchors{
+            left: divider_1.right
+            right: isH ? divider_2.left : parent.right
+            top: parent.top
+            bottom: parent.bottom
+        }
+        verticalAlignment: Text.AlignVCenter
+        horizontalAlignment: Text.AlignHCenter
+        text:"分"
+    }
+
+
+    FluText{
+        id:text_ampm
+        visible: isH
+        anchors{
+            left: divider_2.right
+            right: parent.right
+            top: parent.top
+            bottom: parent.bottom
+        }
+        verticalAlignment: Text.AlignVCenter
+        horizontalAlignment: Text.AlignHCenter
+        text:"AM/PM"
+    }
+
+    Menu{
+        id:popup
+        width: container.width
+        height: container.height
+        modal: true
+        dim:false
+        enter: Transition {
+            reversible: true
+            NumberAnimation {
+                property: "opacity"
+                from:0
+                to:1
+                duration: 83
+            }
+        }
+
+        exit:Transition {
+            NumberAnimation {
+                property: "opacity"
+                from:1
+                to:0
+                duration: 83
+            }
+        }
+        background:Item{
+            FluShadow{
+                radius: 4
+            }
+        }
+        contentItem: Item{
+            clip: true
+            Rectangle{
+                id:container
+                height: 340
+                width: 300
+                radius: 4
+                color: FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(248/255,250/255,253/255,1)
+                MouseArea{
+                    anchors.fill: parent
+                }
+                RowLayout{
+                    id:layout_content
+                    spacing: 0
+                    width: parent.width
+                    height: 300
+
+                    Component{
+                        id:list_delegate
+
+                        Item{
+                            height:38
+                            width:getListView().width
+
+                            function getListView(){
+                                if(type === 0)
+                                    return list_view_1
+                                if(type === 1)
+                                    return list_view_2
+                                if(type === 2)
+                                    return list_view_3
+                            }
+
+
+                            Rectangle{
+                                anchors.fill: parent
+                                anchors.topMargin: 2
+                                anchors.bottomMargin: 2
+                                anchors.leftMargin: 5
+                                anchors.rightMargin: 5
+                                color:  {
+                                    if(getListView().currentIndex === position){
+                                        if(FluTheme.dark){
+                                            return  item_mouse.containsMouse ? Qt.darker(FluTheme.primaryColor.lighter,1.1) : FluTheme.primaryColor.lighter
+                                        }else{
+                                            return  item_mouse.containsMouse ? Qt.lighter(FluTheme.primaryColor.dark,1.1): FluTheme.primaryColor.dark
+                                        }
+                                    }
+                                    if(item_mouse.containsMouse){
+                                        return FluTheme.dark ? Qt.rgba(63/255,60/255,61/255,1) : Qt.rgba(237/255,237/255,242/255,1)
+                                    }
+                                    return FluTheme.dark ? Qt.rgba(51/255,48/255,48/255,1) : Qt.rgba(0,0,0,0)
+                                }
+                                radius: 3
+                                MouseArea{
+                                    id:item_mouse
+                                    anchors.fill: parent
+                                    hoverEnabled: true
+                                    onClicked: {
+                                        getListView().currentIndex = position
+                                        if(type === 0){
+                                            text_hour.text = model
+                                        }
+                                        if(type === 1){
+                                            text_minute.text = model
+                                        }
+                                        if(type === 2){
+                                            text_ampm.text = model
+                                        }
+                                    }
+                                }
+                                FluText{
+                                    text:model
+                                    color: {
+                                        if(getListView().currentIndex === position){
+                                            if(FluTheme.dark){
+                                                return Qt.rgba(0,0,0,1)
+                                            }else{
+                                                return Qt.rgba(1,1,1,1)
+                                            }
+                                        }else{
+                                            return FluTheme.dark ? "#FFFFFF" : "#1A1A1A"
+                                        }
+                                    }
+                                    anchors.centerIn: parent
+                                }
+                            }
+                        }
+                    }
+
+                    ListView{
+                        id:list_view_1
+                        width: isH ? 100 : 150
+                        height: parent.height
+                        boundsBehavior:Flickable.StopAtBounds
+                        ScrollBar.vertical: FluScrollBar {}
+                        preferredHighlightBegin: 0
+                        preferredHighlightEnd: 0
+                        highlightMoveDuration: 0
+                        model: isH ? generateArray(1,12) : generateArray(0,23)
+                        clip: true
+                        delegate: Loader{
+                            property var model: modelData
+                            property int type:0
+                            property int position:index
+                            sourceComponent: list_delegate
+                        }
+                    }
+                    Rectangle{
+                        width: 1
+                        height: parent.height
+                        color: dividerColor
+                    }
+                    ListView{
+                        id:list_view_2
+                        width:  isH ? 100 : 150
+                        height: parent.height
+                        model: generateArray(0,59)
+                        clip: true
+                        preferredHighlightBegin: 0
+                        preferredHighlightEnd: 0
+                        highlightMoveDuration: 0
+                        ScrollBar.vertical: FluScrollBar {}
+                        boundsBehavior:Flickable.StopAtBounds
+                        delegate: Loader{
+                            property var model: modelData
+                            property int type:1
+                            property int position:index
+                            sourceComponent: list_delegate
+                        }
+                    }
+                    Rectangle{
+                        width: 1
+                        height: parent.height
+                        color: dividerColor
+                        visible: isH
+                    }
+                    ListView{
+                        id:list_view_3
+                        width: 100
+                        height: 76
+                        model: ["上午","下午"]
+                        clip: true
+                        visible: isH
+                        preferredHighlightBegin: 0
+                        preferredHighlightEnd: 0
+                        highlightMoveDuration: 0
+                        ScrollBar.vertical: FluScrollBar {}
+                        Layout.alignment: Qt.AlignVCenter
+                        boundsBehavior:Flickable.StopAtBounds
+                        delegate: Loader{
+                            property var model: modelData
+                            property int type:2
+                            property int position:index
+                            sourceComponent: list_delegate
+                        }
+                    }
+                }
+
+                Rectangle{
+                    width: parent.width
+                    height: 1
+                    anchors.top: layout_content.bottom
+                    color: dividerColor
+                }
+
+                Rectangle{
+                    id:layout_actions
+                    height: 40
+                    radius: 5
+                    color: FluTheme.dark ? Qt.rgba(32/255,32/255,32/255,1) : Qt.rgba(243/255,243/255,243/255,1)
+                    anchors{
+                        bottom:parent.bottom
+                        left: parent.left
+                        right: parent.right
+                    }
+
+                    Item {
+                        id:divider
+                        width: 1
+                        height: parent.height
+                        anchors.centerIn: parent
+                    }
+
+                    FluButton{
+                        anchors{
+                            left: parent.left
+                            leftMargin: 20
+                            rightMargin: 10
+                            right: divider.left
+                            verticalCenter: parent.verticalCenter
+                        }
+                        text: "取消"
+                        onClicked: {
+                            popup.close()
+                        }
+                    }
+
+                    FluFilledButton{
+                        anchors{
+                            right: parent.right
+                            left: divider.right
+                            rightMargin: 20
+                            leftMargin: 10
+                            verticalCenter: parent.verticalCenter
+                        }
+                        text: "确定"
+                        onClicked: {
+                            changeFlag = false
+                            popup.close()
+                        }
+                    }
+                }
+            }
+        }
+        y:35
+        function showPopup() {
+            changeFlag = true
+            rowData[0] = text_hour.text
+            rowData[1] = text_minute.text
+            rowData[2] = text_ampm.text
+
+            var now = new Date();
+
+            var hour
+            var ampm;
+            if(isH){
+                hour  = now.getHours();
+                if(hour>12){
+                    ampm = "下午"
+                    hour = hour-12
+                }else{
+                    ampm = "上午"
+                }
+            }else{
+                hour = now.getHours();
+            }
+            hour = text_hour.text === "时"? hour.toString().padStart(2, '0') : text_hour.text
+            var minute = text_minute.text === "分"? now.getMinutes().toString().padStart(2, '0') : text_minute.text
+            ampm = text_ampm.text === "AM/PM"?ampm:text_ampm.text
+            list_view_1.currentIndex = list_view_1.model.indexOf(hour);
+            list_view_2.currentIndex = list_view_2.model.indexOf(minute);
+            list_view_3.currentIndex = list_view_3.model.indexOf(ampm);
+
+            text_hour.text = hour
+            text_minute.text = minute
+            if(isH){
+                text_ampm.text = ampm
+            }
+
+            var pos = root.mapToItem(null, 0, 0)
+            if(window.height>pos.y+root.height+container.height){
+                popup.y = root.height
+            } else if(pos.y>container.height){
+                popup.y = -container.height
+            } else {
+                popup.y = window.height-(pos.y+container.height)
+            }
+            popup.open()
+        }
+
+        onClosed: {
+            if(changeFlag){
+                text_hour.text = rowData[0]
+                text_minute.text = rowData[1]
+                text_ampm.text = rowData[2]
+            }
+        }
+
+    }
+
+    property bool changeFlag: true
+    readonly property var rowData: ["","",""]
+
+
+    function generateArray(start, n) {
+        var arr = [];
+        for (var i = start; i <= n; i++) {
+            arr.push(i.toString().padStart(2, '0'));
+        }
+        return arr;
+    }
+
+}

+ 101 - 0
module/gui/FluentUI/Controls/FluToggleButton.qml

@@ -0,0 +1,101 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import FluentUI
+
+Button {
+
+    property bool disabled: false
+    property bool selected: false
+    property color normalColor: {
+        if(selected){
+           return FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
+        }else{
+           return FluTheme.dark ? Qt.rgba(62/255,62/255,62/255,1) : Qt.rgba(254/255,254/255,254/255,1)
+        }
+    }
+    property color hoverColor: {
+        if(selected){
+            return FluTheme.dark ? Qt.darker(normalColor,1.1) : Qt.lighter(normalColor,1.1)
+        }else{
+            return FluTheme.dark ? Qt.rgba(68/255,68/255,68/255,1) : Qt.rgba(251/255,251/255,251/255,1)
+        }
+    }
+    property color disableColor: {
+        if(selected){
+            return FluTheme.dark ? Qt.rgba(82/255,82/255,82/255,1) : Qt.rgba(199/255,199/255,199/255,1)
+        }else{
+            return FluTheme.dark ? Qt.rgba(59/255,59/255,59/255,1) : Qt.rgba(252/255,252/255,252/255,1)
+        }
+    }
+
+    property color pressedColor: FluTheme.dark ? Qt.darker(normalColor,1.2) : Qt.lighter(normalColor,1.2)
+
+    id: control
+    enabled: !disabled
+    topPadding:5
+    bottomPadding:5
+    leftPadding:15
+    rightPadding:15
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+    focusPolicy:Qt.TabFocus
+    background: Rectangle{
+        radius: 4
+        border.color: FluTheme.dark ? "#505050" : "#DFDFDF"
+        border.width: selected ? 0 : 1
+        FluFocusRectangle{
+            visible: control.visualFocus
+            radius:8
+        }
+        color:{
+            if(disabled){
+                return disableColor
+            }
+            if(selected){
+                if(pressed){
+                    return pressedColor
+                }
+            }
+            return hovered ? hoverColor :normalColor
+        }
+    }
+    contentItem: FluText {
+        text: control.text
+        horizontalAlignment: Text.AlignHCenter
+        verticalAlignment: Text.AlignVCenter
+        color: {
+            if(selected){
+                if(FluTheme.dark){
+                    if(disabled){
+                        return Qt.rgba(173/255,173/255,173/255,1)
+                    }
+                    return Qt.rgba(0,0,0,1)
+                }else{
+                    return Qt.rgba(1,1,1,1)
+                }
+            }else{
+                if(FluTheme.dark){
+                    if(disabled){
+                        return Qt.rgba(131/255,131/255,131/255,1)
+                    }
+                    if(!selected){
+                        if(pressed){
+                            return Qt.rgba(162/255,162/255,162/255,1)
+                        }
+                    }
+                    return Qt.rgba(1,1,1,1)
+                }else{
+                    if(disabled){
+                        return Qt.rgba(160/255,160/255,160/255,1)
+                    }
+                    if(!selected){
+                        if(pressed){
+                            return Qt.rgba(96/255,96/255,96/255,1)
+                        }
+                    }
+                    return Qt.rgba(0,0,0,1)
+                }
+            }
+        }
+    }
+}

+ 108 - 0
module/gui/FluentUI/Controls/FluToggleSwitch.qml

@@ -0,0 +1,108 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Controls.Basic
+import QtQuick.Layouts
+import FluentUI
+
+Button {
+
+    property bool selected: false
+    property var clickFunc
+
+    id: control
+    height: 20
+    implicitHeight: height
+    focusPolicy:Qt.TabFocus
+    Keys.onSpacePressed: control.visualFocus&&clicked()
+    onClicked: {
+        if(clickFunc){
+            clickFunc()
+            return
+        }
+        selected = !selected
+    }
+
+    contentItem: Item{}
+
+    background : RowLayout{
+        spacing: 0
+        Rectangle {
+            id:control_backgound
+            width: 40
+            height: control.height
+            radius: height / 2
+            FluFocusRectangle{
+                visible: control.visualFocus
+                radius: 20
+            }
+            color: {
+                if(FluTheme.dark){
+                    if(selected){
+                        return FluTheme.primaryColor.dark
+                    }
+                    if(hovered){
+                        return "#3E3E3C"
+                    }
+                    return "#323232"
+                }else{
+                    if(selected){
+                        return FluTheme.primaryColor.dark
+                    }
+                    if(hovered){
+                        return "#F4F4F4"
+                    }
+                    return  "#FFFFFF"
+                }
+            }
+            border.width: 1
+            border.color: selected ? Qt.lighter(FluTheme.primaryColor.dark,1.2) : "#666666"
+            Rectangle {
+                width: pressed ? 28 : 20
+                anchors{
+                    left: selected ? undefined : parent.left
+                    leftMargin: selected ? 20 : 0
+                    right: selected ? parent.right : undefined
+                    rightMargin: selected ? 0: 20
+                }
+                height: 20
+                radius: 10
+                scale: hovered ? 7/10 : 6/10
+                anchors.verticalCenter: parent.verticalCenter
+                color: selected ? "#FFFFFF" : "#666666"
+                Behavior on anchors.leftMargin  {
+                    NumberAnimation {
+                        duration: 167
+                        easing.type: Easing.BezierSpline
+                        easing.bezierCurve: [ 1, 0, 0, 0 ]
+                    }
+                }
+                Behavior on anchors.rightMargin  {
+                    NumberAnimation {
+                        duration: 167
+                        easing.type: Easing.BezierSpline
+                        easing.bezierCurve: [ 1, 0, 0, 0 ]
+                    }
+                }
+                Behavior on width {
+                    NumberAnimation {
+                        duration: 167
+                        easing.type: Easing.BezierSpline
+                        easing.bezierCurve: [ 1, 0, 0, 0 ]
+                    }
+                }
+                Behavior on scale {
+                    NumberAnimation {
+                        duration: 167
+                        easing.type: Easing.BezierSpline
+                        easing.bezierCurve: [ 1, 0, 0, 0 ]
+                    }
+                }
+            }
+        }
+        FluText{
+            text: control.text
+            Layout.leftMargin: 5
+            visible: text !== ""
+        }
+    }
+}

+ 23 - 0
module/gui/FluentUI/Controls/FluTooltip.qml

@@ -0,0 +1,23 @@
+import QtQuick
+import QtQuick.Controls
+import FluentUI
+
+ToolTip {
+
+    id:tool_tip
+
+    contentItem: FluText {
+        text: tool_tip.text
+        font: tool_tip.font
+        fontStyle: FluText.Body
+        padding: 4
+        wrapMode: Text.WrapAnywhere
+    }
+
+    background: Rectangle{
+        anchors.fill: parent
+        color: FluTheme.dark ? Qt.rgba(50/255,49/255,48/255,1) : Qt.rgba(1,1,1,1)
+        radius: 5
+        FluShadow{}
+    }
+}

+ 313 - 0
module/gui/FluentUI/Controls/FluTreeView.qml

@@ -0,0 +1,313 @@
+import QtQuick
+import QtQuick.Window
+import QtQuick.Layouts
+import QtQuick.Controls
+import FluentUI
+
+Item {
+
+    enum TreeViewSelectionMode  {
+        None,
+        Single,
+        Multiple
+    }
+
+    property int selectionMode: FluTreeView.None
+    property var currentElement
+    property var currentParentElement
+    property var rootModel: tree_model.get(0).items
+    signal itemClicked(var item)
+
+    id:root
+    ListModel{
+        id:tree_model
+        ListElement{
+            text: "根节点"
+            expanded:true
+            items:[]
+            key:"123456"
+            multipSelected:false
+            multipIndex:0
+            multipParentKey:""
+        }
+    }
+
+    Component{
+        id: delegate_root
+        Column{
+            width: calculateWidth()
+            property var itemModel: model
+            Repeater{
+                id: repeater_first_level
+                model: items
+                delegate: delegate_items
+            }
+            function calculateWidth(){
+                var w = 0;
+                for(var i = 0; i < repeater_first_level.count; i++) {
+                    var child = repeater_first_level.itemAt(i)
+                    if(w < child.width_hint){
+                        w = child.width_hint;
+                    }
+                }
+                return w;
+            }
+        }
+    }
+
+    Component{
+        id:delegate_items
+
+        Column{
+            id:item_layout
+
+            property real level: (mapToItem(list_root,0,0).x+list_root.contentX)/0.001
+            property var text: model.text??"Item"
+            property bool hasChild : (model.items !== undefined) && (model.items.count !== 0)
+            property var items: model.items??[]
+            property var expanded: model.expanded??true
+            property int width_hint: calculateWidth()
+            property bool singleSelected: currentElement === model
+            property var itemModel: model
+
+            function calculateWidth(){
+                var w = Math.max(list_root.width, item_layout_row.implicitWidth + 10);
+                if(expanded){
+                    for(var i = 0; i < repeater_items.count; i++) {
+                        var child = repeater_items.itemAt(i)
+                        if(w < child.width_hint){
+                            w = child.width_hint;
+                        }
+                    }
+                }
+                return w;
+            }
+            Item{
+                id:item_layout_rect
+                width: list_root.contentWidth
+                height: item_layout_row.implicitHeight
+
+
+                Rectangle{
+                    anchors.fill: parent
+                    anchors.margins: 2
+                    color:{
+                        if(FluTheme.dark){
+                            if(item_layout.singleSelected && selectionMode === FluTreeView.Single){
+                                return Qt.rgba(62/255,62/255,62/255,1)
+                            }
+                            return (item_layout_mouse.containsMouse || item_layout_expanded.hovered || item_layout_checkbox.hovered)?Qt.rgba(62/255,62/255,62/255,1):Qt.rgba(0,0,0,0)
+                        }else{
+                            if(item_layout.singleSelected && selectionMode === FluTreeView.Single){
+                                return Qt.rgba(0,0,0,0.06)
+                            }
+                            return (item_layout_mouse.containsMouse || item_layout_expanded.hovered || item_layout_checkbox.hovered)?Qt.rgba(0,0,0,0.03):Qt.rgba(0,0,0,0)
+                        }
+                    }
+
+                    Rectangle{
+                        width: 3
+                        color:FluTheme.primaryColor.dark
+                        visible: item_layout.singleSelected && (selectionMode === FluTreeView.Single)
+                        radius: 3
+                        height: 20
+                        anchors{
+                            left: parent.left
+                            verticalCenter: parent.verticalCenter
+                        }
+                    }
+
+                    MouseArea{
+                        id:item_layout_mouse
+                        anchors.fill: parent
+                        hoverEnabled: true
+                        onClicked: {
+                            item_layout_rect.onClickItem()
+                        }
+                    }
+                }
+
+
+                function onClickItem(){
+                    if(selectionMode === FluTreeView.None){
+                        itemClicked(model)
+                    }
+                    if(selectionMode === FluTreeView.Single){
+                        currentElement = model
+                        if(item_layout.parent.parent.parent.itemModel){
+                            currentParentElement = item_layout.parent.parent.parent.itemModel
+                        }else{
+                            if(item_layout.parent.itemModel){
+                                currentParentElement = item_layout.parent.itemModel
+                            }
+                        }
+                    }
+                    if(selectionMode === FluTreeView.Multiple){
+
+                    }
+                }
+
+                RowLayout{
+                    id:item_layout_row
+                    anchors.verticalCenter: item_layout_rect.verticalCenter
+
+                    Item{
+                        width: 15*level
+                        Layout.alignment: Qt.AlignVCenter
+                    }
+
+                    FluCheckBox{
+                        id:item_layout_checkbox
+                        text:""
+                        selected: itemModel.multipSelected
+                        visible: selectionMode === FluTreeView.Multiple
+                        Layout.leftMargin: 5
+
+                        function refreshCheckBox(){
+                            const stack = [tree_model.get(0)];
+                            const result = [];
+                            while (stack.length > 0) {
+                                const curr = stack.pop();
+                                result.unshift(curr);
+                                if (curr.items) {
+                                    for(var i=0 ; i<curr.items.count ; i++){
+                                        curr.items.setProperty(i,"multipIndex",i)
+                                        curr.items.setProperty(i,"multipParentKey",curr.key)
+                                        stack.push(curr.items.get(i));
+                                    }
+                                }
+                            }
+                            for(var j=0 ; j<result.length-1 ; j++){
+                                var item = result[j]
+                                let obj = result.find(function(o) {
+                                    return o.key === item.multipParentKey;
+                                });
+                                if((item.items !== undefined) && (item.items.count !== 0)){
+                                    var items = item.items
+                                    for(var k=0 ; k<items.count ; k++){
+                                        if(items.get(k).multipSelected === false){
+                                            obj.items.setProperty(item.multipIndex,"multipSelected",false)
+                                            break
+                                        }
+                                        obj.items.setProperty(item.multipIndex,"multipSelected",true)
+                                    }
+                                }
+                            }
+                        }
+
+                        clickFunc:function(){
+                            if(hasChild){
+                                const stack = [itemModel];
+                                while (stack.length > 0) {
+                                    const curr = stack.pop();
+                                    if (curr.items) {
+                                        for(var i=0 ; i<curr.items.count ; i++){
+                                            curr.items.setProperty(i,"multipSelected",!itemModel.multipSelected)
+                                            stack.push(curr.items.get(i));
+                                        }
+                                    }
+                                }
+                                refreshCheckBox()
+                            }else{
+                                itemModel.multipSelected = !itemModel.multipSelected
+                                refreshCheckBox()
+                            }
+                        }
+                    }
+
+                    FluIconButton{
+                        id:item_layout_expanded
+                        color:"#00000000"
+                        iconSource:item_layout.expanded?FluentIcons.ChevronDown:FluentIcons.ChevronRight
+                        opacity: item_layout.hasChild
+                        iconSize: 15
+                        onClicked: {
+                            if(!item_layout.hasChild){
+                                item_layout_rect.onClickItem()
+                                return
+                            }
+                            model.expanded = !model.expanded
+                        }
+                    }
+
+                    FluText {
+                        text:  item_layout.text
+                        Layout.alignment: Qt.AlignVCenter
+                        topPadding: 7
+                        bottomPadding: 7
+                    }
+                }
+            }
+
+            Item{
+                id:item_sub
+                visible: {
+                    if(!hasChild){
+                        return false
+                    }
+                    return item_layout.expanded??false
+                }
+
+                width: item_sub_layout.implicitWidth
+                height: item_sub_layout.implicitHeight
+                x:0.001
+                Column{
+                    id: item_sub_layout
+                    Repeater{
+                        id:repeater_items
+                        model: item_layout.items
+                        delegate: delegate_items
+                    }
+                }
+            }
+        }
+    }
+
+    ListView {
+        id: list_root
+        anchors.fill: parent
+        delegate: delegate_root
+        contentWidth: contentItem.childrenRect.width
+        model: tree_model
+        flickableDirection: Flickable.HorizontalAndVerticalFlick
+        clip: true
+        ScrollBar.vertical: FluScrollBar {}
+        ScrollBar.horizontal: FluScrollBar { }
+    }
+
+    function updateData(items){
+        rootModel.clear()
+        rootModel.append(items)
+    }
+
+    function signleData(){
+        return currentElement
+    }
+
+    function multipData(){
+        const stack = [tree_model.get(0)];
+        const result = [];
+        while (stack.length > 0) {
+            const curr = stack.pop();
+            if(curr.multipSelected){
+                result.push(curr)
+            }
+
+            for(var i=0 ; i<curr.items.count ; i++){
+                stack.push(curr.items.get(i));
+            }
+        }
+        return result
+    }
+
+    function createItem(text="Title",expanded=true,items=[]){
+        return {text:text,expanded:expanded,items:items,key:uniqueRandom(),multipSelected:false,multipIndex:0,multipParentKey:""};
+    }
+
+    function uniqueRandom() {
+        var timestamp = Date.now();
+        var random = Math.floor(Math.random() * 1000000);
+        return timestamp.toString() + random.toString();
+    }
+
+}

+ 113 - 0
module/gui/FluentUI/Controls/FluWindow.qml

@@ -0,0 +1,113 @@
+import QtQuick
+import QtQuick.Window
+import QtQuick.Controls
+import QtQuick.Layouts
+import FluentUI
+
+ApplicationWindow {
+
+    enum LaunchMode {
+        Standard,
+        SingleTask,
+        SingleInstance
+    }
+
+    default property alias content: container.data
+    property bool closeDestory: true
+    property int launchMode: FluWindow.Standard
+    property string route
+    property var argument:({})
+    property var pageRegister
+    property var closeFunc: function(event){
+        if(closeDestory){
+            destoryWindow()
+        }else{
+            visible = false
+            event.accepted = false
+        }
+    }
+    signal initArgument(var argument)
+
+    QtObject{
+        id:d
+        property bool firstFlag: true
+    }
+
+    id:window
+    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)
+        }
+        Behavior on color{
+            ColorAnimation {
+                duration: 300
+            }
+        }
+    }
+
+    Item{
+        id:container
+        anchors.fill: parent
+        anchors.margins: window.visibility === Window.Maximized && FluTheme.frameless ? 8/Screen.devicePixelRatio : 0
+        clip: true
+    }
+
+    onActiveChanged: {
+        if(d.firstFlag){
+            helper.firstUpdate()
+            d.firstFlag = false
+        }
+    }
+
+    onClosing:(event)=>closeFunc(event)
+
+    FluInfoBar{
+        id:infoBar
+        root: window
+    }
+
+    WindowHelper{
+        id:helper
+    }
+
+    Component.onCompleted: {
+        helper.initWindow(window)
+        initArgument(argument)
+        window.x = (Screen.width - window.width)/2
+        window.y = (Screen.desktopAvailableHeight - window.height)/2
+    }
+
+    function showSuccess(text,duration,moremsg){
+        infoBar.showSuccess(text,duration,moremsg);
+    }
+
+    function showInfo(text,duration,moremsg){
+        infoBar.showInfo(text,duration,moremsg);
+    }
+
+    function showWarning(text,duration,moremsg){
+        infoBar.showWarning(text,duration,moremsg);
+    }
+
+    function showError(text,duration,moremsg){
+        infoBar.showError(text,duration,moremsg);
+    }
+
+    function registerForWindowResult(path){
+        return helper.createRegister(window,path)
+    }
+
+    function destoryWindow(){
+        helper.destoryWindow()
+    }
+
+    function onResult(data){
+        if(pageRegister){
+            pageRegister.onResult(data)
+        }
+    }
+
+}

+ 144 - 0
module/gui/FluentUI/Controls/FluWindowResize.qml

@@ -0,0 +1,144 @@
+import QtQuick
+import QtQuick.Controls
+import QtQuick.Window
+import FluentUI
+
+MouseArea {
+
+    property int border: 4
+    property var window: Window.window
+    property bool fixedSize: {
+        if(window == null)
+            return true
+        if(window.visibility === Window.Maximized || window.visibility === Window.FullScreen){
+            return true
+        }
+        return (window.minimumWidth === window.maximumWidth && window.minimumHeight === window.maximumHeight)
+    }
+
+    anchors.fill: parent
+    acceptedButtons: Qt.LeftButton
+    hoverEnabled: true
+    preventStealing: true
+    propagateComposedEvents: true
+    z: -65535
+
+    onPressed :
+        (mouse)=> {
+            if (fixedSize) {
+                return;
+            }
+
+            let e = 0;
+            if (ptInRect(0,0,border,border, mouse.x, mouse.y)) {
+                e = Qt.TopEdge | Qt.LeftEdge;
+                window.startSystemResize(e);
+                return;
+            }
+
+            if (ptInRect(border,0,window.width-border*2,border, mouse.x, mouse.y)) {
+                e = Qt.TopEdge;
+                window.startSystemResize(e);
+                return;
+            }
+
+            if (ptInRect(window.width-border,0,border,border, mouse.x, mouse.y)) {
+                e = Qt.TopEdge | Qt.RightEdge;
+                window.startSystemResize(e);
+                return;
+            }
+
+            if (ptInRect(window.width-border,border,border,window.height-border*2, mouse.x, mouse.y)) {
+                e = Qt.RightEdge;
+                window.startSystemResize(e);
+                return;
+            }
+
+            if (ptInRect(window.width-border,window.height-border,border,border, mouse.x, mouse.y)) {
+                e = Qt.BottomEdge | Qt.RightEdge;
+                window.startSystemResize(e);
+                return;
+            }
+
+            if (ptInRect(border,window.height-border,window.width-border*2,border, mouse.x, mouse.y)) {
+                e = Qt.BottomEdge;
+                window.startSystemResize(e);
+                return;
+            }
+
+            if (ptInRect(0,window.height-border,border,border, mouse.x, mouse.y)) {
+                e = Qt.BottomEdge | Qt.LeftEdge;
+                window.startSystemResize(e);
+                return;
+            }
+
+            if (ptInRect(0,border,border , window.height-border*2, mouse.x, mouse.y)) {
+                e = Qt.LeftEdge;
+                window.startSystemResize(e);
+                return;
+            }
+        }
+
+    onPositionChanged:
+        (mouse)=> {
+            if (fixedSize) {
+                cursorShape = Qt.ArrowCursor;
+                return;
+            }
+            if (ptInRect(0,0,border,border, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeFDiagCursor;
+                return;
+            }
+
+            if (ptInRect(border,0,window.width-border*2,border, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeVerCursor;
+                return;
+            }
+
+            if (ptInRect(window.width-border,0,border,border, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeBDiagCursor;
+                return;
+            }
+
+            if (ptInRect(window.width-border,border,border,window.height-border*2, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeHorCursor;
+                return;
+            }
+
+            if (ptInRect(window.width-border,window.height-border,border,border, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeFDiagCursor;
+                return;
+            }
+
+            if (ptInRect(border,window.height-border,window.width-border*2,border, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeVerCursor;
+                return;
+            }
+
+            if (ptInRect(0,window.height-border,border,border, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeBDiagCursor;
+                return;
+            }
+
+            if (ptInRect(0,border,border, window.height-border*2, mouse.x, mouse.y)) {
+                cursorShape = Qt.SizeHorCursor;
+                return;
+            }
+
+            cursorShape = Qt.ArrowCursor;
+        }
+
+    onExited: {
+        cursorShape = Qt.ArrowCursor;
+    }
+
+    function ptInRect(rcx,rcy,rcwidth,rcheight, x, y)
+    {
+        if ((rcx <= x && x <= (rcx + rcwidth)) &&
+                (rcy <= y && y <= (rcy + rcheight))) {
+            return true;
+        }
+        return false;
+    }
+
+}

BIN
module/gui/FluentUI/Font/Segoe_Fluent_Icons.ttf


+ 1662 - 0
module/gui/FluentUI/fluentui.qmltypes

@@ -0,0 +1,1662 @@
+import QtQuick.tooling 1.2
+
+// This file describes the plugin-supplied types contained in the library.
+// It is used for QML tooling purposes only.
+//
+// This file was auto-generated by qmltyperegistrar.
+
+Module {
+    Component {
+        file: "FluApp.h"
+        name: "FluApp"
+        accessSemantics: "reference"
+        prototype: "QObject"
+        exports: ["FluentUI/FluApp 1.0"]
+        isCreatable: false
+        isSingleton: true
+        exportMetaObjectRevisions: [256]
+        Property { name: "initialRoute"; type: "QString"; notify: "initialRouteChanged"; index: 0 }
+        Property { name: "routes"; type: "QJsonObject"; notify: "routesChanged"; index: 1 }
+        Signal { name: "initialRouteChanged" }
+        Signal { name: "routesChanged" }
+        Method { name: "run" }
+        Method {
+            name: "navigate"
+            Parameter { name: "route"; type: "QString" }
+            Parameter { name: "argument"; type: "QJsonObject" }
+            Parameter { name: "fluRegister"; type: "FluRegister"; isPointer: true }
+        }
+        Method {
+            name: "navigate"
+            Parameter { name: "route"; type: "QString" }
+            Parameter { name: "argument"; type: "QJsonObject" }
+        }
+        Method {
+            name: "navigate"
+            Parameter { name: "route"; type: "QString" }
+        }
+        Method {
+            name: "init"
+            Parameter { name: "window"; type: "QQuickWindow"; isPointer: true }
+        }
+        Method {
+            name: "awesomelist"
+            type: "QJsonArray"
+            Parameter { name: "keyword"; type: "QString" }
+        }
+        Method { name: "awesomelist"; type: "QJsonArray" }
+        Method { name: "closeApp" }
+        Method {
+            name: "setFluApp"
+            Parameter { name: "val"; type: "FluApp"; isPointer: true }
+        }
+        Method {
+            name: "setFluTheme"
+            Parameter { name: "val"; type: "FluTheme"; isPointer: true }
+        }
+        Method {
+            name: "setFluColors"
+            Parameter { name: "val"; type: "FluColors"; isPointer: true }
+        }
+        Method {
+            name: "setFluTools"
+            Parameter { name: "val"; type: "FluTools"; isPointer: true }
+        }
+    }
+    Component {
+        file: "FluColors.h"
+        name: "FluColors"
+        accessSemantics: "reference"
+        prototype: "QObject"
+        exports: ["FluentUI/FluColors 1.0"]
+        isCreatable: false
+        isSingleton: true
+        exportMetaObjectRevisions: [256]
+        Property { name: "Black"; type: "QString"; notify: "BlackChanged"; index: 0 }
+        Property { name: "White"; type: "QString"; notify: "WhiteChanged"; index: 1 }
+        Property { name: "Grey10"; type: "QString"; notify: "Grey10Changed"; index: 2 }
+        Property { name: "Grey20"; type: "QString"; notify: "Grey20Changed"; index: 3 }
+        Property { name: "Grey30"; type: "QString"; notify: "Grey30Changed"; index: 4 }
+        Property { name: "Grey40"; type: "QString"; notify: "Grey40Changed"; index: 5 }
+        Property { name: "Grey50"; type: "QString"; notify: "Grey50Changed"; index: 6 }
+        Property { name: "Grey60"; type: "QString"; notify: "Grey60Changed"; index: 7 }
+        Property { name: "Grey70"; type: "QString"; notify: "Grey70Changed"; index: 8 }
+        Property { name: "Grey80"; type: "QString"; notify: "Grey80Changed"; index: 9 }
+        Property { name: "Grey90"; type: "QString"; notify: "Grey90Changed"; index: 10 }
+        Property { name: "Grey100"; type: "QString"; notify: "Grey100Changed"; index: 11 }
+        Property { name: "Grey110"; type: "QString"; notify: "Grey110Changed"; index: 12 }
+        Property { name: "Grey120"; type: "QString"; notify: "Grey120Changed"; index: 13 }
+        Property { name: "Grey130"; type: "QString"; notify: "Grey130Changed"; index: 14 }
+        Property { name: "Grey140"; type: "QString"; notify: "Grey140Changed"; index: 15 }
+        Property { name: "Grey150"; type: "QString"; notify: "Grey150Changed"; index: 16 }
+        Property { name: "Grey160"; type: "QString"; notify: "Grey160Changed"; index: 17 }
+        Property { name: "Grey170"; type: "QString"; notify: "Grey170Changed"; index: 18 }
+        Property { name: "Grey180"; type: "QString"; notify: "Grey180Changed"; index: 19 }
+        Property { name: "Grey190"; type: "QString"; notify: "Grey190Changed"; index: 20 }
+        Property { name: "Grey200"; type: "QString"; notify: "Grey200Changed"; index: 21 }
+        Property { name: "Grey210"; type: "QString"; notify: "Grey210Changed"; index: 22 }
+        Property { name: "Grey220"; type: "QString"; notify: "Grey220Changed"; index: 23 }
+        Property {
+            name: "Yellow"
+            type: "FluColorSet"
+            isPointer: true
+            notify: "YellowChanged"
+            index: 24
+        }
+        Property {
+            name: "Orange"
+            type: "FluColorSet"
+            isPointer: true
+            notify: "OrangeChanged"
+            index: 25
+        }
+        Property { name: "Red"; type: "FluColorSet"; isPointer: true; notify: "RedChanged"; index: 26 }
+        Property {
+            name: "Magenta"
+            type: "FluColorSet"
+            isPointer: true
+            notify: "MagentaChanged"
+            index: 27
+        }
+        Property {
+            name: "Purple"
+            type: "FluColorSet"
+            isPointer: true
+            notify: "PurpleChanged"
+            index: 28
+        }
+        Property { name: "Blue"; type: "FluColorSet"; isPointer: true; notify: "BlueChanged"; index: 29 }
+        Property { name: "Teal"; type: "FluColorSet"; isPointer: true; notify: "TealChanged"; index: 30 }
+        Property { name: "Green"; type: "FluColorSet"; isPointer: true; notify: "GreenChanged"; index: 31 }
+        Signal { name: "BlackChanged" }
+        Signal { name: "WhiteChanged" }
+        Signal { name: "Grey10Changed" }
+        Signal { name: "Grey20Changed" }
+        Signal { name: "Grey30Changed" }
+        Signal { name: "Grey40Changed" }
+        Signal { name: "Grey50Changed" }
+        Signal { name: "Grey60Changed" }
+        Signal { name: "Grey70Changed" }
+        Signal { name: "Grey80Changed" }
+        Signal { name: "Grey90Changed" }
+        Signal { name: "Grey100Changed" }
+        Signal { name: "Grey110Changed" }
+        Signal { name: "Grey120Changed" }
+        Signal { name: "Grey130Changed" }
+        Signal { name: "Grey140Changed" }
+        Signal { name: "Grey150Changed" }
+        Signal { name: "Grey160Changed" }
+        Signal { name: "Grey170Changed" }
+        Signal { name: "Grey180Changed" }
+        Signal { name: "Grey190Changed" }
+        Signal { name: "Grey200Changed" }
+        Signal { name: "Grey210Changed" }
+        Signal { name: "Grey220Changed" }
+        Signal { name: "YellowChanged" }
+        Signal { name: "OrangeChanged" }
+        Signal { name: "RedChanged" }
+        Signal { name: "MagentaChanged" }
+        Signal { name: "PurpleChanged" }
+        Signal { name: "BlueChanged" }
+        Signal { name: "TealChanged" }
+        Signal { name: "GreenChanged" }
+    }
+    Component {
+        file: "FluTheme.h"
+        name: "FluTheme"
+        accessSemantics: "reference"
+        prototype: "QObject"
+        exports: ["FluentUI/FluTheme 1.0"]
+        isCreatable: false
+        isSingleton: true
+        exportMetaObjectRevisions: [256]
+        Property {
+            name: "dark"
+            type: "bool"
+            read: "dark"
+            notify: "darkChanged"
+            index: 0
+            isReadonly: true
+        }
+        Property {
+            name: "primaryColor"
+            type: "FluColorSet"
+            isPointer: true
+            notify: "primaryColorChanged"
+            index: 1
+        }
+        Property { name: "frameless"; type: "bool"; notify: "framelessChanged"; index: 2 }
+        Property { name: "darkMode"; type: "int"; notify: "darkModeChanged"; index: 3 }
+        Property { name: "nativeText"; type: "bool"; notify: "nativeTextChanged"; index: 4 }
+        Property { name: "textSize"; type: "int"; notify: "textSizeChanged"; index: 5 }
+        Signal { name: "primaryColorChanged" }
+        Signal { name: "framelessChanged" }
+        Signal { name: "darkModeChanged" }
+        Signal { name: "nativeTextChanged" }
+        Signal { name: "textSizeChanged" }
+        Signal { name: "darkChanged" }
+    }
+    Component {
+        file: "FluTools.h"
+        name: "FluTools"
+        accessSemantics: "reference"
+        prototype: "QObject"
+        exports: ["FluentUI/FluTools 1.0"]
+        isCreatable: false
+        isSingleton: true
+        exportMetaObjectRevisions: [256]
+        Method {
+            name: "clipText"
+            Parameter { name: "text"; type: "QString" }
+        }
+        Method { name: "uuid"; type: "QString" }
+    }
+    Component {
+        file: "Def.h"
+        name: "Fluent_Awesome"
+        accessSemantics: "none"
+        exports: ["FluentUI/FluentIcons 1.0"]
+        isCreatable: false
+        exportMetaObjectRevisions: [256]
+        Enum {
+            name: "Fluent_AwesomeType"
+            values: [
+                "GlobalNavButton",
+                "Wifi",
+                "Bluetooth",
+                "Connect",
+                "InternetSharing",
+                "VPN",
+                "Brightness",
+                "MapPin",
+                "QuietHours",
+                "Airplane",
+                "Tablet",
+                "QuickNote",
+                "RememberedDevice",
+                "ChevronDown",
+                "ChevronUp",
+                "Edit",
+                "Add",
+                "Cancel",
+                "More",
+                "Settings",
+                "Video",
+                "Mail",
+                "People",
+                "Phone",
+                "Pin",
+                "Shop",
+                "Stop",
+                "Link",
+                "Filter",
+                "AllApps",
+                "Zoom",
+                "ZoomOut",
+                "Microphone",
+                "Search",
+                "Camera",
+                "Attach",
+                "Send",
+                "SendFill",
+                "WalkSolid",
+                "InPrivate",
+                "FavoriteList",
+                "PageSolid",
+                "Forward",
+                "Back",
+                "Refresh",
+                "Share",
+                "Lock",
+                "ReportHacked",
+                "EMI",
+                "FavoriteStar",
+                "FavoriteStarFill",
+                "ReadingMode",
+                "Favicon",
+                "Remove",
+                "Checkbox",
+                "CheckboxComposite",
+                "CheckboxFill",
+                "CheckboxIndeterminate",
+                "CheckboxCompositeReversed",
+                "CheckMark",
+                "BackToWindow",
+                "FullScreen",
+                "ResizeTouchLarger",
+                "ResizeTouchSmaller",
+                "ResizeMouseSmall",
+                "ResizeMouseMedium",
+                "ResizeMouseWide",
+                "ResizeMouseTall",
+                "ResizeMouseLarge",
+                "SwitchUser",
+                "Print",
+                "Up",
+                "Down",
+                "OEM",
+                "Delete",
+                "Save",
+                "Mute",
+                "BackSpaceQWERTY",
+                "ReturnKey",
+                "UpArrowShiftKey",
+                "Cloud",
+                "Flashlight",
+                "RotationLock",
+                "CommandPrompt",
+                "SIPMove",
+                "SIPUndock",
+                "SIPRedock",
+                "EraseTool",
+                "UnderscoreSpace",
+                "GripperTool",
+                "Dialpad",
+                "PageLeft",
+                "PageRight",
+                "MultiSelect",
+                "KeyboardLeftHanded",
+                "KeyboardRightHanded",
+                "KeyboardClassic",
+                "KeyboardSplit",
+                "Volume",
+                "Play",
+                "Pause",
+                "ChevronLeft",
+                "ChevronRight",
+                "InkingTool",
+                "Emoji2",
+                "GripperBarHorizontal",
+                "System",
+                "Personalize",
+                "Devices",
+                "SearchAndApps",
+                "Globe",
+                "TimeLanguage",
+                "EaseOfAccess",
+                "UpdateRestore",
+                "HangUp",
+                "ContactInfo",
+                "Unpin",
+                "Contact",
+                "Memo",
+                "IncomingCall",
+                "Paste",
+                "PhoneBook",
+                "LEDLight",
+                "Error",
+                "GripperBarVertical",
+                "Unlock",
+                "Slideshow",
+                "Calendar",
+                "GripperResize",
+                "Megaphone",
+                "Trim",
+                "NewWindow",
+                "SaveLocal",
+                "Color",
+                "DataSense",
+                "SaveAs",
+                "Light",
+                "AspectRatio",
+                "DataSenseBar",
+                "Redo",
+                "Undo",
+                "Crop",
+                "OpenWith",
+                "Rotate",
+                "RedEye",
+                "SetlockScreen",
+                "MapPin2",
+                "Package",
+                "Warning",
+                "ReadingList",
+                "Education",
+                "ShoppingCart",
+                "Train",
+                "Flag",
+                "Move",
+                "Page",
+                "TaskView",
+                "BrowsePhotos",
+                "HalfStarLeft",
+                "HalfStarRight",
+                "Record",
+                "TouchPointer",
+                "LangJPN",
+                "Ferry",
+                "Highlight",
+                "ActionCenterNotification",
+                "PowerButton",
+                "ResizeTouchNarrower",
+                "ResizeTouchShorter",
+                "DrivingMode",
+                "RingerSilent",
+                "OtherUser",
+                "Admin",
+                "CC",
+                "SDCard",
+                "CallForwarding",
+                "SettingsDisplaySound",
+                "TVMonitor",
+                "Speakers",
+                "Headphone",
+                "DeviceLaptopPic",
+                "DeviceLaptopNoPic",
+                "DeviceMonitorRightPic",
+                "DeviceMonitorLeftPic",
+                "DeviceMonitorNoPic",
+                "Game",
+                "HorizontalTabKey",
+                "StreetsideSplitMinimize",
+                "StreetsideSplitExpand",
+                "Car",
+                "Walk",
+                "Bus",
+                "TiltUp",
+                "TiltDown",
+                "CallControl",
+                "RotateMapRight",
+                "RotateMapLeft",
+                "Home",
+                "ParkingLocation",
+                "MapCompassTop",
+                "MapCompassBottom",
+                "IncidentTriangle",
+                "Touch",
+                "MapDirections",
+                "StartPoint",
+                "StopPoint",
+                "EndPoint",
+                "History",
+                "Location",
+                "MapLayers",
+                "Accident",
+                "Work",
+                "Construction",
+                "Recent",
+                "Bank",
+                "DownloadMap",
+                "InkingToolFill2",
+                "HighlightFill2",
+                "EraseToolFill",
+                "EraseToolFill2",
+                "Dictionary",
+                "DictionaryAdd",
+                "ToolTip",
+                "ChromeBack",
+                "ProvisioningPackage",
+                "AddRemoteDevice",
+                "FolderOpen",
+                "Ethernet",
+                "ShareBroadband",
+                "DirectAccess",
+                "DialUp",
+                "DefenderApp",
+                "BatteryCharging9",
+                "Battery10",
+                "Pinned",
+                "PinFill",
+                "PinnedFill",
+                "PeriodKey",
+                "PuncKey",
+                "RevToggleKey",
+                "RightArrowKeyTime1",
+                "RightArrowKeyTime2",
+                "LeftQuote",
+                "RightQuote",
+                "DownShiftKey",
+                "UpShiftKey",
+                "PuncKey0",
+                "PuncKeyLeftBottom",
+                "RightArrowKeyTime3",
+                "RightArrowKeyTime4",
+                "Battery0",
+                "Battery1",
+                "Battery2",
+                "Battery3",
+                "Battery4",
+                "Battery5",
+                "Battery6",
+                "Battery7",
+                "Battery8",
+                "Battery9",
+                "BatteryCharging0",
+                "BatteryCharging1",
+                "BatteryCharging2",
+                "BatteryCharging3",
+                "BatteryCharging4",
+                "BatteryCharging5",
+                "BatteryCharging6",
+                "BatteryCharging7",
+                "BatteryCharging8",
+                "BatterySaver0",
+                "BatterySaver1",
+                "BatterySaver2",
+                "BatterySaver3",
+                "BatterySaver4",
+                "BatterySaver5",
+                "BatterySaver6",
+                "BatterySaver7",
+                "BatterySaver8",
+                "SignalBars1",
+                "SignalBars2",
+                "SignalBars3",
+                "SignalBars4",
+                "SignalBars5",
+                "SignalNotConnected",
+                "Wifi1",
+                "Wifi2",
+                "Wifi3",
+                "MobSIMLock",
+                "MobSIMMissing",
+                "Vibrate",
+                "RoamingInternational",
+                "RoamingDomestic",
+                "CallForwardInternational",
+                "CallForwardRoaming",
+                "JpnRomanji",
+                "JpnRomanjiLock",
+                "JpnRomanjiShift",
+                "JpnRomanjiShiftLock",
+                "StatusDataTransfer",
+                "StatusDataTransferVPN",
+                "StatusDualSIM2",
+                "StatusDualSIM2VPN",
+                "StatusDualSIM1",
+                "StatusDualSIM1VPN",
+                "StatusSGLTE",
+                "StatusSGLTECell",
+                "StatusSGLTEDataVPN",
+                "StatusVPN",
+                "WifiHotspot",
+                "LanguageKor",
+                "LanguageCht",
+                "LanguageChs",
+                "USB",
+                "InkingToolFill",
+                "View",
+                "HighlightFill",
+                "Previous",
+                "Next",
+                "Clear",
+                "Sync",
+                "Download",
+                "Help",
+                "Upload",
+                "Emoji",
+                "TwoPage",
+                "LeaveChat",
+                "MailForward",
+                "RotateCamera",
+                "ClosePane",
+                "OpenPane",
+                "PreviewLink",
+                "AttachCamera",
+                "ZoomIn",
+                "Bookmarks",
+                "Document",
+                "ProtectedDocument",
+                "OpenInNewWindow",
+                "MailFill",
+                "ViewAll",
+                "VideoChat",
+                "Switch",
+                "Rename",
+                "Go",
+                "SurfaceHub",
+                "Remote",
+                "Click",
+                "Shuffle",
+                "Movies",
+                "SelectAll",
+                "Orientation",
+                "Import",
+                "ImportAll",
+                "Folder",
+                "Webcam",
+                "Picture",
+                "Caption",
+                "ChromeClose",
+                "ShowResults",
+                "Message",
+                "Leaf",
+                "CalendarDay",
+                "CalendarWeek",
+                "Characters",
+                "MailReplyAll",
+                "Read",
+                "ShowBcc",
+                "HideBcc",
+                "Cut",
+                "PaymentCard",
+                "Copy",
+                "Important",
+                "MailReply",
+                "Sort",
+                "MobileTablet",
+                "DisconnectDrive",
+                "MapDrive",
+                "ContactPresence",
+                "Priority",
+                "GotoToday",
+                "Font",
+                "FontColor",
+                "Contact2",
+                "FolderFill",
+                "Audio",
+                "Permissions",
+                "DisableUpdates",
+                "Unfavorite",
+                "OpenLocal",
+                "Italic",
+                "Underline",
+                "Bold",
+                "MoveToFolder",
+                "LikeDislike",
+                "Dislike",
+                "Like",
+                "AlignRight",
+                "AlignCenter",
+                "AlignLeft",
+                "OpenFile",
+                "ClearSelection",
+                "FontDecrease",
+                "FontIncrease",
+                "FontSize",
+                "CellPhone",
+                "Reshare",
+                "Tag",
+                "RepeatOne",
+                "RepeatAll",
+                "Calculator",
+                "Directions",
+                "Library",
+                "ChatBubbles",
+                "PostUpdate",
+                "NewFolder",
+                "CalendarReply",
+                "UnsyncFolder",
+                "SyncFolder",
+                "BlockContact",
+                "SwitchApps",
+                "AddFriend",
+                "Accept",
+                "GoToStart",
+                "BulletedList",
+                "Scan",
+                "Preview",
+                "Group",
+                "ZeroBars",
+                "OneBar",
+                "TwoBars",
+                "ThreeBars",
+                "FourBars",
+                "World",
+                "Comment",
+                "MusicInfo",
+                "DockLeft",
+                "DockRight",
+                "DockBottom",
+                "Repair",
+                "Accounts",
+                "DullSound",
+                "Manage",
+                "Street",
+                "Printer3D",
+                "RadioBullet",
+                "Stopwatch",
+                "Photo",
+                "ActionCenter",
+                "FullCircleMask",
+                "ChromeMinimize",
+                "ChromeMaximize",
+                "ChromeRestore",
+                "Annotation",
+                "BackSpaceQWERTYSm",
+                "BackSpaceQWERTYMd",
+                "Swipe",
+                "Fingerprint",
+                "Handwriting",
+                "ChromeBackToWindow",
+                "ChromeFullScreen",
+                "KeyboardStandard",
+                "KeyboardDismiss",
+                "Completed",
+                "ChromeAnnotate",
+                "Label",
+                "IBeam",
+                "IBeamOutline",
+                "FlickDown",
+                "FlickUp",
+                "FlickLeft",
+                "FlickRight",
+                "FeedbackApp",
+                "MusicAlbum",
+                "Streaming",
+                "Code",
+                "ReturnToWindow",
+                "LightningBolt",
+                "Info",
+                "CalculatorMultiply",
+                "CalculatorAddition",
+                "CalculatorSubtract",
+                "CalculatorDivide",
+                "CalculatorSquareroot",
+                "CalculatorPercentage",
+                "CalculatorNegate",
+                "CalculatorEqualTo",
+                "CalculatorBackspace",
+                "Component",
+                "DMC",
+                "Dock",
+                "MultimediaDMS",
+                "MultimediaDVR",
+                "MultimediaPMP",
+                "PrintfaxPrinterFile",
+                "Sensor",
+                "StorageOptical",
+                "Communications",
+                "Headset",
+                "Projector",
+                "Health",
+                "Wire",
+                "Webcam2",
+                "Input",
+                "Mouse",
+                "Smartcard",
+                "SmartcardVirtual",
+                "MediaStorageTower",
+                "ReturnKeySm",
+                "GameConsole",
+                "Network",
+                "StorageNetworkWireless",
+                "StorageTape",
+                "ChevronUpSmall",
+                "ChevronDownSmall",
+                "ChevronLeftSmall",
+                "ChevronRightSmall",
+                "ChevronUpMed",
+                "ChevronDownMed",
+                "ChevronLeftMed",
+                "ChevronRightMed",
+                "Devices2",
+                "ExpandTile",
+                "PC1",
+                "PresenceChicklet",
+                "PresenceChickletVideo",
+                "Reply",
+                "SetTile",
+                "Type",
+                "Korean",
+                "HalfAlpha",
+                "FullAlpha",
+                "Key12On",
+                "ChineseChangjie",
+                "QWERTYOn",
+                "QWERTYOff",
+                "ChineseQuick",
+                "Japanese",
+                "FullHiragana",
+                "FullKatakana",
+                "HalfKatakana",
+                "ChineseBoPoMoFo",
+                "ChinesePinyin",
+                "ConstructionCone",
+                "XboxOneConsole",
+                "Volume0",
+                "Volume1",
+                "Volume2",
+                "Volume3",
+                "BatteryUnknown",
+                "WifiAttentionOverlay",
+                "Robot",
+                "TapAndSend",
+                "FitPage",
+                "PasswordKeyShow",
+                "PasswordKeyHide",
+                "BidiLtr",
+                "BidiRtl",
+                "ForwardSm",
+                "CommaKey",
+                "DashKey",
+                "DullSoundKey",
+                "HalfDullSound",
+                "RightDoubleQuote",
+                "LeftDoubleQuote",
+                "PuncKeyRightBottom",
+                "PuncKey1",
+                "PuncKey2",
+                "PuncKey3",
+                "PuncKey4",
+                "PuncKey5",
+                "PuncKey6",
+                "PuncKey9",
+                "PuncKey7",
+                "PuncKey8",
+                "Frigid",
+                "Unknown",
+                "AreaChart",
+                "CheckList",
+                "Diagnostic",
+                "Equalizer",
+                "Process",
+                "Processing",
+                "ReportDocument",
+                "VideoSolid",
+                "MixedMediaBadge",
+                "DisconnectDisplay",
+                "Shield",
+                "Info2",
+                "ActionCenterAsterisk",
+                "Beta",
+                "SaveCopy",
+                "List",
+                "Asterisk",
+                "ErrorBadge",
+                "CircleRing",
+                "CircleFill",
+                "MergeCall",
+                "PrivateCall",
+                "Record2",
+                "AllAppsMirrored",
+                "BookmarksMirrored",
+                "BulletedListMirrored",
+                "CallForwardInternationalMirrored",
+                "CallForwardRoamingMirrored",
+                "ChromeBackMirrored",
+                "ClearSelectionMirrored",
+                "ClosePaneMirrored",
+                "ContactInfoMirrored",
+                "DockRightMirrored",
+                "DockLeftMirrored",
+                "ExpandTileMirrored",
+                "GoMirrored",
+                "GripperResizeMirrored",
+                "HelpMirrored",
+                "ImportMirrored",
+                "ImportAllMirrored",
+                "LeaveChatMirrored",
+                "ListMirrored",
+                "MailForwardMirrored",
+                "MailReplyMirrored",
+                "MailReplyAllMirrored",
+                "OpenPaneMirrored",
+                "OpenWithMirrored",
+                "ParkingLocationMirrored",
+                "ResizeMouseMediumMirrored",
+                "ResizeMouseSmallMirrored",
+                "ResizeMouseTallMirrored",
+                "ResizeTouchNarrowerMirrored",
+                "SendMirrored",
+                "SendFillMirrored",
+                "ShowResultsMirrored",
+                "Media",
+                "SyncError",
+                "Devices3",
+                "SlowMotionOn",
+                "Lightbulb",
+                "StatusCircle",
+                "StatusTriangle",
+                "StatusError",
+                "StatusWarning",
+                "Puzzle",
+                "CalendarSolid",
+                "HomeSolid",
+                "ParkingLocationSolid",
+                "ContactSolid",
+                "ConstructionSolid",
+                "AccidentSolid",
+                "Ringer",
+                "PDF",
+                "ThoughtBubble",
+                "HeartBroken",
+                "BatteryCharging10",
+                "BatterySaver9",
+                "BatterySaver10",
+                "CallForwardingMirrored",
+                "MultiSelectMirrored",
+                "Broom",
+                "ForwardCall",
+                "Trackers",
+                "Market",
+                "PieSingle",
+                "StockUp",
+                "StockDown",
+                "Design",
+                "Website",
+                "Drop",
+                "Radar",
+                "BusSolid",
+                "FerrySolid",
+                "StartPointSolid",
+                "StopPointSolid",
+                "EndPointSolid",
+                "AirplaneSolid",
+                "TrainSolid",
+                "WorkSolid",
+                "ReminderFill",
+                "Reminder",
+                "Heart",
+                "HeartFill",
+                "EthernetError",
+                "EthernetWarning",
+                "StatusConnecting1",
+                "StatusConnecting2",
+                "StatusUnsecure",
+                "WifiError0",
+                "WifiError1",
+                "WifiError2",
+                "WifiError3",
+                "WifiError4",
+                "WifiWarning0",
+                "WifiWarning1",
+                "WifiWarning2",
+                "WifiWarning3",
+                "WifiWarning4",
+                "Devices4",
+                "NUIIris",
+                "NUIFace",
+                "GatewayRouter",
+                "EditMirrored",
+                "NUIFPStartSlideHand",
+                "NUIFPStartSlideAction",
+                "NUIFPContinueSlideHand",
+                "NUIFPContinueSlideAction",
+                "NUIFPRollRightHand",
+                "NUIFPRollRightHandAction",
+                "NUIFPRollLeftHand",
+                "NUIFPRollLeftAction",
+                "NUIFPPressHand",
+                "NUIFPPressAction",
+                "NUIFPPressRepeatHand",
+                "NUIFPPressRepeatAction",
+                "StatusErrorFull",
+                "TaskViewExpanded",
+                "Certificate",
+                "BackSpaceQWERTYLg",
+                "ReturnKeyLg",
+                "FastForward",
+                "Rewind",
+                "Photo2",
+                "MobBattery0",
+                "MobBattery1",
+                "MobBattery2",
+                "MobBattery3",
+                "MobBattery4",
+                "MobBattery5",
+                "MobBattery6",
+                "MobBattery7",
+                "MobBattery8",
+                "MobBattery9",
+                "MobBattery10",
+                "MobBatteryCharging0",
+                "MobBatteryCharging1",
+                "MobBatteryCharging2",
+                "MobBatteryCharging3",
+                "MobBatteryCharging4",
+                "MobBatteryCharging5",
+                "MobBatteryCharging6",
+                "MobBatteryCharging7",
+                "MobBatteryCharging8",
+                "MobBatteryCharging9",
+                "MobBatteryCharging10",
+                "MobBatterySaver0",
+                "MobBatterySaver1",
+                "MobBatterySaver2",
+                "MobBatterySaver3",
+                "MobBatterySaver4",
+                "MobBatterySaver5",
+                "MobBatterySaver6",
+                "MobBatterySaver7",
+                "MobBatterySaver8",
+                "MobBatterySaver9",
+                "MobBatterySaver10",
+                "DictionaryCloud",
+                "ResetDrive",
+                "VolumeBars",
+                "Project",
+                "AdjustHologram",
+                "CloudDownload",
+                "MobWifiCallBars",
+                "MobWifiCall0",
+                "MobWifiCall1",
+                "MobWifiCall2",
+                "MobWifiCall3",
+                "MobWifiCall4",
+                "Family",
+                "LockFeedback",
+                "DeviceDiscovery",
+                "WindDirection",
+                "RightArrowKeyTime0",
+                "Bug",
+                "TabletMode",
+                "StatusCircleLeft",
+                "StatusTriangleLeft",
+                "StatusErrorLeft",
+                "StatusWarningLeft",
+                "MobBatteryUnknown",
+                "NetworkTower",
+                "CityNext",
+                "CityNext2",
+                "Courthouse",
+                "Groceries",
+                "Sustainable",
+                "BuildingEnergy",
+                "ToggleFilled",
+                "ToggleBorder",
+                "SliderThumb",
+                "ToggleThumb",
+                "MiracastLogoSmall",
+                "MiracastLogoLarge",
+                "PLAP",
+                "Badge",
+                "SignalRoaming",
+                "MobileLocked",
+                "InsiderHubApp",
+                "PersonalFolder",
+                "HomeGroup",
+                "MyNetwork",
+                "KeyboardFull",
+                "Cafe",
+                "MobSignal1",
+                "MobSignal2",
+                "MobSignal3",
+                "MobSignal4",
+                "MobSignal5",
+                "MobWifi1",
+                "MobWifi2",
+                "MobWifi3",
+                "MobWifi4",
+                "MobAirplane",
+                "MobBluetooth",
+                "MobActionCenter",
+                "MobLocation",
+                "MobWifiHotspot",
+                "LanguageJpn",
+                "MobQuietHours",
+                "MobDrivingMode",
+                "SpeedOff",
+                "SpeedMedium",
+                "SpeedHigh",
+                "ThisPC",
+                "MusicNote",
+                "FileExplorer",
+                "FileExplorerApp",
+                "LeftArrowKeyTime0",
+                "MicOff",
+                "MicSleep",
+                "MicError",
+                "PlaybackRate1x",
+                "PlaybackRateOther",
+                "CashDrawer",
+                "BarcodeScanner",
+                "ReceiptPrinter",
+                "MagStripeReader",
+                "CompletedSolid",
+                "CompanionApp",
+                "Favicon2",
+                "SwipeRevealArt",
+                "MicOn",
+                "MicClipping",
+                "TabletSelected",
+                "MobileSelected",
+                "LaptopSelected",
+                "TVMonitorSelected",
+                "DeveloperTools",
+                "MobCallForwarding",
+                "MobCallForwardingMirrored",
+                "BodyCam",
+                "PoliceCar",
+                "Draw",
+                "DrawSolid",
+                "LowerBrightness",
+                "ScrollUpDown",
+                "DateTime",
+                "HoloLens",
+                "Tiles",
+                "PartyLeader",
+                "AppIconDefault",
+                "Calories",
+                "POI",
+                "BandBattery0",
+                "BandBattery1",
+                "BandBattery2",
+                "BandBattery3",
+                "BandBattery4",
+                "BandBattery5",
+                "BandBattery6",
+                "AddSurfaceHub",
+                "DevUpdate",
+                "Unit",
+                "AddTo",
+                "RemoveFrom",
+                "RadioBtnOff",
+                "RadioBtnOn",
+                "RadioBullet2",
+                "ExploreContent",
+                "Blocked2",
+                "ScrollMode",
+                "ZoomMode",
+                "PanMode",
+                "WiredUSB",
+                "WirelessUSB",
+                "USBSafeConnect",
+                "ActionCenterNotificationMirrored",
+                "ActionCenterMirrored",
+                "SubscriptionAdd",
+                "ResetDevice",
+                "SubscriptionAddMirrored",
+                "QRCode",
+                "Feedback",
+                "Hide",
+                "Subtitles",
+                "SubtitlesAudio",
+                "OpenFolderHorizontal",
+                "CalendarMirrored",
+                "MobeSIM",
+                "MobeSIMNoProfile",
+                "MobeSIMLocked",
+                "MobeSIMBusy",
+                "SignalError",
+                "StreamingEnterprise",
+                "Headphone0",
+                "Headphone1",
+                "Headphone2",
+                "Headphone3",
+                "Apps",
+                "KeyboardBrightness",
+                "KeyboardLowerBrightness",
+                "SkipBack10",
+                "SkipForward30",
+                "TreeFolderFolder",
+                "TreeFolderFolderFill",
+                "TreeFolderFolderOpen",
+                "TreeFolderFolderOpenFill",
+                "MultimediaDMP",
+                "KeyboardOneHanded",
+                "Narrator",
+                "EmojiTabPeople",
+                "EmojiTabSmilesAnimals",
+                "EmojiTabCelebrationObjects",
+                "EmojiTabFoodPlants",
+                "EmojiTabTransitPlaces",
+                "EmojiTabSymbols",
+                "EmojiTabTextSmiles",
+                "EmojiTabFavorites",
+                "EmojiSwatch",
+                "ConnectApp",
+                "CompanionDeviceFramework",
+                "Ruler",
+                "FingerInking",
+                "StrokeErase",
+                "PointErase",
+                "ClearAllInk",
+                "Pencil",
+                "Marker",
+                "InkingCaret",
+                "InkingColorOutline",
+                "InkingColorFill",
+                "HardDrive",
+                "NetworkAdapter",
+                "Touchscreen",
+                "NetworkPrinter",
+                "CloudPrinter",
+                "KeyboardShortcut",
+                "BrushSize",
+                "NarratorForward",
+                "NarratorForwardMirrored",
+                "SyncBadge12",
+                "RingerBadge12",
+                "AsteriskBadge12",
+                "ErrorBadge12",
+                "CircleRingBadge12",
+                "CircleFillBadge12",
+                "ImportantBadge12",
+                "MailBadge12",
+                "PauseBadge12",
+                "PlayBadge12",
+                "PenWorkspace",
+                "CaretLeft8",
+                "CaretRight8",
+                "CaretUp8",
+                "CaretDown8",
+                "CaretLeftSolid8",
+                "CaretRightSolid8",
+                "CaretUpSolid8",
+                "CaretDownSolid8",
+                "Strikethrough",
+                "Export",
+                "ExportMirrored",
+                "ButtonMenu",
+                "CloudSearch",
+                "PinyinIMELogo",
+                "CalligraphyPen",
+                "ReplyMirrored",
+                "LockscreenDesktop",
+                "TaskViewSettings",
+                "MiniExpand2Mirrored",
+                "MiniContract2Mirrored",
+                "Play36",
+                "PenPalette",
+                "GuestUser",
+                "SettingsBattery",
+                "TaskbarPhone",
+                "LockScreenGlance",
+                "GenericScan",
+                "ImageExport",
+                "WifiEthernet",
+                "ActionCenterQuiet",
+                "ActionCenterQuietNotification",
+                "TrackersMirrored",
+                "DateTimeMirrored",
+                "Wheel",
+                "VirtualMachineGroup",
+                "ButtonView2",
+                "PenWorkspaceMirrored",
+                "PenPaletteMirrored",
+                "StrokeEraseMirrored",
+                "PointEraseMirrored",
+                "ClearAllInkMirrored",
+                "BackgroundToggle",
+                "Marquee",
+                "ChromeCloseContrast",
+                "ChromeMinimizeContrast",
+                "ChromeMaximizeContrast",
+                "ChromeRestoreContrast",
+                "TrafficLight",
+                "Replay",
+                "Eyedropper",
+                "LineDisplay",
+                "PINPad",
+                "SignatureCapture",
+                "ChipCardCreditCardReader",
+                "MarketDown",
+                "PlayerSettings",
+                "LandscapeOrientation",
+                "Flow",
+                "Touchpad",
+                "Speech",
+                "KnowledgeArticle",
+                "Relationship",
+                "ZipFolder",
+                "DefaultAPN",
+                "UserAPN",
+                "DoublePinyin",
+                "BlueLight",
+                "CaretSolidLeft",
+                "CaretSolidDown",
+                "CaretSolidRight",
+                "CaretSolidUp",
+                "ButtonA",
+                "ButtonB",
+                "ButtonY",
+                "ButtonX",
+                "ArrowUp8",
+                "ArrowDown8",
+                "ArrowRight8",
+                "ArrowLeft8",
+                "QuarentinedItems",
+                "QuarentinedItemsMirrored",
+                "Protractor",
+                "ChecklistMirrored",
+                "StatusCircle7",
+                "StatusCheckmark7",
+                "StatusErrorCircle7",
+                "Connected",
+                "PencilFill",
+                "CalligraphyFill",
+                "QuarterStarLeft",
+                "QuarterStarRight",
+                "ThreeQuarterStarLeft",
+                "ThreeQuarterStarRight",
+                "QuietHoursBadge12",
+                "BackMirrored",
+                "ForwardMirrored",
+                "ChromeBackContrast",
+                "ChromeBackContrastMirrored",
+                "ChromeBackToWindowContrast",
+                "ChromeFullScreenContrast",
+                "GridView",
+                "ClipboardList",
+                "ClipboardListMirrored",
+                "OutlineQuarterStarLeft",
+                "OutlineQuarterStarRight",
+                "OutlineHalfStarLeft",
+                "OutlineHalfStarRight",
+                "OutlineThreeQuarterStarLeft",
+                "OutlineThreeQuarterStarRight",
+                "SpatialVolume0",
+                "SpatialVolume1",
+                "SpatialVolume2",
+                "SpatialVolume3",
+                "ApplicationGuard",
+                "OutlineStarLeftHalf",
+                "OutlineStarRightHalf",
+                "ChromeAnnotateContrast",
+                "DefenderBadge12",
+                "DetachablePC",
+                "LeftStick",
+                "RightStick",
+                "TriggerLeft",
+                "TriggerRight",
+                "BumperLeft",
+                "BumperRight",
+                "Dpad",
+                "EnglishPunctuation",
+                "ChinesePunctuation",
+                "HMD",
+                "CtrlSpatialRight",
+                "PaginationDotOutline10",
+                "PaginationDotSolid10",
+                "StrokeErase2",
+                "SmallErase",
+                "LargeErase",
+                "FolderHorizontal",
+                "MicrophoneListening",
+                "StatusExclamationCircle7",
+                "Video360",
+                "GiftboxOpen",
+                "StatusCircleOuter",
+                "StatusCircleInner",
+                "StatusCircleRing",
+                "StatusTriangleOuter",
+                "StatusTriangleInner",
+                "StatusTriangleExclamation",
+                "StatusCircleExclamation",
+                "StatusCircleErrorX",
+                "StatusCircleCheckmark",
+                "StatusCircleInfo",
+                "StatusCircleBlock",
+                "StatusCircleBlock2",
+                "StatusCircleQuestionMark",
+                "StatusCircleSync",
+                "Dial1",
+                "Dial2",
+                "Dial3",
+                "Dial4",
+                "Dial5",
+                "Dial6",
+                "Dial7",
+                "Dial8",
+                "Dial9",
+                "Dial10",
+                "Dial11",
+                "Dial12",
+                "Dial13",
+                "Dial14",
+                "Dial15",
+                "Dial16",
+                "DialShape1",
+                "DialShape2",
+                "DialShape3",
+                "DialShape4",
+                "ClosedCaptionsInternational",
+                "TollSolid",
+                "TrafficCongestionSolid",
+                "ExploreContentSingle",
+                "CollapseContent",
+                "CollapseContentSingle",
+                "InfoSolid",
+                "GroupList",
+                "CaretBottomRightSolidCenter8",
+                "ProgressRingDots",
+                "Checkbox14",
+                "CheckboxComposite14",
+                "CheckboxIndeterminateCombo14",
+                "CheckboxIndeterminateCombo",
+                "StatusPause7",
+                "CharacterAppearance",
+                "Lexicon",
+                "ScreenTime",
+                "HeadlessDevice",
+                "NetworkSharing",
+                "EyeGaze",
+                "ToggleLeft",
+                "ToggleRight",
+                "WindowsInsider",
+                "ChromeSwitch",
+                "ChromeSwitchContast",
+                "StatusCheckmark",
+                "StatusCheckmarkLeft",
+                "KeyboardLeftAligned",
+                "KeyboardRightAligned",
+                "KeyboardSettings",
+                "NetworkPhysical",
+                "IOT",
+                "UnknownMirrored",
+                "ViewDashboard",
+                "ExploitProtectionSettings",
+                "KeyboardNarrow",
+                "Keyboard12Key",
+                "KeyboardDock",
+                "KeyboardUndock",
+                "KeyboardLeftDock",
+                "KeyboardRightDock",
+                "Ear",
+                "PointerHand",
+                "Bullseye",
+                "DocumentApproval",
+                "LocaleLanguage",
+                "PassiveAuthentication",
+                "ColorSolid",
+                "NetworkOffline",
+                "NetworkConnected",
+                "NetworkConnectedCheckmark",
+                "SignOut",
+                "StatusInfo",
+                "StatusInfoLeft",
+                "NearbySharing",
+                "CtrlSpatialLeft",
+                "InteractiveDashboard",
+                "DeclineCall",
+                "ClippingTool",
+                "RectangularClipping",
+                "FreeFormClipping",
+                "CopyTo",
+                "IDBadge",
+                "DynamicLock",
+                "PenTips",
+                "PenTipsMirrored",
+                "HWPJoin",
+                "HWPInsert",
+                "HWPStrikeThrough",
+                "HWPScratchOut",
+                "HWPSplit",
+                "HWPNewLine",
+                "HWPOverwrite",
+                "MobWifiWarning1",
+                "MobWifiWarning2",
+                "MobWifiWarning3",
+                "MobWifiWarning4",
+                "MicLocationCombo",
+                "Globe2",
+                "SpecialEffectSize",
+                "GIF",
+                "Sticker2",
+                "SurfaceHubSelected",
+                "HoloLensSelected",
+                "Earbud",
+                "MixVolumes",
+                "Safe",
+                "LaptopSecure",
+                "PrintDefault",
+                "PageMirrored",
+                "LandscapeOrientationMirrored",
+                "ColorOff",
+                "PrintAllPages",
+                "PrintCustomRange",
+                "PageMarginPortraitNarrow",
+                "PageMarginPortraitNormal",
+                "PageMarginPortraitModerate",
+                "PageMarginPortraitWide",
+                "PageMarginLandscapeNarrow",
+                "PageMarginLandscapeNormal",
+                "PageMarginLandscapeModerate",
+                "PageMarginLandscapeWide",
+                "CollateLandscape",
+                "CollatePortrait",
+                "CollatePortraitSeparated",
+                "DuplexLandscapeOneSided",
+                "DuplexLandscapeOneSidedMirrored",
+                "DuplexLandscapeTwoSidedLongEdge",
+                "DuplexLandscapeTwoSidedLongEdgeMirrored",
+                "DuplexLandscapeTwoSidedShortEdge",
+                "DuplexLandscapeTwoSidedShortEdgeMirrored",
+                "DuplexPortraitOneSided",
+                "DuplexPortraitOneSidedMirrored",
+                "DuplexPortraitTwoSidedLongEdge",
+                "DuplexPortraitTwoSidedLongEdgeMirrored",
+                "DuplexPortraitTwoSidedShortEdge",
+                "DuplexPortraitTwoSidedShortEdgeMirrored",
+                "PPSOneLandscape",
+                "PPSTwoLandscape",
+                "PPSTwoPortrait",
+                "PPSFourLandscape",
+                "PPSFourPortrait",
+                "HolePunchOff",
+                "HolePunchPortraitLeft",
+                "HolePunchPortraitRight",
+                "HolePunchPortraitTop",
+                "HolePunchPortraitBottom",
+                "HolePunchLandscapeLeft",
+                "HolePunchLandscapeRight",
+                "HolePunchLandscapeTop",
+                "HolePunchLandscapeBottom",
+                "StaplingOff",
+                "StaplingPortraitTopLeft",
+                "StaplingPortraitTopRight",
+                "StaplingPortraitBottomRight",
+                "StaplingPortraitTwoLeft",
+                "StaplingPortraitTwoRight",
+                "StaplingPortraitTwoTop",
+                "StaplingPortraitTwoBottom",
+                "StaplingPortraitBookBinding",
+                "StaplingLandscapeTopLeft",
+                "StaplingLandscapeTopRight",
+                "StaplingLandscapeBottomLeft",
+                "StaplingLandscapeBottomRight",
+                "StaplingLandscapeTwoLeft",
+                "StaplingLandscapeTwoRight",
+                "StaplingLandscapeTwoTop",
+                "StaplingLandscapeTwoBottom",
+                "StaplingLandscapeBookBinding",
+                "StatusDataTransferRoaming",
+                "MobSIMError",
+                "CollateLandscapeSeparated",
+                "PPSOnePortrait",
+                "StaplingPortraitBottomLeft",
+                "PlaySolid",
+                "RepeatOff",
+                "Set",
+                "SetSolid",
+                "FuzzyReading",
+                "VerticalBattery0",
+                "VerticalBattery1",
+                "VerticalBattery2",
+                "VerticalBattery3",
+                "VerticalBattery4",
+                "VerticalBattery5",
+                "VerticalBattery6",
+                "VerticalBattery7",
+                "VerticalBattery8",
+                "VerticalBattery9",
+                "VerticalBattery10",
+                "VerticalBatteryCharging0",
+                "VerticalBatteryCharging1",
+                "VerticalBatteryCharging2",
+                "VerticalBatteryCharging3",
+                "VerticalBatteryCharging4",
+                "VerticalBatteryCharging5",
+                "VerticalBatteryCharging6",
+                "VerticalBatteryCharging7",
+                "VerticalBatteryCharging8",
+                "VerticalBatteryCharging9",
+                "VerticalBatteryCharging10",
+                "VerticalBatteryUnknown",
+                "SIMError",
+                "SIMMissing",
+                "SIMLock",
+                "eSIM",
+                "eSIMNoProfile",
+                "eSIMLocked",
+                "eSIMBusy",
+                "NoiseCancelation",
+                "NoiseCancelationOff",
+                "MusicSharing",
+                "MusicSharingOff",
+                "CircleShapeSolid",
+                "WifiCallBars",
+                "WifiCall0",
+                "WifiCall1",
+                "WifiCall2",
+                "WifiCall3",
+                "WifiCall4",
+                "CHTLanguageBar",
+                "ComposeMode",
+                "ExpressiveInputEntry",
+                "EmojiTabMoreSymbols",
+                "WebSearch",
+                "Kiosk",
+                "RTTLogo",
+                "VoiceCall",
+                "GoToMessage",
+                "ReturnToCall",
+                "StartPresenting",
+                "StopPresenting",
+                "ProductivityMode",
+                "SetHistoryStatus",
+                "SetHistoryStatus2",
+                "Keyboardsettings20",
+                "OneHandedRight20",
+                "OneHandedLeft20",
+                "Split20",
+                "Full20",
+                "Handwriting20",
+                "ChevronLeft20",
+                "ChevronLeft32",
+                "ChevronRight20",
+                "ChevronRight32",
+                "Event12",
+                "MicOff2",
+                "DeliveryOptimization",
+                "CancelMedium",
+                "SearchMedium",
+                "AcceptMedium",
+                "RevealPasswordMedium",
+                "DeleteWord",
+                "DeleteWordFill",
+                "DeleteLines",
+                "DeleteLinesFill",
+                "InstertWords",
+                "InstertWordsFill",
+                "JoinWords",
+                "JoinWordsFill",
+                "OverwriteWords",
+                "OverwriteWordsFill",
+                "AddNewLine",
+                "AddNewLineFill",
+                "OverwriteWordsKorean",
+                "OverwriteWordsFillKorean",
+                "EducationIcon",
+                "WindowSnipping",
+                "VideoCapture",
+                "StatusSecured",
+                "NarratorApp",
+                "PowerButtonUpdate",
+                "RestartUpdate",
+                "UpdateStatusDot",
+                "Eject",
+                "Spelling",
+                "SpellingKorean",
+                "SpellingSerbian",
+                "SpellingChinese",
+                "FolderSelect",
+                "SmartScreen",
+                "ExploitProtection",
+                "AddBold",
+                "SubtractBold",
+                "BackSolidBold",
+                "ForwardSolidBold",
+                "PauseBold",
+                "ClickSolid",
+                "SettingsSolid",
+                "MicrophoneSolidBold",
+                "SpeechSolidBold",
+                "ClickedOutLoudSolidBold"
+            ]
+        }
+    }
+    Component {
+        file: "Def.h"
+        name: "Fluent_DarkMode"
+        accessSemantics: "none"
+        exports: ["FluentUI/FluDarkMode 1.0"]
+        isCreatable: false
+        exportMetaObjectRevisions: [256]
+        Enum {
+            name: "Fluent_DarkModeType"
+            values: ["System", "Light", "Dark"]
+        }
+    }
+    Component {
+        file: "WindowHelper.h"
+        name: "WindowHelper"
+        accessSemantics: "reference"
+        prototype: "QObject"
+        exports: ["FluentUI/WindowHelper 1.0"]
+        exportMetaObjectRevisions: [256]
+        Method {
+            name: "initWindow"
+            Parameter { name: "window"; type: "QQuickWindow"; isPointer: true }
+        }
+        Method { name: "destoryWindow" }
+        Method {
+            name: "createRegister"
+            type: "QVariant"
+            Parameter { name: "window"; type: "QQuickWindow"; isPointer: true }
+            Parameter { name: "path"; type: "QString" }
+        }
+        Method { name: "firstUpdate" }
+    }
+}

BIN
module/gui/FluentUI/fluentuiplugin.dll


+ 79 - 0
module/gui/FluentUI/qmldir

@@ -0,0 +1,79 @@
+module FluentUI
+linktarget fluentuiplugin
+optional plugin fluentuiplugin
+classname FluentUIPlugin
+typeinfo fluentui.qmltypes
+prefer :/FluentUI/
+ColorPicker 1.0 Controls/ColorPicker/ColorPicker.qml
+Checkerboard 1.0 Controls/ColorPicker/Content/Checkerboard.qml
+ColorSlider 1.0 Controls/ColorPicker/Content/ColorSlider.qml
+NumberBox 1.0 Controls/ColorPicker/Content/NumberBox.qml
+PanelBorder 1.0 Controls/ColorPicker/Content/PanelBorder.qml
+SBPicker 1.0 Controls/ColorPicker/Content/SBPicker.qml
+FluAppBar 1.0 Controls/FluAppBar.qml
+FluArea 1.0 Controls/FluArea.qml
+FluAutoSuggestBox 1.0 Controls/FluAutoSuggestBox.qml
+FluBadge 1.0 Controls/FluBadge.qml
+FluBreadcrumbBar 1.0 Controls/FluBreadcrumbBar.qml
+FluButton 1.0 Controls/FluButton.qml
+FluCalendarPicker 1.0 Controls/FluCalendarPicker.qml
+FluCalendarView 1.0 Controls/FluCalendarView.qml
+FluCarousel 1.0 Controls/FluCarousel.qml
+FluCheckBox 1.0 Controls/FluCheckBox.qml
+FluColorPicker 1.0 Controls/FluColorPicker.qml
+FluColorView 1.0 Controls/FluColorView.qml
+FluComboBox 1.0 Controls/FluComboBox.qml
+FluContentDialog 1.0 Controls/FluContentDialog.qml
+FluContentPage 1.0 Controls/FluContentPage.qml
+FluDatePicker 1.0 Controls/FluDatePicker.qml
+FluDivider 1.0 Controls/FluDivider.qml
+FluDropDownButton 1.0 Controls/FluDropDownButton.qml
+FluExpander 1.0 Controls/FluExpander.qml
+FluFilledButton 1.0 Controls/FluFilledButton.qml
+FluFlipView 1.0 Controls/FluFlipView.qml
+FluFocusRectangle 1.0 Controls/FluFocusRectangle.qml
+FluIcon 1.0 Controls/FluIcon.qml
+FluIconButton 1.0 Controls/FluIconButton.qml
+FluInfoBar 1.0 Controls/FluInfoBar.qml
+FluItem 1.0 Controls/FluItem.qml
+FluMediaPlayer 1.0 Controls/FluMediaPlayer.qml
+FluMenu 1.0 Controls/FluMenu.qml
+FluMenuItem 1.0 Controls/FluMenuItem.qml
+FluMultilineTextBox 1.0 Controls/FluMultilineTextBox.qml
+FluNavigationView 1.0 Controls/FluNavigationView.qml
+FluObject 1.0 Controls/FluObject.qml
+FluPagination 1.0 Controls/FluPagination.qml
+FluPaneItem 1.0 Controls/FluPaneItem.qml
+FluPaneItemEmpty 1.0 Controls/FluPaneItemEmpty.qml
+FluPaneItemExpander 1.0 Controls/FluPaneItemExpander.qml
+FluPaneItemHeader 1.0 Controls/FluPaneItemHeader.qml
+FluPaneItemSeparator 1.0 Controls/FluPaneItemSeparator.qml
+FluPasswordBox 1.0 Controls/FluPasswordBox.qml
+FluPivot 1.0 Controls/FluPivot.qml
+FluPivotItem 1.0 Controls/FluPivotItem.qml
+FluProgressBar 1.0 Controls/FluProgressBar.qml
+FluProgressRing 1.0 Controls/FluProgressRing.qml
+FluRadioButton 1.0 Controls/FluRadioButton.qml
+FluRatingControl 1.0 Controls/FluRatingControl.qml
+FluRectangle 1.0 Controls/FluRectangle.qml
+FluScrollBar 1.0 Controls/FluScrollBar.qml
+FluScrollablePage 1.0 Controls/FluScrollablePage.qml
+FluShadow 1.0 Controls/FluShadow.qml
+FluSingleton 1.0 Controls/FluSingleton.qml
+FluSlider 1.0 Controls/FluSlider.qml
+FluStatusView 1.0 Controls/FluStatusView.qml
+FluTabView 1.0 Controls/FluTabView.qml
+FluTableView 1.0 Controls/FluTableView.qml
+FluText 1.0 Controls/FluText.qml
+FluTextBox 1.0 Controls/FluTextBox.qml
+FluTextBoxBackground 1.0 Controls/FluTextBoxBackground.qml
+FluTextBoxMenu 1.0 Controls/FluTextBoxMenu.qml
+FluTextButton 1.0 Controls/FluTextButton.qml
+FluTimePicker 1.0 Controls/FluTimePicker.qml
+FluToggleButton 1.0 Controls/FluToggleButton.qml
+FluToggleSwitch 1.0 Controls/FluToggleSwitch.qml
+FluTooltip 1.0 Controls/FluTooltip.qml
+FluTreeView 1.0 Controls/FluTreeView.qml
+FluWindow 1.0 Controls/FluWindow.qml
+FluWindowResize 1.0 Controls/FluWindowResize.qml
+

+ 2 - 3
module/gui/fluent_app.py

@@ -6,7 +6,7 @@ import os
 
 from PySide6.QtGui import QGuiApplication, QIcon
 from PySide6.QtQml import QQmlApplicationEngine
-from PySide6.QtCore import Qt, QObject
+from PySide6.QtCore import Qt, QObject, QStandardPaths
 from pathlib import Path
 
 from module.gui.utils import get_work_path
@@ -25,10 +25,9 @@ class FluentApp():
         QGuiApplication.setApplicationName("oas")
         QGuiApplication.setOrganizationName("oas")
 
-
     def run(self):
         FluentApp.engine = QQmlApplicationEngine()
-        # FluentApp.engine.rootContext().setContextProperty("bridge", bridge)
+        FluentApp.engine.addImportPath(os.fspath(Path(__file__).resolve().parent ))
         FluentApp.engine.load(os.fspath(Path(get_work_path() / 'module' / 'gui' / 'qml' / 'app.qml')))
         if not FluentApp.engine.rootObjects():
             sys.exit(-1)

+ 5 - 0
module/gui/oas.pyproject

@@ -0,0 +1,5 @@
+{
+    "files": [
+    "./oas.qrc",
+    "../../gui.py"]
+}

+ 6 - 0
module/gui/oas.qrc

@@ -0,0 +1,6 @@
+<RCC>
+    <qresource prefix="/">
+        <file>qml/app.qml</file>
+        <file>qml/MainWindow.qml</file>
+    </qresource>
+</RCC>

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

@@ -0,0 +1,28 @@
+import QtQuick
+import QtQuick.Window
+import QtQuick.Controls
+import QtQuick.Layouts
+import FluentUI
+
+FluWindow {
+    id:app
+    width: 640
+    height: 480
+
+    FluAppBar{
+        id:appbar
+        width: parent.width
+        title: "Hello world"
+    }
+
+
+    FluText {
+        text: "Hello There!"
+        font.pixelSize: 32
+        fontStyle: FluText.Body
+        anchors.centerIn: parent
+    }
+
+
+
+}

+ 13 - 6
module/gui/qml/app.qml

@@ -1,12 +1,19 @@
 import QtQuick 2.12
 import QtQuick.Controls 2.12
 import QtQuick.Window 2.12
+import FluentUI
 
 Window {
-    id:rootWindow
-    width: 700+8
-    height: 700+8 // +8是因为外阴影一边用了4
-    minimumWidth: 400
-    minimumHeight: 400
-    visible: true
+    id:app
+    color: "#00000000"
+    Component.onCompleted: {
+        FluApp.init(app)
+        FluTheme.frameless = ("windows" === Qt.platform.os)
+        FluTheme.darkMode = FluDarkMode.System
+        FluApp.routes = {
+            "/":"./module/gui/qml/MainWindow.qml",
+        }
+        FluApp.initialRoute = "/"
+        FluApp.run()
+    }
 }