CLStyle.qml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /**
  2. * Copyright © 2010 Digia Plc
  3. * Copyright © 2010 Nokia Corporation
  4. *
  5. * All rights reserved.
  6. *
  7. * Nokia and Nokia Connecting People are registered trademarks of
  8. * Nokia Corporation.
  9. * Java and all Java-based marks are trademarks or registered
  10. * trademarks of
  11. * Sun Microsystems, Inc. Other product and company names
  12. * mentioned herein may be
  13. * trademarks or trade names of their respective owners.
  14. *
  15. *
  16. * Subject to the conditions below, you may, without charge:
  17. *
  18. * · Use, copy, modify and/or merge copies of this software and
  19. * associated documentation files (the "Software")
  20. *
  21. * · Publish, distribute, sub-licence and/or sell new software
  22. * derived from or incorporating the Software.
  23. *
  24. *
  25. * This file, unmodified, shall be included with all copies or
  26. * substantial portions
  27. * of the Software that are distributed in source code form.
  28. *
  29. * The Software cannot constitute the primary value of any new
  30. * software derived
  31. * from or incorporating the Software.
  32. *
  33. * Any person dealing with the Software shall not misrepresent
  34. * the source of the Software.
  35. *
  36. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
  37. * KIND, EXPRESS OR IMPLIED,
  38. * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  39. * MERCHANTABILITY, FITNESS FOR A
  40. * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  41. * AUTHORS OR COPYRIGHT
  42. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  43. * WHETHER IN AN ACTION
  44. * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  45. * CONNECTION WITH THE
  46. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  47. */
  48. import Qt 4.7
  49. import "gradients"
  50. Item {
  51. SystemPalette {id: palette}
  52. property color colorWhenDefault: "black"
  53. property color colorWhenPressed: palette.shadow
  54. property color colorWhenHovered: palette.mid
  55. property color colorWhenSelected: "red"
  56. property color textColor: "#D4D0C8"
  57. property real roundness: 0.5 // 0-1
  58. property real fontSize: 12
  59. property string fontFamily: "Helvetica"
  60. property string fontWeight: "DemiBold"
  61. property int borderWidth: 1
  62. property color borderColor: "black"
  63. property color borderColorWhenHovered: "black"
  64. property color borderColorWhenPressed: "black"
  65. property color borderColorWhenSelected: "black"
  66. property int borderWidthInner: 1
  67. property color borderColorInner: "#747275"
  68. property color borderColorInnerWhenHovered: "#747275"
  69. property color borderColorInnerWhenPressed: "#747275"
  70. property color bgColor: "#E0E0E0"
  71. property real itemRoundness: 0.00001
  72. property color selectionColor: "#D4D0C8"
  73. property color selectedTextColor: "black"
  74. property bool gradientActiveOn: true
  75. property bool gradientDefaultOn: true
  76. property bool gradientHoveredOn: true
  77. property bool gradientPressedOn: true
  78. property bool gradientBgOn: true
  79. property bool gradientCheckedOn: true;
  80. property bool gradientSelectedOn: true;
  81. property bool activeStateOn: true
  82. property bool hoveredStateOn: true
  83. property bool pressedStateOn: true
  84. property color borderColorWhenChecked: "#3f3b3c"
  85. property color colorWhenChecked: "#3f3b3c"
  86. property color borderColorWhenActive: palette.highlight
  87. property color colorWhenActive: palette.shadow
  88. property Gradient gradientBg: Gradient {
  89. GradientStop { position: 0; color: "#C2C2C2" }
  90. GradientStop { position: 1; color: "#E0E0E0" }
  91. }
  92. property Gradient gradientWhenDefault: Gradient {
  93. GradientStop { position: 0; color: "#3f3b3c" }
  94. GradientStop { position: 1; color: "#010103" }
  95. }
  96. property Gradient gradientWhenHovered: Gradient {
  97. GradientStop { position: 0; color: "#4c4849" }
  98. GradientStop { position: 1; color: "#09091c" }
  99. }
  100. property Gradient gradientWhenPressed: Gradient {
  101. GradientStop { position: 0; color: "#3f3b3c" }
  102. GradientStop { position: 1; color: "#010103" }
  103. }
  104. property Gradient gradientWhenSelected: Red{}
  105. property Gradient gradientWhenChecked: gradientWhenDefault
  106. property Gradient gradientWhenActive: gradientWhenDefault
  107. }