Style.qml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * Adopt from CLStyle.qml (colibri) by Digia PLC
  3. * Use this file for theme settings
  4. */
  5. import QtQuick 1.1
  6. Item {
  7. // SystemPalette {id: palette} // haven't use it yet
  8. property Gradient grad_but_def: Gradient {
  9. GradientStop { position: 0; color: "#8888ff" }
  10. GradientStop { position: 1; color: "#2020ff" }
  11. }
  12. property Gradient grad_but_esc: Gradient {
  13. GradientStop { position: 0; color: "#6666bb" }
  14. GradientStop { position: 1; color: "#111166" }
  15. }
  16. property Gradient grad_but_sticked: Gradient {
  17. GradientStop { position: 0; color: "#ffff88" }
  18. GradientStop { position: 1; color: "#888820" }
  19. }
  20. property color col_label_def: "white"
  21. property color col_label_inactive: "#aaaaaa"
  22. property color col_label_active: "#ffff80"
  23. property color col_background: "#8888ff"
  24. property color col_but_border: "#2020ff"
  25. property color col_but_border_hovered: "#a0a0ff"
  26. property int but_outer_radius: 10
  27. property int min_but_width: 48 // minimal button width
  28. property int min_but_height: 48 // and of course minimal button height
  29. property int col_spacing: 4 // spacing between columns
  30. property int row_spacing: 4 // spacing between rows
  31. property int but_width: 100 // default button width
  32. property int but_width_and_half: but_width*1.5 // button width and a half
  33. property int but_doubled_width: but_width*2 // button doubled width
  34. property int but_height: 64 // button height
  35. property real font_size: Math.min(but_width,but_height) / 3 //!< font size
  36. property real font_small_size: font_size-5 //!< font size for small label
  37. }