2016-05-12 16:05:20 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2016-05-12 16:05:20 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2016-05-12 16:05:20 +00:00
|
|
|
*/
|
|
|
|
using "basic.style";
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2017-12-07 15:01:41 +00:00
|
|
|
using "info/info.style";
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-05-12 16:05:20 +00:00
|
|
|
profileBg: windowBg;
|
|
|
|
|
|
|
|
profileTopBarHeight: topBarHeight;
|
2016-10-31 12:29:26 +00:00
|
|
|
profileFixedBarButton: topBarButton;
|
2016-05-12 16:05:20 +00:00
|
|
|
|
|
|
|
profileMarginTop: 13px;
|
|
|
|
profilePhotoSize: 112px;
|
2016-05-31 19:27:11 +00:00
|
|
|
profilePhotoLeftMin: 18px;
|
2016-06-07 19:59:39 +00:00
|
|
|
profilePhotoLeftMax: 35px;
|
2016-05-27 10:57:11 +00:00
|
|
|
profilePhotoDuration: 500;
|
2016-05-12 16:05:20 +00:00
|
|
|
profileNameLeft: 26px;
|
|
|
|
profileNameTop: 9px;
|
2016-11-16 10:44:06 +00:00
|
|
|
profileNameLabel: FlatLabel(defaultFlatLabel) {
|
2016-05-26 15:31:20 +00:00
|
|
|
margin: margins(10px, 5px, 10px, 5px);
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 160px;
|
2016-05-26 15:31:20 +00:00
|
|
|
maxHeight: 24px;
|
2016-12-21 15:05:58 +00:00
|
|
|
textFg: windowBoldFg;
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(16px semibold);
|
|
|
|
linkFont: font(16px semibold);
|
|
|
|
linkFontOver: font(16px semibold underline);
|
|
|
|
}
|
2016-05-26 15:31:20 +00:00
|
|
|
}
|
2016-05-12 16:05:20 +00:00
|
|
|
profileStatusLeft: 27px;
|
|
|
|
profileStatusTop: 35px;
|
|
|
|
profileStatusFont: normalFont;
|
|
|
|
profileStatusFg: windowSubTextFg;
|
2016-06-04 20:29:16 +00:00
|
|
|
profileStatusFgActive: windowActiveTextFg;
|
2016-05-12 16:05:20 +00:00
|
|
|
profileMarginBottom: 30px;
|
2016-05-20 15:35:58 +00:00
|
|
|
|
2016-05-23 12:41:09 +00:00
|
|
|
profileButtonLeft: 27px;
|
|
|
|
profileButtonTop: 88px;
|
|
|
|
profileButtonSkip: 10px;
|
2016-10-31 12:29:26 +00:00
|
|
|
profilePrimaryButton: defaultActiveButton;
|
|
|
|
profileSecondaryButton: defaultLightButton;
|
2016-06-22 17:11:35 +00:00
|
|
|
profileAddMemberButton: RoundButton(profileSecondaryButton) {
|
2016-05-27 13:56:35 +00:00
|
|
|
width: 62px;
|
2016-11-07 15:24:28 +00:00
|
|
|
icon: icon {{ "profile_add_member", lightButtonFg, point(20px, 10px) }};
|
2016-05-27 13:56:35 +00:00
|
|
|
}
|
2016-05-23 12:41:09 +00:00
|
|
|
|
2016-05-26 16:05:39 +00:00
|
|
|
profileDropAreaBg: profileBg;
|
2016-11-07 15:24:28 +00:00
|
|
|
profileDropAreaFg: lightButtonFg;
|
2016-05-27 10:57:11 +00:00
|
|
|
profileDropAreaPadding: margins(25px, 3px, 25px, 20px);
|
2016-05-26 16:05:39 +00:00
|
|
|
profileDropAreaTitleFont: font(24px);
|
2016-05-27 10:57:11 +00:00
|
|
|
profileDropAreaTitleTop: 30px;
|
2016-05-26 16:05:39 +00:00
|
|
|
profileDropAreaSubtitleFont: font(16px);
|
2016-05-27 10:57:11 +00:00
|
|
|
profileDropAreaSubtitleTop: 68px;
|
2016-05-26 16:05:39 +00:00
|
|
|
profileDropAreaBorderFg: profileDropAreaFg;
|
|
|
|
profileDropAreaBorderWidth: 3px;
|
2016-05-27 10:57:11 +00:00
|
|
|
profileDropAreaDuration: 200;
|
2016-05-26 16:05:39 +00:00
|
|
|
|
2016-12-02 19:16:35 +00:00
|
|
|
profileDividerBg: windowBgOver;
|
2016-05-27 13:56:35 +00:00
|
|
|
profileDividerFg: windowShadowFg;
|
2016-09-30 12:52:03 +00:00
|
|
|
profileDividerLeft: icon {{ "profile_divider_left", profileDividerFg }};
|
2016-12-02 19:16:35 +00:00
|
|
|
profileDividerTop: icon {{ "profile_divider_top", profileDividerFg }};
|
|
|
|
profileDividerBottom: icon {{ "profile_divider_bottom", profileDividerFg }};
|
2016-05-12 16:05:20 +00:00
|
|
|
|
|
|
|
profileBlocksTop: 7px;
|
2016-05-31 19:27:11 +00:00
|
|
|
profileBlocksBottom: 20px;
|
|
|
|
profileBlockLeftMin: 8px;
|
|
|
|
profileBlockLeftMax: 25px;
|
|
|
|
profileBlockNarrowWidthMin: 220px;
|
|
|
|
profileBlockWideWidthMin: 300px;
|
|
|
|
profileBlockWideWidthMax: 340px;
|
2016-06-03 07:20:24 +00:00
|
|
|
profileBlockMarginTop: 14px;
|
2016-05-31 19:27:11 +00:00
|
|
|
profileBlockMarginRight: 10px;
|
2016-06-10 11:18:55 +00:00
|
|
|
profileBlockMarginBottom: 7px;
|
|
|
|
profileBlockTitleHeight: 24px;
|
2016-05-31 19:27:11 +00:00
|
|
|
profileBlockTitleFont: font(14px semibold);
|
2016-12-21 15:05:58 +00:00
|
|
|
profileBlockTitleFg: windowBoldFg;
|
2016-06-03 07:20:24 +00:00
|
|
|
profileBlockTitlePosition: point(24px, 0px);
|
2016-11-16 10:44:06 +00:00
|
|
|
profileBlockLabel: FlatLabel(defaultFlatLabel) {
|
2016-05-31 19:27:11 +00:00
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
profileBlockTextPart: FlatLabel(defaultFlatLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 180px;
|
2016-05-31 19:27:11 +00:00
|
|
|
margin: margins(5px, 5px, 5px, 5px);
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
profileBlockOneLineTextPart: FlatLabel(profileBlockTextPart) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 0px; // No need to set minWidth in one-line text.
|
2016-05-31 19:27:11 +00:00
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
2017-07-18 16:03:11 +00:00
|
|
|
profileBioLabel: FlatLabel(profileBlockOneLineTextPart) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 120px;
|
2017-07-18 16:03:11 +00:00
|
|
|
maxHeight: 0px;
|
|
|
|
}
|
2016-05-31 19:27:11 +00:00
|
|
|
profileBlockOneLineSkip: 9px;
|
2016-06-01 13:07:03 +00:00
|
|
|
profileBlockOneLineWidthMax: 240px;
|
2016-06-01 16:40:51 +00:00
|
|
|
|
2016-06-10 11:18:55 +00:00
|
|
|
profileEnableNotificationsTop: 7px;
|
|
|
|
profileSettingsBlockSkip: 8px;
|
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
profileInviteLinkText: FlatLabel(profileBlockTextPart) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 1px; // Required for BreakEverywhere
|
2016-06-01 16:40:51 +00:00
|
|
|
}
|
2016-06-03 07:20:24 +00:00
|
|
|
|
|
|
|
profileLimitReachedSkip: 6px;
|
|
|
|
|
2017-09-26 17:57:01 +00:00
|
|
|
profileMemberItem: PeerListItem(defaultPeerListItem) {
|
2016-12-19 16:51:29 +00:00
|
|
|
left: 8px;
|
|
|
|
bottom: profileBlockMarginBottom;
|
2016-12-09 18:56:01 +00:00
|
|
|
button: defaultLeftOutlineButton;
|
2017-09-25 16:06:53 +00:00
|
|
|
maximalWidth: profileBlockWideWidthMax;
|
2016-12-21 15:05:58 +00:00
|
|
|
statusFgOver: profileStatusFgOver;
|
2016-12-09 18:56:01 +00:00
|
|
|
}
|
2016-06-03 07:20:24 +00:00
|
|
|
profileMemberPaddingLeft: 16px;
|
2016-12-21 15:05:58 +00:00
|
|
|
profileMemberNameFg: windowBoldFg;
|
2017-07-03 10:31:37 +00:00
|
|
|
profileMemberCreatorIcon: icon {{ "profile_admin_star", profileAdminStartFg, point(4px, 3px) }};
|
|
|
|
profileMemberCreatorIconOver: icon {{ "profile_admin_star", profileAdminStarFgOver, point(4px, 3px) }};
|
|
|
|
profileMemberAdminIcon: icon {{ "profile_admin_star", profileOtherAdminStarFg, point(4px, 3px) }};
|
|
|
|
profileMemberAdminIconOver: icon {{ "profile_admin_star", profileOtherAdminStarFgOver, point(4px, 3px) }};
|
2016-11-16 10:44:06 +00:00
|
|
|
profileLimitReachedLabel: FlatLabel(defaultFlatLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 180px;
|
2016-06-03 21:46:45 +00:00
|
|
|
margin: margins(profileMemberPaddingLeft, 9px, profileMemberPaddingLeft, 6px);
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 19px;
|
|
|
|
}
|
2016-06-03 21:46:45 +00:00
|
|
|
}
|
2016-06-06 10:29:51 +00:00
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
profileReportReasonOther: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(1px, 26px, 1px, 4px);
|
|
|
|
heightMax: 135px;
|
2016-06-06 10:29:51 +00:00
|
|
|
}
|
2016-06-07 19:59:39 +00:00
|
|
|
|
2016-09-30 12:52:03 +00:00
|
|
|
profileVerifiedCheckShift: -3px;
|
2016-06-07 19:59:39 +00:00
|
|
|
profileVerifiedCheck: icon {
|
2017-01-05 09:08:16 +00:00
|
|
|
{ "profile_verified_star", profileVerifiedCheckBg, point(0px, 7px) },
|
|
|
|
{ "profile_verified_check", profileVerifiedCheckFg, point(4px, 11px) }
|
2016-06-07 19:59:39 +00:00
|
|
|
};
|
2016-12-08 14:08:54 +00:00
|
|
|
|
|
|
|
profileCommonGroupsSkip: 24px;
|
|
|
|
profileCommonGroupsLeftMin: 24px;
|
|
|
|
profileCommonGroupsLeftMax: 36px;
|
|
|
|
profileCommonGroupsWidthMax: 480px;
|
|
|
|
profileCommonGroupsPadding: margins(7px, 7px, 7px, 7px);
|
|
|
|
profileCommonGroupsPhotoSize: 42px;
|
|
|
|
profileCommonGroupsNameTop: 12px;
|
|
|
|
profileCommonGroupsNameLeft: 16px;
|
|
|
|
profileCommonGroupsBgOver: windowBgOver;
|
|
|
|
profileCommonGroupsRipple: defaultRippleAnimation;
|