Style.qml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. pragma Singleton
  2. // Minimum for this is Qt 5.5
  3. import QtQuick 2.5
  4. import com.nextcloud.desktopclient 1.0
  5. QtObject {
  6. // Colors
  7. property color ncBlue: Theme.wizardHeaderBackgroundColor
  8. property color ncTextColor: Theme.wizardHeaderTitleColor
  9. property color lightHover: "#f7f7f7"
  10. property color menuBorder: "#bdbdbd"
  11. // Fonts
  12. // We are using pixel size because this is cross platform comparable, point size isn't
  13. property int topLinePixelSize: 12
  14. property int subLinePixelSize: 10
  15. // Dimensions and sizes
  16. property int trayWindowWidth: 400
  17. property int trayWindowMouseAreaWidth: 396
  18. property int trayWindowHeight: 510
  19. property int trayWindowRadius: 10
  20. property int trayWindowBorderWidth: 1
  21. property int trayWindowHeaderHeight: 60
  22. property int currentAccountButtonWidth: 220
  23. property int currentAccountButtonRadius: 2
  24. property int currentAccountLabelWidth: 128
  25. property url stateOnlineImageSource: Theme.stateOnlineImageSource
  26. property url stateOfflineImageSource: Theme.stateOfflineImageSource
  27. property int accountAvatarSize: (trayWindowHeaderHeight - 16)
  28. property int accountAvatarStateIndicatorSize: 16
  29. property int folderStateIndicatorSize: 16
  30. property int accountLabelWidth: 128
  31. property int accountDropDownCaretSize: 20
  32. property int accountDropDownCaretMargin: 8
  33. property int addAccountButtonHeight: 50
  34. property int headerButtonIconSize: 32
  35. property int activityLabelBaseWidth: 240
  36. property int userStatusEmojiSize: 8
  37. property int userStatusSpacing: 6
  38. property int userStatusAnchorsMargin: 2
  39. property int accountServerAnchorsMargin: 10
  40. property int accountLabelsSpacing: 4
  41. property int accountLabelsAnchorsMargin: 7
  42. property int accountLabelsLayoutMargin: 12
  43. property int accountLabelsLayoutTopMargin: 10
  44. // Visual behaviour
  45. property bool hoverEffectsEnabled: true
  46. }