SplashView.qml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import Qt 4.7
  2. import "../js/OAuth.js" as FutuAuth
  3. Item {
  4. width: screenWidth
  5. height: screenHeight
  6. Image {
  7. id: splashImage
  8. x: 0
  9. y: 0
  10. source: "splash.png"
  11. }
  12. Rectangle {
  13. id: authorizeRect
  14. visible: !appItem.authenticated
  15. x: 240
  16. y: 240
  17. width: 200
  18. height: 60
  19. radius: 8
  20. color: authButtonMouseArea.containsMouse ? appItem.heiaOrange : appItem.heiaFocusColorInner
  21. border {
  22. width: 8
  23. color: appItem.heiaFocusColorOuter
  24. }
  25. Text {
  26. anchors.centerIn: parent
  27. font {
  28. family: appItem.applicationFont
  29. pixelSize: appItem.applicationFontSize
  30. }
  31. color: "black"
  32. text: qsTr("Authorize")
  33. }
  34. MouseArea {
  35. id: authButtonMouseArea
  36. anchors.fill: parent
  37. onClicked: FutuAuth.startAuthentication();
  38. }
  39. }
  40. }