AboutWindow.qml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. import QtQuick
  2. import QtQuick.Controls
  3. import QtQuick.Layouts
  4. import FluentUI
  5. FluWindow {
  6. id:window
  7. title:"关于"
  8. width: 600
  9. height: 600
  10. minimumWidth: 600
  11. minimumHeight: 600
  12. maximumWidth: 600
  13. maximumHeight: 600
  14. launchMode: FluWindow.SingleTask
  15. FluAppBar{
  16. id:appbar
  17. title:"关于"
  18. width:parent.width
  19. }
  20. ColumnLayout{
  21. anchors{
  22. top: appbar.bottom
  23. left: parent.left
  24. right: parent.right
  25. }
  26. RowLayout{
  27. Layout.topMargin: 20
  28. Layout.leftMargin: 15
  29. spacing: 14
  30. FluText{
  31. text:"FluentUI"
  32. font: FluTextStyle.Title
  33. MouseArea{
  34. anchors.fill: parent
  35. onClicked: {
  36. FluApp.navigate("/")
  37. }
  38. }
  39. }
  40. FluText{
  41. text:"v%1".arg(appInfo.version)
  42. font: FluTextStyle.Body
  43. Layout.alignment: Qt.AlignBottom
  44. }
  45. }
  46. RowLayout{
  47. spacing: 14
  48. Layout.topMargin: 20
  49. Layout.leftMargin: 15
  50. FluText{
  51. text:"作者:"
  52. }
  53. FluText{
  54. text:"朱子楚"
  55. Layout.alignment: Qt.AlignBottom
  56. }
  57. }
  58. RowLayout{
  59. spacing: 14
  60. Layout.leftMargin: 15
  61. FluText{
  62. text:"GitHub:"
  63. }
  64. FluTextButton{
  65. id:text_hublink
  66. topPadding:0
  67. bottomPadding:0
  68. text:"https://github.com/zhuzichu520/FluentUI"
  69. Layout.alignment: Qt.AlignBottom
  70. onClicked: {
  71. Qt.openUrlExternally(text_hublink.text)
  72. }
  73. }
  74. }
  75. RowLayout{
  76. spacing: 14
  77. Layout.leftMargin: 15
  78. FluText{
  79. text:"B站:"
  80. }
  81. FluTextButton{
  82. topPadding:0
  83. bottomPadding:0
  84. text:"https://www.bilibili.com/video/BV1mg4y1M71w/"
  85. Layout.alignment: Qt.AlignBottom
  86. onClicked: {
  87. Qt.openUrlExternally(text)
  88. }
  89. }
  90. }
  91. RowLayout{
  92. spacing: 14
  93. Layout.leftMargin: 15
  94. FluText{
  95. id:text_info
  96. text:"如果该项目对你有作用,就请点击上方链接给一个免费的star,或者一键三连,谢谢!"
  97. ColorAnimation {
  98. id: animation
  99. target: text_info
  100. property: "color"
  101. from: "red"
  102. to: "blue"
  103. duration: 1000
  104. running: true
  105. loops: Animation.Infinite
  106. easing.type: Easing.InOutQuad
  107. }
  108. }
  109. }
  110. RowLayout{
  111. spacing: 14
  112. Layout.leftMargin: 15
  113. FluText{
  114. text:"捐赠:"
  115. }
  116. }
  117. Item{
  118. Layout.preferredWidth: parent.width
  119. Layout.preferredHeight: 252
  120. Row{
  121. anchors.horizontalCenter: parent.horizontalCenter
  122. spacing: 30
  123. Image{
  124. width: 250
  125. height: 250
  126. source: "qrc:/example/res/image/qrcode_wx.jpg"
  127. }
  128. Image{
  129. width: 250
  130. height: 250
  131. source: "qrc:/example/res/image/qrcode_zfb.jpg"
  132. }
  133. }
  134. }
  135. RowLayout{
  136. spacing: 14
  137. Layout.leftMargin: 15
  138. FluText{
  139. id:text_desc
  140. text:"个人开发,维护不易,你们的捐赠就是我继续更新的动力!\n有什么问题提Issues,只要时间充足我就会解决的!!"
  141. }
  142. }
  143. }
  144. }