Advertisement
Guest User

Untitled

a guest
Oct 18th, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. import QtQuick 2.14
  2. import QtQuick.Window 2.14
  3. import QtQuick.Controls 2.15
  4. import QtQuick.Layouts 1.11
  5. import Qt.labs.settings 1.0
  6. import QtQuick.Dialogs 1.3
  7. import QtGraphicalEffects 1.0
  8.  
  9. import "."
  10. import "Buttons"
  11. import "CustomWidgets"
  12. import "Pages"
  13.  
  14. Window {
  15. property int activePage: 1
  16. property var phoneData: backend.phoneDataModel
  17. property bool phoneAppConnection: phoneData.get(phoneSelector.currentIndex).btSocketConnected
  18.  
  19. id: mainWindow
  20. visible: true
  21. width: 600
  22. height: 400
  23. title: "Synchrony"
  24.  
  25. ColumnLayout {
  26. id: mainLayout
  27. anchors.fill: parent
  28. spacing: 0
  29.  
  30. Item {
  31. Layout.minimumWidth: 40
  32. Layout.preferredHeight: 45
  33. Layout.fillWidth: true
  34. Layout.alignment: Qt.AlignLeft | Qt.AlignTop
  35. z: 2
  36.  
  37. Rectangle {
  38. id: topBar
  39. anchors.fill: parent
  40. color: Style.primary
  41.  
  42. PhoneSelector {
  43. id: phoneSelector
  44. width: topBar.width * .3
  45. anchors.right: syncRow.left
  46. anchors.top: parent.top
  47. anchors.bottom: parent.bottom
  48. anchors.rightMargin: 10
  49. anchors.topMargin: 10
  50. anchors.bottomMargin: 10
  51. listHeight: (mainWindow.height * .9) - topBar.height
  52. itemBgColor: Style.primary
  53. itemTextColor: Style.colorOnPrimary
  54. comboBgColor: count > 0 ? Style.colorOnPrimary : Style.inactive
  55. downArrowColor: Style.primaryVariant
  56. model: mainWindow.phoneData
  57. }
  58. }
  59. }
  60. }
  61. }
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement