2023-07-06 11:09:16 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
using "ui/basic.style";
|
|
|
|
|
|
|
|
using "window/window.style";
|
|
|
|
using "ui/widgets/widgets.style";
|
|
|
|
|
2023-10-03 03:20:04 +00:00
|
|
|
statisticsLayerOverviewMargins: margins(0px, 17px, 0px, 9px);
|
2023-10-02 15:36:25 +00:00
|
|
|
statisticsLayerMargins: margins(20px, 0px, 20px, 0px);
|
|
|
|
|
2023-10-03 02:19:41 +00:00
|
|
|
statisticsChartHeight: 200px;
|
2023-07-13 21:59:40 +00:00
|
|
|
|
2023-10-03 03:20:04 +00:00
|
|
|
statisticsChartEntryPadding: margins(0px, 13px, 0px, 2px);
|
2023-09-28 15:03:12 +00:00
|
|
|
|
2023-10-22 19:46:41 +00:00
|
|
|
statisticsDetailsArrowShift: 3px;
|
2023-09-08 12:08:13 +00:00
|
|
|
statisticsDetailsArrowStroke: 1.5;
|
2023-10-03 02:19:41 +00:00
|
|
|
statisticsDetailsPopupMargins: margins(12px, 8px, 12px, 11px);
|
2023-07-06 11:09:16 +00:00
|
|
|
statisticsDetailsPopupPadding: margins(6px, 6px, 6px, 6px);
|
2023-09-08 10:46:11 +00:00
|
|
|
statisticsDetailsPopupMidLineSpace: 4px;
|
2023-10-02 23:07:05 +00:00
|
|
|
statisticsDetailsDotRadius: 5px;
|
2023-07-07 08:28:50 +00:00
|
|
|
statisticsChartLineWidth: 2px;
|
2023-07-06 11:09:16 +00:00
|
|
|
|
2023-10-03 03:20:04 +00:00
|
|
|
statisticsChartFooterSkip: 11px;
|
2023-10-02 23:59:35 +00:00
|
|
|
statisticsChartFooterHeight: 42px;
|
2023-09-25 19:50:19 +00:00
|
|
|
statisticsChartFooterBetweenSide: 5px;
|
|
|
|
statisticsChartFooterSideWidth: 10px;
|
2023-10-02 23:59:35 +00:00
|
|
|
statisticsChartFooterArrowHeight: 10px;
|
|
|
|
statisticsChartFooterSideRadius: 6px;
|
2023-07-11 02:35:46 +00:00
|
|
|
|
2023-10-02 23:07:05 +00:00
|
|
|
statisticsChartRulerCaptionSkip: 4px;
|
2023-07-10 23:55:42 +00:00
|
|
|
|
2023-10-02 23:07:05 +00:00
|
|
|
statisticsChartBottomCaptionHeight: 15px;
|
|
|
|
statisticsChartBottomCaptionSkip: 6px;
|
2023-07-07 15:17:09 +00:00
|
|
|
|
2023-10-03 03:20:04 +00:00
|
|
|
statisticsChartFlatCheckboxMargins: margins(4px, 3px, 4px, 5px);
|
|
|
|
statisticsChartFlatCheckboxCheckWidth: 3px;
|
|
|
|
statisticsChartFlatCheckboxShrinkkWidth: 4px;
|
2023-07-14 03:50:26 +00:00
|
|
|
|
2023-10-03 03:20:04 +00:00
|
|
|
statisticsFilterButtonsPadding: margins(0px, 12px, 0px, 8px);
|
2023-09-28 15:03:12 +00:00
|
|
|
|
2023-09-08 10:46:11 +00:00
|
|
|
statisticsDetailsPopupHeaderStyle: TextStyle(defaultTextStyle) {
|
2023-10-03 02:19:41 +00:00
|
|
|
font: font(12px semibold);
|
2023-09-08 10:46:11 +00:00
|
|
|
}
|
2023-07-06 11:09:16 +00:00
|
|
|
statisticsDetailsPopupStyle: TextStyle(defaultTextStyle) {
|
2023-10-03 02:19:41 +00:00
|
|
|
font: font(12px);
|
2023-07-06 11:09:16 +00:00
|
|
|
}
|
2023-07-10 14:29:52 +00:00
|
|
|
statisticsDetailsBottomCaptionStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(10px);
|
|
|
|
}
|
2023-08-24 20:01:39 +00:00
|
|
|
|
2023-09-14 13:16:51 +00:00
|
|
|
statisticsPieChartFont: font(20px);
|
2023-09-15 01:46:28 +00:00
|
|
|
statisticsPieChartPartOffset: 8px;
|
2023-09-14 13:16:51 +00:00
|
|
|
|
2023-10-02 18:30:42 +00:00
|
|
|
statisticsChartHeaderHeight: 36px;
|
|
|
|
statisticsChartHeaderPadding: margins(2px, 0px, 0px, 10px);
|
2023-08-24 20:01:39 +00:00
|
|
|
statisticsHeaderTitleTextStyle: TextStyle(defaultTextStyle) {
|
2023-10-02 18:30:42 +00:00
|
|
|
font: font(13px);
|
2023-08-24 20:01:39 +00:00
|
|
|
}
|
|
|
|
statisticsHeaderDatesTextStyle: TextStyle(defaultTextStyle) {
|
2023-10-02 18:30:42 +00:00
|
|
|
font: font(11px);
|
2023-08-24 20:01:39 +00:00
|
|
|
}
|
2023-08-24 21:08:59 +00:00
|
|
|
statisticsHeaderButton: RoundButton(defaultLightButton) {
|
|
|
|
width: -14px;
|
2023-10-03 13:16:39 +00:00
|
|
|
height: 20px;
|
2023-08-24 21:08:59 +00:00
|
|
|
textTop: 2px;
|
|
|
|
font: font(11px semibold);
|
|
|
|
}
|
2023-09-28 14:13:42 +00:00
|
|
|
|
|
|
|
statisticsLoadingSubtext: FlatLabel(changePhoneDescription) {
|
|
|
|
minWidth: 256px;
|
|
|
|
}
|
2023-09-28 19:30:10 +00:00
|
|
|
|
|
|
|
statisticsOverviewValue: FlatLabel(boxLabel) {
|
|
|
|
minWidth: 0px;
|
|
|
|
maxHeight: 60px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
2023-10-02 20:35:48 +00:00
|
|
|
font: font(14px);
|
2023-09-28 19:30:10 +00:00
|
|
|
}
|
|
|
|
}
|
2023-10-02 20:35:48 +00:00
|
|
|
statisticsOverviewValuePadding: margins(2px, 1px, 0px, 0px);
|
|
|
|
statisticsOverviewSecondValuePadding: margins(5px, 3px, 0px, 0px);
|
2023-09-28 19:30:10 +00:00
|
|
|
statisticsOverviewSecondValue: FlatLabel(boxLabel) {
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
2023-10-02 20:35:48 +00:00
|
|
|
font: font(11px);
|
2023-09-28 19:30:10 +00:00
|
|
|
}
|
|
|
|
}
|
2023-10-02 20:35:48 +00:00
|
|
|
statisticsOverviewSubtext: FlatLabel(boxLabel) {
|
|
|
|
minWidth: 152px;
|
|
|
|
maxHeight: 32px;
|
|
|
|
style: statisticsHeaderDatesTextStyle;
|
|
|
|
}
|
|
|
|
statisticsOverviewMidSkip: 50px;
|
|
|
|
statisticsOverviewRightSkip: 14px;
|
2023-10-06 02:38:37 +00:00
|
|
|
|
|
|
|
statisticsRecentPostRowHeight: 40px;
|
2023-10-10 13:20:04 +00:00
|
|
|
statisticsRecentPostButton: SettingsButton(defaultSettingsButton) {
|
|
|
|
height: 56px;
|
|
|
|
padding: margins(7px, 0px, 24px, 0px);
|
|
|
|
}
|
2023-11-28 00:49:58 +00:00
|
|
|
statisticsRecentPostIconSkip: 1px;
|
2023-11-23 15:26:23 +00:00
|
|
|
statisticsRecentPostShareIcon: icon {{ "statistics/mini_stats_share", windowSubTextFg }};
|
|
|
|
statisticsRecentPostReactionIcon: icon {{ "statistics/mini_stats_like", windowSubTextFg }};
|
2023-11-22 16:20:57 +00:00
|
|
|
statisticsRecentPostUserpic: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(contactsPhotoSize, contactsPhotoSize);
|
|
|
|
photoSize: contactsPhotoSize;
|
|
|
|
}
|
2023-10-16 19:26:36 +00:00
|
|
|
|
|
|
|
statisticsShowMoreButton: SettingsButton(defaultSettingsButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
|
|
|
|
2023-10-20 21:20:59 +00:00
|
|
|
padding: margins(70px, 10px, 22px, 8px);
|
2023-10-16 19:26:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
statisticsShowMoreButtonArrowPosition: point(29px, 13px);
|
|
|
|
statisticsShowMoreButtonArrowSize: 7px;
|
|
|
|
|
2023-10-20 21:20:59 +00:00
|
|
|
statisticsLimitsDividerPadding: margins(22px, -26px, 22px, 22px);
|
|
|
|
statisticsLimitsLinePadding: margins(0px, -2px, 0px, 0px);
|
|
|
|
|
|
|
|
boostsLayerOverviewMargins: margins(0px, 12px, 0px, 4px);
|
|
|
|
boostsOverviewValuePadding: margins(2px, 0px, 0px, 0px);
|
|
|
|
boostsChartHeaderPadding: margins(2px, 1px, 0px, 1px);
|
|
|
|
|
|
|
|
boostsListBox: PeerList(defaultPeerList) {
|
|
|
|
padding: margins(
|
|
|
|
0px,
|
|
|
|
7px,
|
|
|
|
0px,
|
|
|
|
7px);
|
|
|
|
item: PeerListItem(defaultPeerListItem) {
|
|
|
|
height: 52px;
|
|
|
|
photoPosition: point(18px, 4px);
|
|
|
|
namePosition: point(70px, 6px);
|
|
|
|
statusPosition: point(70px, 26px);
|
|
|
|
photoSize: 42px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
boostsLinkSkip: 5px;
|
|
|
|
boostsLinkFieldPadding: margins(22px, 7px, 22px, 12px);
|
2023-10-11 21:53:16 +00:00
|
|
|
boostsButton: SettingsButton(defaultSettingsButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
|
|
|
}
|
2023-10-24 10:54:52 +00:00
|
|
|
|
|
|
|
getBoostsButton: SettingsButton(reportReasonButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFg;
|
|
|
|
}
|
|
|
|
getBoostsButtonIcon: icon {{ "menu/gift_premium", lightButtonFg }};
|
2023-11-01 10:55:00 +00:00
|
|
|
|
|
|
|
boostsListMiniIcon: icon{{ "boosts/boost_mini2", premiumButtonFg }};
|
2023-11-02 11:49:03 +00:00
|
|
|
boostsListMiniIconPadding: margins(1px, 0px, 0px, 0px);
|
2023-11-01 10:55:00 +00:00
|
|
|
boostsListMiniIconSkip: 1px;
|
|
|
|
boostsListBadgeTextPadding: margins(16px, 1px, 6px, 0px);
|
|
|
|
boostsListBadgePadding: margins(4px, 1px, 4px, 0px);
|
|
|
|
boostsListBadgeHeight: 16px;
|
2023-11-02 11:49:03 +00:00
|
|
|
|
|
|
|
boostsListRightBadgeTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(12px semibold);
|
|
|
|
}
|
2023-11-06 22:23:52 +00:00
|
|
|
boostsListRightBadgeTextPadding: margins(22px, 1px, 8px, 0px);
|
|
|
|
boostsListRightBadgePadding: margins(4px, 5px, 12px, 0px);
|
2023-11-02 11:49:03 +00:00
|
|
|
boostsListRightBadgeHeight: 20px;
|
2023-11-06 22:23:52 +00:00
|
|
|
boostsListGiftMiniIconPadding: margins(4px, 2px, 0px, 0px);
|
|
|
|
boostsListGiftMiniIcon: icon{{ "boosts/mini_gift", historyPeer8UserpicBg2 }};
|
|
|
|
boostsListGiveawayMiniIcon: icon{{ "boosts/mini_giveaway", historyPeer4UserpicBg2 }};
|
|
|
|
boostsListUnclaimedIcon: icon{{ "boosts/boost_unknown", premiumButtonFg }};
|
|
|
|
boostsListUnknownIcon: icon{{ "boosts/boost_unclaimed", premiumButtonFg }};
|