VisualStyle.qml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * Copyright (c) 2012 Nokia Corporation.
  3. */
  4. // Visual style for MeeGo
  5. import QtQuick 1.1
  6. QtObject {
  7. // This should be bound from outside (to Window's inPortrait property).
  8. // The screen orientation will affect how the margins etc. are defined.
  9. property bool inPortrait: true
  10. // E6 has different screen resolution & aspect ratio (640x480), thus
  11. // there's some differentation for it separately.
  12. property bool isE6: false
  13. // Property, that holds the currently set volume level.
  14. property double currentVolume: 0
  15. // General
  16. property int margins: 4
  17. // Font properties
  18. property int smallFontSize: 15
  19. property int generalFontSize: 20
  20. property int largeFontSize: 30
  21. property int extraLargeFontSize: smallFontSize * 2
  22. property int ultraLargeFontSize: largeFontSize * 2
  23. property string defaultFontFamily: "Helvetica" // Defaults to correct ones in device
  24. property color defaultFontColor: "#FFFFFF"
  25. // PlayerView section
  26. property int controlMargins: 10
  27. property int controlWidth: isE6 ? 70 : 50
  28. property int controlHeight: isE6 ? 70 : 50
  29. property int controlAreaHeight: isE6 ? 85 : 65
  30. property double controlOpacity: 0.8
  31. property int separatorWidth: 1
  32. property color separatorColor: "#303030"
  33. // Busy indicator
  34. property int busyIndicatorHeight: inPortrait ? screen.displayWidth / 4
  35. : screen.displayHeight / 4
  36. property int busyIndicatorWidth: busyIndicatorHeight
  37. // Video information
  38. property int informationViewMargins: 5
  39. // VideoPlayView definitions. Used to define the size of the margins around
  40. // the Video Element when not in fullscreen.
  41. property double topAreaProportion: inPortrait ? 0.27 : 0.09
  42. property double bottomAreaProportion: inPortrait ? 0.37 : 0.24
  43. property double leftAreaProportion: inPortrait ? 0.00 : 0.05
  44. property double rightAreaProportion: inPortrait ? 0.00 : 0.31
  45. // Transition animation durations (in milliseconds)
  46. property int animationDurationShort: 150
  47. property int animationDurationNormal: 350
  48. property int animationDurationPrettyLong: 500
  49. property int animationDurationLong: 600
  50. // Hideout time after which the videoplayer controls should be hidden.
  51. property int videoControlsHideTimeout: 5000
  52. }