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