VisualStyle.qml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * Copyright (c) 2012 Nokia Corporation.
  3. */
  4. // Visual style for Symbian
  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: platformStyle.fontSizeSmall
  19. property int generalFontSize: platformStyle.fontSizeMedium
  20. property int largeFontSize: platformStyle.fontSizeLarge
  21. property int extraLargeFontSize: platformStyle.fontSizeSmall * 1.5
  22. property int ultraLargeFontSize: platformStyle.fontSizeLarge
  23. + platformStyle.fontSizeMedium
  24. property string defaultFontFamily: "Helvetica" // Defaults to correct ones in device
  25. property color defaultFontColor: "#FFFFFF"
  26. // PlayerView section
  27. property int controlMargins: 10
  28. property int controlWidth: isE6 ? 70 : 50
  29. property int controlHeight: isE6 ? 70 : 50
  30. property int controlAreaHeight: isE6 ? 85 : 65
  31. property double controlOpacity: 0.8
  32. property int separatorWidth: 1
  33. property color separatorColor: "#303030"
  34. // Busy indicator
  35. property int busyIndicatorHeight: inPortrait ? screen.displayWidth / 4
  36. : screen.displayHeight / 4
  37. property int busyIndicatorWidth: busyIndicatorHeight
  38. // Video information
  39. property int informationViewMargins: 5
  40. // VideoPlayView definitions. Used to define the size of the margins around
  41. // the Video Element when not in fullscreen.
  42. property double topAreaProportion: inPortrait ? 0.27 : 0.09
  43. property double bottomAreaProportion: inPortrait ? 0.37 : 0.24
  44. property double leftAreaProportion: inPortrait ? 0.00 : 0.05
  45. property double rightAreaProportion: inPortrait ? 0.00 : 0.31
  46. // Transition animation durations (in milliseconds)
  47. property int animationDurationShort: 150
  48. property int animationDurationNormal: 350
  49. property int animationDurationPrettyLong: 500
  50. property int animationDurationLong: 600
  51. // Hideout time after which the videoplayer controls should be hidden.
  52. property int videoControlsHideTimeout: 5000
  53. }