Overview.qml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. import QtQuick
  2. import QtQuick.Layouts
  3. import FluentUI
  4. Item {
  5. Item{
  6. id: leftScheduler
  7. width: 260
  8. anchors{
  9. left: parent.left
  10. top: parent.top
  11. bottom: parent.bottom
  12. }
  13. FluArea{
  14. id: schedulerOpen
  15. anchors.top: parent.top
  16. width: parent.width
  17. height: 50
  18. RowLayout{
  19. anchors.fill: parent
  20. FluText{
  21. text: 'Scheduler'
  22. Layout.leftMargin: 16
  23. font: FluTextStyle.Subtitle
  24. Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
  25. }
  26. FluToggleButton{
  27. Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
  28. Layout.rightMargin: 16
  29. text:"Start"
  30. onClicked: {
  31. selected = !selected
  32. if(selected){
  33. text = "Start"
  34. }else{
  35. text = "Stop"
  36. }
  37. }
  38. }
  39. }
  40. }
  41. FluArea{
  42. id: schedulerRunning
  43. anchors.top: schedulerOpen.bottom
  44. anchors.topMargin: 10
  45. width: parent.width
  46. height: 120
  47. ColumnLayout{
  48. width: parent.width
  49. spacing: 8
  50. FluText{
  51. text: 'Running'
  52. Layout.leftMargin: 16
  53. Layout.topMargin: 6
  54. font: FluTextStyle.Subtitle
  55. }
  56. Rectangle{
  57. width: schedulerRunning.width - 20
  58. height: 2
  59. Layout.alignment: Qt.AlignHCenter
  60. color: FluTheme.dark ? Qt.rgba(64/255, 68/255, 75/255, 1) : Qt.rgba(234/255, 236/255, 239/255, 1)
  61. radius: 2
  62. }
  63. Taskmini{
  64. Layout.leftMargin: 16
  65. }
  66. }
  67. }
  68. FluArea{
  69. id: schedulerPending
  70. anchors.top: schedulerRunning.bottom
  71. anchors.topMargin: 10
  72. width: parent.width
  73. height: 240
  74. ColumnLayout{
  75. width: parent.width
  76. spacing: 8
  77. FluText{
  78. text: 'Pending'
  79. Layout.leftMargin: 16
  80. Layout.topMargin: 6
  81. font: FluTextStyle.Subtitle
  82. }
  83. Rectangle{
  84. width: schedulerRunning.width - 20
  85. height: 2
  86. Layout.alignment: Qt.AlignHCenter
  87. color: FluTheme.dark ? Qt.rgba(64/255, 68/255, 75/255, 1) : Qt.rgba(234/255, 236/255, 239/255, 1)
  88. radius: 2
  89. }
  90. Taskmini{
  91. Layout.leftMargin: 16
  92. }
  93. Taskmini{
  94. Layout.leftMargin: 16
  95. }
  96. Taskmini{
  97. Layout.leftMargin: 16
  98. }
  99. Taskmini{
  100. Layout.leftMargin: 16
  101. }
  102. }
  103. }
  104. FluArea{
  105. id: schedulerWaiting
  106. anchors.top: schedulerPending.bottom
  107. anchors.topMargin: 10
  108. anchors.bottom: parent.bottom
  109. anchors.bottomMargin: 0
  110. width: parent.width
  111. ColumnLayout{
  112. width: parent.width
  113. spacing: 8
  114. FluText{
  115. Layout.fillHeight: false
  116. text: 'Waiting'
  117. Layout.leftMargin: 16
  118. Layout.topMargin: 6
  119. font: FluTextStyle.Subtitle
  120. }
  121. Rectangle{
  122. Layout.fillHeight: false
  123. width: schedulerPending.width - 20
  124. height: 2
  125. Layout.alignment: Qt.AlignHCenter
  126. color: FluTheme.dark ? Qt.rgba(64/255, 68/255, 75/255, 1) : Qt.rgba(234/255, 236/255, 239/255, 1)
  127. radius: 2
  128. }
  129. Taskmini{
  130. Layout.leftMargin: 16
  131. Layout.fillHeight: false
  132. }
  133. }
  134. }
  135. }
  136. FluArea{
  137. anchors.left: leftScheduler.right
  138. anchors.leftMargin: 10
  139. height: parent.height
  140. anchors.right: parent.right
  141. }
  142. }