2016-05-12 16:05:20 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop version of Telegram messaging app, see https://telegram.org
|
|
|
|
|
|
|
|
Telegram Desktop is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
It is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
In addition, as a special exception, the copyright holders give permission
|
|
|
|
to link the code of portions of this program with the OpenSSL library.
|
|
|
|
|
|
|
|
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
2017-01-11 18:31:31 +00:00
|
|
|
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
2016-05-12 16:05:20 +00:00
|
|
|
*/
|
|
|
|
using "basic.style";
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-11-15 11:56:49 +00:00
|
|
|
using "window/window.style";
|
|
|
|
|
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);
|
|
|
|
width: 160px;
|
|
|
|
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) {
|
2016-05-31 19:27:11 +00:00
|
|
|
width: 180px;
|
|
|
|
margin: margins(5px, 5px, 5px, 5px);
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
profileBlockOneLineTextPart: FlatLabel(profileBlockTextPart) {
|
2016-05-31 19:27:11 +00:00
|
|
|
width: 0px; // No need to set minWidth in one-line text.
|
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
|
|
|
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) {
|
2016-06-01 16:40:51 +00:00
|
|
|
width: 1px; // Required for BreakEverywhere
|
|
|
|
}
|
2016-06-03 07:20:24 +00:00
|
|
|
|
|
|
|
profileLimitReachedSkip: 6px;
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
profileMemberItem: ProfilePeerListItem {
|
2016-12-19 16:51:29 +00:00
|
|
|
left: 8px;
|
|
|
|
bottom: profileBlockMarginBottom;
|
2016-12-09 18:56:01 +00:00
|
|
|
button: defaultLeftOutlineButton;
|
|
|
|
statusFg: windowSubTextFg;
|
2016-12-21 15:05:58 +00:00
|
|
|
statusFgOver: profileStatusFgOver;
|
2016-12-09 18:56:01 +00:00
|
|
|
statusFgActive: windowActiveTextFg;
|
|
|
|
}
|
2016-06-03 07:20:24 +00:00
|
|
|
profileMemberHeight: 58px;
|
|
|
|
profileMemberPaddingLeft: 16px;
|
|
|
|
profileMemberPhotoSize: 46px;
|
|
|
|
profileMemberPhotoPosition: point(12px, 6px);
|
|
|
|
profileMemberNamePosition: point(68px, 11px);
|
2016-12-21 15:05:58 +00:00
|
|
|
profileMemberNameFg: windowBoldFg;
|
2016-06-03 07:20:24 +00:00
|
|
|
profileMemberStatusPosition: point(68px, 31px);
|
2017-01-13 11:58:41 +00:00
|
|
|
profileMemberAdminIcon: icon {{ "profile_admin_star", profileAdminStartFg, point(4px, 3px) }};
|
2016-11-16 10:44:06 +00:00
|
|
|
profileLimitReachedLabel: FlatLabel(defaultFlatLabel) {
|
2016-06-03 21:46:45 +00:00
|
|
|
width: 180px;
|
|
|
|
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;
|