overview.style 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. using "ui/basic.style";
  8. using "ui/chat/chat.style";
  9. using "ui/widgets/widgets.style";
  10. using "boxes/boxes.style";
  11. OverviewFileLayout {
  12. maxWidth: pixels;
  13. songPadding: margins;
  14. songThumbSize: pixels;
  15. songNameTop: pixels;
  16. songStatusTop: pixels;
  17. songIconBg: color;
  18. songOverBg: color;
  19. songPause: icon;
  20. songPauseSelected: icon;
  21. songPlay: icon;
  22. songPlaySelected: icon;
  23. songCancel: icon;
  24. songCancelSelected: icon;
  25. songDownload: icon;
  26. songDownloadSelected: icon;
  27. voicePause: icon;
  28. voicePauseSelected: icon;
  29. voicePlay: icon;
  30. voicePlaySelected: icon;
  31. voiceCancel: icon;
  32. voiceCancelSelected: icon;
  33. voiceDownload: icon;
  34. voiceDownloadSelected: icon;
  35. filePadding: margins;
  36. fileThumbSize: pixels;
  37. fileNameTop: pixels;
  38. fileStatusTop: pixels;
  39. fileDateTop: pixels;
  40. }
  41. overviewCheckPressedSize: 0.8;
  42. overviewCheck: RoundCheckbox(defaultRoundCheckbox) {
  43. bgInactive: overviewCheckBg;
  44. bgActive: overviewCheckBgActive;
  45. border: overviewCheckBorder;
  46. size: 29px;
  47. sizeSmall: 0.3;
  48. check: icon {{ "overview_photo_check", overviewCheckFgActive, point(4px, 8px) }};
  49. }
  50. overviewSmallCheck: RoundCheckbox(defaultPeerListCheck) {
  51. border: overviewCheckBorder;
  52. }
  53. overviewCheckSkip: 5px;
  54. overviewPhotoBg: windowBgOver;
  55. overviewPhotoMinSize: 90px;
  56. overviewVideoBg: imageBg;
  57. overviewFileThumbBg: imageBg;
  58. overviewFileExtPadding: 5px;
  59. overviewFileExtTop: 24px;
  60. overviewFileExtFg: windowFgActive;
  61. overviewFileExtFont: font(18px semibold);
  62. overviewVoicePause: icon {{ "player/playlist_pause", historyFileInIconFg }};
  63. overviewVoicePauseSelected: icon {{ "player/playlist_pause", historyFileInIconFgSelected }};
  64. overviewVoicePlay: icon {{ "player/playlist_play", historyFileInIconFg }};
  65. overviewVoicePlaySelected: icon {{ "player/playlist_play", historyFileInIconFgSelected }};
  66. overviewVoiceCancel: icon {{ "player/playlist_cancel", historyFileInIconFg }};
  67. overviewVoiceCancelSelected: icon {{ "player/playlist_cancel", historyFileInIconFgSelected }};
  68. overviewVoiceDownload: icon {{ "player/playlist_download", historyFileInIconFg }};
  69. overviewVoiceDownloadSelected: icon {{ "player/playlist_download", historyFileInIconFgSelected }};
  70. overviewSongPause: icon {{ "player/playlist_pause", historyFileThumbIconFg }};
  71. overviewSongPauseSelected: icon {{ "player/playlist_pause", historyFileThumbIconFgSelected }};
  72. overviewSongPlay: icon {{ "player/playlist_play", historyFileThumbIconFg }};
  73. overviewSongPlaySelected: icon {{ "player/playlist_play", historyFileThumbIconFgSelected }};
  74. overviewSongCancel: icon {{ "player/playlist_cancel", historyFileThumbIconFg }};
  75. overviewSongCancelSelected: icon {{ "player/playlist_cancel", historyFileThumbIconFgSelected }};
  76. overviewSongDownload: icon {{ "player/playlist_download", historyFileThumbIconFg }};
  77. overviewSongDownloadSelected: icon {{ "player/playlist_download", historyFileThumbIconFgSelected }};
  78. overviewSmallCancel: icon {{ "history_audio_cancel", historyFileInIconFg }};
  79. overviewSmallCancelSelected: icon {{ "history_audio_cancel", historyFileInIconFgSelected }};
  80. overviewSmallDownload: icon {{ "history_audio_download", historyFileInIconFg }};
  81. overviewSmallDownloadSelected: icon {{ "history_audio_download", historyFileInIconFgSelected }};
  82. overviewFileLayout: OverviewFileLayout {
  83. maxWidth: 520px;
  84. songPadding: margins(17px, 7px, 10px, 6px);
  85. songThumbSize: 36px;
  86. songNameTop: 7px;
  87. songStatusTop: 25px;
  88. songIconBg: msgFileInBg;
  89. songOverBg: msgFileInBgOver;
  90. songPause: overviewSongPause;
  91. songPauseSelected: overviewSongPauseSelected;
  92. songPlay: overviewSongPlay;
  93. songPlaySelected: overviewSongPlaySelected;
  94. songCancel: overviewSongCancel;
  95. songCancelSelected: overviewSongCancelSelected;
  96. songDownload: overviewSongDownload;
  97. songDownloadSelected: overviewSongDownloadSelected;
  98. voicePause: overviewVoicePause;
  99. voicePauseSelected: overviewVoicePauseSelected;
  100. voicePlay: overviewVoicePlay;
  101. voicePlaySelected: overviewVoicePlaySelected;
  102. voiceCancel: overviewVoiceCancel;
  103. voiceCancelSelected: overviewVoiceCancelSelected;
  104. voiceDownload: overviewVoiceDownload;
  105. voiceDownloadSelected: overviewVoiceDownloadSelected;
  106. filePadding: margins(0px, 3px, 16px, 3px);
  107. fileThumbSize: 70px;
  108. fileNameTop: 7px;
  109. fileStatusTop: 24px;
  110. fileDateTop: 49px;
  111. }
  112. linksMaxWidth: 520px;
  113. linksLetterFg: windowFgActive;
  114. linksLetterFont: font(24px);
  115. linksMargin: margins(0px, 7px, 0px, 5px);
  116. linksTextFg: windowFg;
  117. linksTextTop: 6px;
  118. linksBorder: 1px;
  119. linksBorderFg: shadowFg;
  120. linksPhotoSize: 46px;
  121. linksPhotoPadding: 12px;
  122. overviewVideoStatusMargin: 3px;
  123. overviewVideoStatusPadding: point(6px, 0px);
  124. overviewVideoStatusRadius: 4px;
  125. overviewVideoPlay: icon {{ "overview_video_play", historyFileThumbIconFg }};
  126. overviewVideoPlaySelected: icon {{ "overview_video_play", historyFileThumbIconFgSelected }};
  127. overviewVideoDownload: icon {{ "overview_video_download", historyFileThumbIconFg }};
  128. overviewVideoDownloadSelected: icon {{ "overview_video_download", historyFileThumbIconFgSelected }};
  129. overviewVideoRadialSize: 36px;
  130. storyPinnedIcon: icon{
  131. { "dialogs/dialogs_pinned_shadow", windowShadowFg },
  132. { "dialogs/dialogs_pinned", historyFileThumbIconFg }
  133. };
  134. storyPinnedIconSelected: icon{
  135. { "dialogs/dialogs_pinned_shadow", windowShadowFg },
  136. { "dialogs/dialogs_pinned", historyFileThumbIconFgSelected }
  137. };