export.style 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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/widgets/widgets.style";
  9. using "boxes/boxes.style";
  10. exportPanelSize: size(364px, 480px);
  11. exportSettingPadding: margins(22px, 8px, 22px, 8px);
  12. exportSubSettingPadding: margins(56px, 4px, 22px, 12px);
  13. exportHeaderLabel: FlatLabel(boxTitle) {
  14. style: TextStyle(defaultTextStyle) {
  15. font: font(15px semibold);
  16. }
  17. }
  18. exportHeaderPadding: margins(22px, 20px, 22px, 9px);
  19. exportFileSizeSlider: MediaSlider(defaultContinuousSlider) {
  20. seekSize: size(15px, 15px);
  21. }
  22. exportFileSizeLabel: LabelSimple(defaultLabelSimple) {
  23. font: boxTextFont;
  24. }
  25. exportFileSizePadding: margins(22px, 8px, 22px, 8px);
  26. exportFileSizeLabelBottom: 18px;
  27. exportLocationLabel: FlatLabel(boxLabel) {
  28. maxHeight: 21px;
  29. }
  30. exportLocationPadding: margins(22px, 8px, 22px, 8px);
  31. exportLimitsPadding: margins(22px, 0px, 22px, 0px);
  32. exportAboutOptionLabel: FlatLabel(defaultFlatLabel) {
  33. textFg: windowSubTextFg;
  34. minWidth: 175px;
  35. }
  36. exportAboutOptionPadding: margins(22px, 0px, 22px, 16px);
  37. exportErrorLabel: FlatLabel(boxLabel) {
  38. minWidth: 175px;
  39. align: align(top);
  40. textFg: boxTextFgError;
  41. }
  42. exportProgressDuration: 200;
  43. exportProgressRowHeight: 30px;
  44. exportProgressRowPadding: margins(22px, 10px, 22px, 10px);
  45. exportProgressRowSkip: 10px;
  46. exportProgressLabel: FlatLabel(boxLabel) {
  47. textFg: windowBoldFg;
  48. maxHeight: 20px;
  49. style: TextStyle(defaultTextStyle) {
  50. font: font(14px semibold);
  51. }
  52. }
  53. exportProgressInfoLabel: FlatLabel(boxLabel) {
  54. textFg: windowSubTextFg;
  55. maxHeight: 20px;
  56. style: boxTextStyle;
  57. }
  58. exportProgressWidth: 3px;
  59. exportProgressFg: mediaPlayerActiveFg;
  60. exportProgressBg: mediaPlayerInactiveFg;
  61. exportCancelButton: RoundButton(attentionBoxButton) {
  62. width: 200px;
  63. height: 44px;
  64. textTop: 12px;
  65. style: TextStyle(semiboldTextStyle) {
  66. font: font(semibold 15px);
  67. }
  68. }
  69. exportCancelBottom: 30px;
  70. exportDoneButton: RoundButton(defaultActiveButton) {
  71. width: 200px;
  72. height: 44px;
  73. textTop: 12px;
  74. style: TextStyle(semiboldTextStyle) {
  75. font: font(semibold 15px);
  76. }
  77. }
  78. exportAboutLabel: FlatLabel(boxLabel) {
  79. textFg: windowSubTextFg;
  80. }
  81. exportAboutPadding: margins(22px, 10px, 22px, 0px);
  82. exportTopBarLabel: FlatLabel(defaultFlatLabel) {
  83. maxHeight: 20px;
  84. palette: TextPalette(defaultTextPalette) {
  85. linkFg: windowSubTextFg;
  86. }
  87. }
  88. exportCalendarSizes: CalendarSizes(defaultCalendarSizes) {
  89. width: 320px;
  90. daysHeight: 40px;
  91. cellSize: size(42px, 38px);
  92. cellInner: 32px;
  93. padding: margins(14px, 0px, 14px, 0px);
  94. }