Advertisement
Guest User

BreezeBlock.qml

a guest
Feb 21st, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. /***************************************************************************
  2. * Copyright (C) 2014 by David Edmundson <davidedmundson@kde.org> *
  3. * Copyright (C) 2014 by Aleix Pol Gonzalez <aleixpol@blue-systems.com> *
  4. * *
  5. * This program is free software; you can redistribute it and/or modify *
  6. * it under the terms of the GNU General Public License as published by *
  7. * the Free Software Foundation; either version 2 of the License, or *
  8. * (at your option) any later version. *
  9. * *
  10. * This program is distributed in the hope that it will be useful, *
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  13. * GNU General Public License for more details. *
  14. * *
  15. * You should have received a copy of the GNU General Public License *
  16. * along with this program; if not, write to the *
  17. * Free Software Foundation, Inc., *
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
  19. ***************************************************************************/
  20.  
  21. import QtQuick 2.1
  22. import QtQuick.Layouts 1.1
  23. import QtQuick.Controls 1.1
  24.  
  25. import org.kde.plasma.core 2.0 as PlasmaCore
  26.  
  27. PlasmaCore.ColorScope {
  28. colorGroup: PlasmaCore.Theme.ComplementaryColorGroup
  29. property alias main: mainView.sourceComponent
  30. property alias controls: controlsView.sourceComponent
  31. readonly property alias mainItem: mainView.item
  32. readonly property alias controlsItem: controlsView.item
  33.  
  34. property bool canShutdown: false
  35. property bool canReboot: false
  36.  
  37. Rectangle {
  38. /*color: PlasmaCore.ColorScope.backgroundColor
  39. opacity: 0.3
  40. anchors {
  41. fill: parent
  42. }*/
  43.  
  44. anchors.centerIn: parent
  45. width: 480
  46. height: 250
  47. color: "#80FFFFFF"
  48. radius: 2
  49. }
  50.  
  51. Loader {
  52. id: mainView
  53. anchors {
  54. margins: units.largeSpacing
  55.  
  56. left: parent.left
  57. right: parent.right
  58. top: parent.top
  59. bottom: separator.top
  60. }
  61. }
  62.  
  63. /*Rectangle {
  64. id: separator
  65. height: 1
  66. color: PlasmaCore.ColorScope.textColor
  67. width: parent.width
  68. opacity: 0.4
  69. anchors {
  70. margins: units.largeSpacing
  71.  
  72. bottom: controlsView.top
  73. }
  74. }*/
  75. Loader {
  76. id: controlsView
  77. focus: true
  78. anchors {
  79. margins: units.largeSpacing
  80.  
  81. left: parent.left
  82. right: parent.right
  83. bottom: parent.bottom
  84. }
  85. }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement