2017-09-13 17:01:23 +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.
|
2017-09-13 17:01:23 +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
|
2017-09-13 17:01:23 +00:00
|
|
|
*/
|
2019-09-17 16:13:12 +00:00
|
|
|
using "ui/basic.style";
|
2017-09-13 17:01:23 +00:00
|
|
|
|
|
|
|
using "boxes/boxes.style";
|
|
|
|
using "ui/widgets/widgets.style";
|
2021-01-15 15:27:34 +00:00
|
|
|
using "ui/chat/chat.style"; // GroupCallUserpics.
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-09-21 19:21:33 +00:00
|
|
|
InfoToggle {
|
|
|
|
color: color;
|
|
|
|
duration: int;
|
|
|
|
size: pixels;
|
|
|
|
skip: pixels;
|
|
|
|
stroke: pixels;
|
|
|
|
rippleAreaPadding: pixels;
|
|
|
|
}
|
|
|
|
|
2017-10-04 17:15:08 +00:00
|
|
|
infoMediaHeaderFg: windowFg;
|
|
|
|
|
2017-09-21 19:21:33 +00:00
|
|
|
infoToggleCheckbox: Checkbox(defaultCheckbox) {
|
|
|
|
margin: margins(0px, 0px, 0px, 0px);
|
|
|
|
rippleBgActive: windowBgOver;
|
|
|
|
checkPosition: point(16px, 8px);
|
|
|
|
rippleAreaPosition: point(-8px, -8px);
|
|
|
|
}
|
|
|
|
infoToggle: InfoToggle {
|
|
|
|
color: menuIconFg;
|
|
|
|
duration: slideWrapDuration;
|
|
|
|
size: 24px;
|
|
|
|
skip: 5px;
|
|
|
|
stroke: 2px;
|
|
|
|
rippleAreaPadding: 8px;
|
|
|
|
}
|
|
|
|
|
2017-11-03 12:03:00 +00:00
|
|
|
infoMediaSearch: SearchFieldRow {
|
|
|
|
height: 44px;
|
|
|
|
padding: margins(8px, 6px, 8px, 6px);
|
2020-11-29 18:26:49 +00:00
|
|
|
field: defaultMultiSelectSearchField;
|
2017-11-03 12:03:00 +00:00
|
|
|
fieldIcon: icon {{
|
|
|
|
"box_search-flip_horizontal",
|
|
|
|
menuIconFg,
|
|
|
|
point(6px, 8px)
|
|
|
|
}};
|
|
|
|
fieldIconSkip: 36px;
|
2020-11-29 18:26:49 +00:00
|
|
|
fieldCancel: defaultMultiSelectSearchCancel;
|
2017-11-03 12:03:00 +00:00
|
|
|
fieldCancelSkip: 40px;
|
|
|
|
}
|
|
|
|
infoLayerMediaSearch: SearchFieldRow(infoMediaSearch) {
|
|
|
|
height: 46px;
|
|
|
|
fieldIcon: icon {{
|
|
|
|
"box_search-flip_horizontal",
|
|
|
|
menuIconFg,
|
|
|
|
point(9px, 9px)
|
|
|
|
}};
|
|
|
|
fieldIconSkip: 34px;
|
2020-11-29 18:26:49 +00:00
|
|
|
fieldCancel: CrossButton(defaultMultiSelectSearchCancel) {
|
2017-11-03 12:03:00 +00:00
|
|
|
width: 50px;
|
|
|
|
cross: CrossAnimation {
|
|
|
|
size: 38px;
|
|
|
|
skip: 12px;
|
|
|
|
stroke: 2px;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
crossPosition: point(3px, 4px);
|
|
|
|
}
|
|
|
|
fieldCancelSkip: 46px;
|
|
|
|
}
|
|
|
|
infoTopBarSearchRow: SearchFieldRow(infoLayerMediaSearch) {
|
2017-11-03 15:47:08 +00:00
|
|
|
height: 52px;
|
2017-11-03 12:03:00 +00:00
|
|
|
padding: margins(0px, 12px, 8px, 10px);
|
2020-11-29 18:26:49 +00:00
|
|
|
fieldCancel: CrossButton(defaultMultiSelectSearchCancel) {
|
2017-11-03 15:47:08 +00:00
|
|
|
width: 51px;
|
2017-11-03 12:03:00 +00:00
|
|
|
height: 52px;
|
|
|
|
cross: CrossAnimation {
|
2017-11-03 15:47:08 +00:00
|
|
|
size: 42px;
|
|
|
|
skip: 14px;
|
2017-11-03 12:03:00 +00:00
|
|
|
stroke: 2px;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
2017-11-03 15:47:08 +00:00
|
|
|
crossPosition: point(1px, 6px);
|
2017-11-03 12:03:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-19 11:37:15 +00:00
|
|
|
infoSlideDuration: 0;
|
|
|
|
|
2017-09-13 17:01:23 +00:00
|
|
|
infoTopBarBackIcon: icon {{ "info_back", boxTitleCloseFg }};
|
|
|
|
infoTopBarBackIconOver: icon {{ "info_back", boxTitleCloseFgOver }};
|
2017-09-30 18:26:45 +00:00
|
|
|
infoTopBarHeight: 54px;
|
2017-09-13 17:01:23 +00:00
|
|
|
infoTopBarBack: IconButton(defaultIconButton) {
|
2017-09-30 18:26:45 +00:00
|
|
|
width: 70px;
|
2017-09-13 17:01:23 +00:00
|
|
|
height: infoTopBarHeight;
|
|
|
|
|
|
|
|
icon: infoTopBarBackIcon;
|
|
|
|
iconOver: infoTopBarBackIconOver;
|
2017-09-30 18:26:45 +00:00
|
|
|
iconPosition: point(11px, -1px);
|
2017-09-13 17:01:23 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(6px, 6px);
|
2017-09-30 18:26:45 +00:00
|
|
|
rippleAreaSize: 42px;
|
2017-09-13 17:01:23 +00:00
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2017-09-30 18:26:45 +00:00
|
|
|
infoTopBarTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowBoldFg;
|
|
|
|
maxHeight: 20px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px semibold);
|
|
|
|
linkFont: font(14px semibold);
|
|
|
|
linkFontOver: font(14px semibold);
|
|
|
|
}
|
|
|
|
}
|
2017-11-23 14:58:00 +00:00
|
|
|
infoTopBarMediaCancel: IconButton(infoTopBarBack) {
|
2017-11-16 09:13:17 +00:00
|
|
|
width: infoTopBarHeight;
|
2017-10-20 16:19:42 +00:00
|
|
|
icon: icon {{ "info_close", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_close", boxTitleCloseFgOver }};
|
|
|
|
}
|
2017-11-23 14:58:00 +00:00
|
|
|
infoTopBarClose: IconButton(infoTopBarMediaCancel) {
|
|
|
|
width: 48px;
|
|
|
|
iconPosition: point(5px, -1px);
|
|
|
|
rippleAreaPosition: point(0px, 6px);
|
|
|
|
}
|
2017-11-03 12:03:00 +00:00
|
|
|
infoTopBarSearch: IconButton(infoTopBarBack) {
|
|
|
|
width: 56px;
|
|
|
|
icon: icon {{ "top_bar_search", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "top_bar_search", boxTitleCloseFgOver }};
|
|
|
|
}
|
2017-11-07 15:12:54 +00:00
|
|
|
infoTopBarMenu: IconButton(infoTopBarBack) {
|
|
|
|
width: 48px;
|
|
|
|
icon: icon {{ "title_menu_dots", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "title_menu_dots", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(18px, -1px);
|
|
|
|
rippleAreaPosition: point(1px, 6px);
|
|
|
|
}
|
|
|
|
infoTopBarNotifications: IconButton(infoTopBarMenu) {
|
|
|
|
width: 42px;
|
|
|
|
icon: icon {{ "info_notifications", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_notifications", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(5px, 10px);
|
|
|
|
rippleAreaPosition: point(0px, 6px);
|
|
|
|
}
|
|
|
|
infoNotificationsActive: icon {{
|
|
|
|
"info_notifications",
|
|
|
|
windowBgActive
|
|
|
|
}};
|
2017-12-07 15:01:41 +00:00
|
|
|
infoTopBarCall: IconButton(infoTopBarNotifications) {
|
|
|
|
icon: icon {{ "top_bar_call", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "top_bar_call", boxTitleCloseFgOver }};
|
2019-03-24 07:31:51 +00:00
|
|
|
iconPosition: point(5px, -1px);
|
2017-12-07 15:01:41 +00:00
|
|
|
}
|
2018-09-09 17:38:08 +00:00
|
|
|
infoTopBarSave: IconButton(infoTopBarNotifications) {
|
2018-09-10 12:18:39 +00:00
|
|
|
width: 48px;
|
2018-09-09 17:38:08 +00:00
|
|
|
icon: icon {{ "passport_ready", windowActiveTextFg }};
|
2018-09-10 12:18:39 +00:00
|
|
|
iconOver: icon {{ "passport_ready", windowActiveTextFg }};
|
|
|
|
iconPosition: point(11px, 17px);
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgOver;
|
|
|
|
}
|
2018-09-09 17:38:08 +00:00
|
|
|
}
|
2017-10-20 16:19:42 +00:00
|
|
|
infoTopBarForward: IconButton(infoTopBarBack) {
|
|
|
|
width: 46px;
|
|
|
|
icon: icon {{ "info_media_forward", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_media_forward", boxTitleCloseFgOver }};
|
2020-03-24 10:49:50 +00:00
|
|
|
iconPosition: point(10px, -1px);
|
2017-10-20 16:19:42 +00:00
|
|
|
rippleAreaPosition: point(1px, 6px);
|
|
|
|
}
|
|
|
|
infoTopBarDelete: IconButton(infoTopBarForward) {
|
|
|
|
icon: icon {{ "info_media_delete", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_media_delete", boxTitleCloseFgOver }};
|
|
|
|
}
|
2017-09-30 18:26:45 +00:00
|
|
|
infoTopBar: InfoTopBar {
|
|
|
|
height: infoTopBarHeight;
|
|
|
|
back: infoTopBarBack;
|
|
|
|
title: infoTopBarTitle;
|
2020-04-29 08:08:34 +00:00
|
|
|
titlePosition: point(22px, 18px);
|
2017-09-30 18:26:45 +00:00
|
|
|
bg: windowBg;
|
2017-11-23 14:58:00 +00:00
|
|
|
mediaCancel: infoTopBarMediaCancel;
|
2017-10-20 16:19:42 +00:00
|
|
|
mediaActionsSkip: 4px;
|
|
|
|
mediaForward: infoTopBarForward;
|
|
|
|
mediaDelete: infoTopBarDelete;
|
2017-11-03 12:03:00 +00:00
|
|
|
search: infoTopBarSearch;
|
|
|
|
searchRow: infoTopBarSearchRow;
|
2017-11-16 09:13:17 +00:00
|
|
|
highlightBg: windowBgOver;
|
|
|
|
highlightDuration: 240;
|
2017-09-30 18:26:45 +00:00
|
|
|
}
|
2017-11-27 11:43:57 +00:00
|
|
|
infoTopBarScale: 0.7;
|
|
|
|
infoTopBarDuration: 150;
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-11-19 11:37:15 +00:00
|
|
|
infoLayerTopMinimal: 20px;
|
|
|
|
infoLayerTopMaximal: 40px;
|
2019-11-02 17:06:47 +00:00
|
|
|
infoLayerTopBarHeight: boxTitleHeight;
|
2017-09-13 17:01:23 +00:00
|
|
|
infoLayerTopBarBackIcon: icon {{ "info_back", boxTitleCloseFg }};
|
|
|
|
infoLayerTopBarBackIconOver: icon {{ "info_back", boxTitleCloseFgOver }};
|
|
|
|
infoLayerTopBarBack: IconButton(infoTopBarBack) {
|
|
|
|
width: infoLayerTopBarHeight;
|
|
|
|
height: infoLayerTopBarHeight;
|
|
|
|
|
2017-09-30 18:26:45 +00:00
|
|
|
iconPosition: point(12px, -1px);
|
2017-09-13 17:01:23 +00:00
|
|
|
icon: infoLayerTopBarBackIcon;
|
|
|
|
iconOver: infoLayerTopBarBackIconOver;
|
2017-09-30 18:26:45 +00:00
|
|
|
rippleAreaSize: 44px;
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
2017-11-23 14:58:00 +00:00
|
|
|
infoLayerTopBarMediaCancel: IconButton(infoLayerTopBarBack) {
|
|
|
|
icon: icon {{ "info_close", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_close", boxTitleCloseFgOver }};
|
|
|
|
}
|
|
|
|
infoLayerTopBarClose: IconButton(infoLayerTopBarMediaCancel) {
|
2017-11-07 15:12:54 +00:00
|
|
|
width: 50px;
|
|
|
|
iconPosition: point(6px, -1px);
|
|
|
|
rippleAreaPosition: point(0px, 6px);
|
|
|
|
}
|
|
|
|
infoLayerTopBarMenu: IconButton(infoLayerTopBarClose) {
|
|
|
|
width: 44px;
|
|
|
|
icon: icon {{ "title_menu_dots", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "title_menu_dots", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(18px, -1px);
|
|
|
|
}
|
|
|
|
infoLayerTopBarNotifications: IconButton(infoLayerTopBarMenu) {
|
|
|
|
icon: icon {{ "info_notifications", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_notifications", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(5px, 11px);
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
2019-03-04 08:14:47 +00:00
|
|
|
infoLayerTopBarCall: IconButton(infoLayerTopBarMenu) {
|
2017-12-07 15:01:41 +00:00
|
|
|
icon: icon {{ "top_bar_call", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "top_bar_call", boxTitleCloseFgOver }};
|
2019-03-04 08:14:47 +00:00
|
|
|
iconPosition: point(5px, -1px);
|
2017-12-07 15:01:41 +00:00
|
|
|
}
|
2018-09-09 17:38:08 +00:00
|
|
|
infoLayerTopBarSave: IconButton(infoLayerTopBarNotifications) {
|
|
|
|
icon: icon {{ "passport_ready", windowActiveTextFg }};
|
|
|
|
iconOver: icon {{ "passport_ready", windowActiveTextFg }};
|
2018-09-10 12:18:39 +00:00
|
|
|
iconPosition: point(13px, 18px);
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgOver;
|
|
|
|
}
|
2018-09-09 17:38:08 +00:00
|
|
|
}
|
2017-10-20 16:19:42 +00:00
|
|
|
infoLayerTopBarForward: IconButton(infoLayerTopBarBack) {
|
|
|
|
width: 45px;
|
|
|
|
icon: icon {{ "info_media_forward", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_media_forward", boxTitleCloseFgOver }};
|
2020-03-24 10:49:50 +00:00
|
|
|
iconPosition: point(11px, -1px);
|
2017-10-20 16:19:42 +00:00
|
|
|
rippleAreaPosition: point(1px, 6px);
|
|
|
|
}
|
|
|
|
infoLayerTopBarDelete: IconButton(infoLayerTopBarForward) {
|
|
|
|
icon: icon {{ "info_media_delete", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_media_delete", boxTitleCloseFgOver }};
|
|
|
|
}
|
2017-11-16 09:13:17 +00:00
|
|
|
infoLayerTopBar: InfoTopBar(infoTopBar) {
|
2017-09-13 17:01:23 +00:00
|
|
|
height: infoLayerTopBarHeight;
|
|
|
|
back: infoLayerTopBarBack;
|
|
|
|
title: boxTitle;
|
2019-11-02 17:06:47 +00:00
|
|
|
titlePosition: boxTitlePosition;
|
2017-09-13 17:01:23 +00:00
|
|
|
bg: boxBg;
|
2017-11-23 14:58:00 +00:00
|
|
|
mediaCancel: infoLayerTopBarMediaCancel;
|
2017-10-20 16:19:42 +00:00
|
|
|
mediaActionsSkip: 6px;
|
|
|
|
mediaForward: infoLayerTopBarForward;
|
|
|
|
mediaDelete: infoLayerTopBarDelete;
|
2017-11-03 12:03:00 +00:00
|
|
|
search: infoTopBarSearch;
|
|
|
|
searchRow: infoTopBarSearchRow;
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
|
|
|
|
2017-11-07 15:12:54 +00:00
|
|
|
infoTopBarMenuPosition: point(-2px, 35px);
|
|
|
|
infoLayerTopBarMenuPosition: point(40px, 37px);
|
|
|
|
|
2017-10-04 17:15:08 +00:00
|
|
|
infoMinimalWidth: 324px;
|
2017-11-16 07:45:55 +00:00
|
|
|
infoDesiredWidth: 392px;
|
2017-09-13 17:01:23 +00:00
|
|
|
infoMinimalLayerMargin: 48px;
|
|
|
|
|
|
|
|
infoTabs: SettingsSlider(defaultTabsSlider) {
|
|
|
|
height: 55px;
|
|
|
|
barTop: 52px;
|
|
|
|
labelTop: 19px;
|
|
|
|
}
|
|
|
|
|
2018-02-06 14:46:00 +00:00
|
|
|
infoProfilePhotoInnerSize: 72px;
|
|
|
|
infoProfilePhotoSize: size(
|
|
|
|
infoProfilePhotoInnerSize,
|
|
|
|
infoProfilePhotoInnerSize);
|
2017-11-13 15:50:10 +00:00
|
|
|
infoProfilePhoto: UserpicButton(defaultUserpicButton) {
|
2018-02-06 14:46:00 +00:00
|
|
|
size: infoProfilePhotoSize;
|
|
|
|
photoSize: infoProfilePhotoInnerSize;
|
|
|
|
}
|
|
|
|
infoFeedProfilePhoto: FeedUserpicButton(defaultFeedUserpicButton) {
|
|
|
|
size: infoProfilePhotoSize;
|
|
|
|
innerSize: infoProfilePhotoInnerSize;
|
|
|
|
innerPart: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(35px, 35px);
|
|
|
|
photoSize: 35px;
|
|
|
|
}
|
|
|
|
|
2017-11-13 15:50:10 +00:00
|
|
|
}
|
2017-09-21 10:28:34 +00:00
|
|
|
infoProfilePhotoLeft: 19px;
|
|
|
|
infoProfilePhotoTop: 18px;
|
|
|
|
infoProfilePhotoBottom: 18px;
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-09-21 19:21:33 +00:00
|
|
|
infoProfileStatusLeft: 109px;
|
|
|
|
infoProfileStatusRight: 20px;
|
2017-09-21 10:28:34 +00:00
|
|
|
infoProfileStatusTop: 58px;
|
2017-09-21 19:21:33 +00:00
|
|
|
infoProfileStatusLabel: FlatLabel(defaultFlatLabel) {
|
2017-09-13 17:01:23 +00:00
|
|
|
maxHeight: 18px;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: normalFont;
|
|
|
|
linkFont: normalFont;
|
|
|
|
linkFontOver: normalFont;
|
|
|
|
}
|
2017-11-17 17:02:49 +00:00
|
|
|
}
|
|
|
|
infoProfileMegagroupStatusLabel: FlatLabel(infoProfileStatusLabel) {
|
|
|
|
style: defaultTextStyle;
|
2017-09-13 17:01:23 +00:00
|
|
|
palette: TextPalette(defaultTextPalette) {
|
2017-11-17 17:02:49 +00:00
|
|
|
linkFg: windowSubTextFg;
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-21 19:21:33 +00:00
|
|
|
infoProfileNameLeft: infoProfileStatusLeft;
|
|
|
|
infoProfileNameRight: infoProfileStatusRight;
|
|
|
|
infoProfileNameTop: 32px;
|
|
|
|
infoProfileNameLabel: FlatLabel(infoProfileStatusLabel) {
|
|
|
|
maxHeight: 24px;
|
|
|
|
textFg: windowBoldFg;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(16px semibold);
|
|
|
|
linkFont: font(16px semibold);
|
|
|
|
linkFontOver: font(16px semibold underline);
|
|
|
|
}
|
|
|
|
}
|
2017-11-06 14:13:56 +00:00
|
|
|
infoVerifiedCheckPosition: point(10px, 2px);
|
|
|
|
infoVerifiedCheck: icon {
|
|
|
|
{ "profile_verified_star", profileVerifiedCheckBg, point(0px, 0px) },
|
|
|
|
{ "profile_verified_check", profileVerifiedCheckFg, point(4px, 4px) }
|
|
|
|
};
|
2017-09-13 17:01:23 +00:00
|
|
|
|
|
|
|
infoProfileSkip: 12px;
|
|
|
|
|
2017-09-21 10:28:34 +00:00
|
|
|
infoProfileLabeledPadding: margins(79px, 9px, 30px, 7px);
|
2017-09-13 17:01:23 +00:00
|
|
|
infoProfileSeparatorPadding: margins(
|
2017-09-21 10:28:34 +00:00
|
|
|
77px,
|
2017-09-13 17:01:23 +00:00
|
|
|
infoProfileSkip,
|
|
|
|
0px,
|
|
|
|
infoProfileSkip);
|
|
|
|
|
|
|
|
infoIconFg: menuIconFg;
|
|
|
|
infoIconInformation: icon {{ "info_information", infoIconFg }};
|
2021-01-14 13:13:43 +00:00
|
|
|
infoIconMembers: icon {{ "info/edit/group_manage_members", infoIconFg, point(-2px, 0px) }};
|
2017-09-13 17:01:23 +00:00
|
|
|
infoIconNotifications: icon {{ "info_notifications", infoIconFg }};
|
|
|
|
infoIconActions: icon {{ "info_actions", infoIconFg }};
|
2017-09-21 19:21:33 +00:00
|
|
|
infoIconMediaPhoto: icon {{ "info_media_photo", infoIconFg }};
|
2017-10-20 17:54:51 +00:00
|
|
|
infoIconMediaVideo: icon {{ "info_media_video", infoIconFg }};
|
|
|
|
infoIconMediaFile: icon {{ "info_media_file", infoIconFg }};
|
2017-10-04 12:39:59 +00:00
|
|
|
infoIconMediaAudio: icon {{ "info_media_audio", infoIconFg }};
|
|
|
|
infoIconMediaLink: icon {{ "info_media_link", infoIconFg }};
|
|
|
|
infoIconMediaGroup: icon {{ "info_common_groups", infoIconFg }};
|
|
|
|
infoIconMediaVoice: icon {{ "info_media_voice", infoIconFg }};
|
|
|
|
infoIconMediaRound: icon {{ "info_media_round", infoIconFg }};
|
2021-01-14 13:13:43 +00:00
|
|
|
infoIconRecentActions: icon {{ "info/edit/group_manage_actions", infoIconFg, point(-2px, -1px) }};
|
|
|
|
infoIconAdministrators: icon {{ "info/edit/group_manage_admins", infoIconFg, point(-3px, 0px) }};
|
2019-03-17 07:00:58 +00:00
|
|
|
infoIconBlacklist: icon {{ "info_blacklist", infoIconFg, point(-2px, -2px) }};
|
2021-01-14 13:13:43 +00:00
|
|
|
infoIconPermissions: icon {{ "info/edit/group_manage_permissions", infoIconFg, point(0px, -2px) }};
|
|
|
|
infoIconInviteLinks: icon {{ "info/edit/group_manage_links", infoIconFg, point(-2px, 0px) }};
|
2017-09-21 19:21:33 +00:00
|
|
|
infoInformationIconPosition: point(25px, 12px);
|
|
|
|
infoNotificationsIconPosition: point(20px, 5px);
|
|
|
|
infoSharedMediaIconPosition: point(20px, 24px);
|
2017-10-04 12:39:59 +00:00
|
|
|
infoSharedMediaButtonIconPosition: point(20px, 3px);
|
2017-09-26 19:42:58 +00:00
|
|
|
infoIconPosition: point(20px, 15px);
|
2017-11-10 19:19:43 +00:00
|
|
|
infoChannelMembersIconPosition: point(20px, 24px);
|
2017-09-21 10:28:34 +00:00
|
|
|
infoLabeledOneLine: FlatLabel(defaultFlatLabel) {
|
|
|
|
maxHeight: 20px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 19px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
infoLabelSkip: 2px;
|
|
|
|
infoLabel: FlatLabel(infoLabeledOneLine) {
|
2017-09-20 19:44:22 +00:00
|
|
|
textFg: windowSubTextFg;
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
2017-09-21 10:28:34 +00:00
|
|
|
infoLabeled: FlatLabel(infoLabeledOneLine) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 180px;
|
2017-09-21 10:28:34 +00:00
|
|
|
maxHeight: 0px;
|
2017-09-20 19:44:22 +00:00
|
|
|
margin: margins(5px, 5px, 5px, 5px);
|
|
|
|
}
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-09-25 16:06:53 +00:00
|
|
|
infoBlockHeaderLabel: FlatLabel(infoProfileStatusLabel) {
|
|
|
|
textFg: windowBoldFg;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: semiboldFont;
|
|
|
|
linkFont: semiboldFont;
|
|
|
|
linkFontOver: semiboldFont;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
infoBlockHeaderPosition: point(79px, 22px);
|
|
|
|
|
2017-09-21 10:28:34 +00:00
|
|
|
infoProfileToggle: Toggle(defaultToggle) {
|
|
|
|
untoggledFg: menuIconFg;
|
|
|
|
}
|
|
|
|
infoProfileToggleOver: Toggle(infoProfileToggle) {
|
|
|
|
untoggledFg: menuIconFgOver;
|
|
|
|
}
|
2020-11-29 18:26:49 +00:00
|
|
|
infoProfileButton: SettingsButton(defaultSettingsButton) {
|
2017-09-13 17:01:23 +00:00
|
|
|
textFg: windowBoldFg;
|
|
|
|
textFgOver: windowBoldFgOver;
|
|
|
|
textBg: windowBg;
|
|
|
|
textBgOver: windowBgOver;
|
|
|
|
|
2017-11-12 09:54:18 +00:00
|
|
|
font: normalFont;
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-09-21 10:28:34 +00:00
|
|
|
height: 20px;
|
|
|
|
padding: margins(79px, 10px, 8px, 8px);
|
2017-09-13 17:01:23 +00:00
|
|
|
|
2017-09-21 10:28:34 +00:00
|
|
|
toggle: infoProfileToggle;
|
|
|
|
toggleOver: infoProfileToggleOver;
|
2020-04-29 08:08:34 +00:00
|
|
|
toggleSkip: 22px;
|
2017-09-13 17:01:23 +00:00
|
|
|
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
infoNotificationsButton: SettingsButton(infoProfileButton) {
|
2017-09-21 10:28:34 +00:00
|
|
|
padding: margins(79px, 13px, 8px, 9px);
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
infoMainButton: SettingsButton(infoProfileButton) {
|
2017-09-13 17:01:23 +00:00
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
2017-11-16 15:24:01 +00:00
|
|
|
font: semiboldFont;
|
2017-09-13 17:01:23 +00:00
|
|
|
}
|
2017-09-21 19:21:33 +00:00
|
|
|
infoSharedMediaCoverHeight: 62px;
|
|
|
|
infoSharedMediaButton: infoProfileButton;
|
|
|
|
infoSharedMediaBottomSkip: 12px;
|
2017-09-25 16:06:53 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
infoBlockButton: SettingsButton(infoProfileButton) {
|
2017-09-26 19:42:58 +00:00
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
infoCreateLinkedChatButton: SettingsButton(infoMainButton) {
|
2019-05-30 10:54:10 +00:00
|
|
|
padding: margins(74px, 10px, 8px, 8px);
|
2019-05-24 10:32:43 +00:00
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
infoUnlinkChatButton: SettingsButton(infoCreateLinkedChatButton) {
|
2019-05-24 10:32:43 +00:00
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
}
|
2017-09-26 19:42:58 +00:00
|
|
|
infoBlockButtonSkip: 8px;
|
|
|
|
|
2017-09-25 16:06:53 +00:00
|
|
|
infoMembersHeader: 56px;
|
2017-11-17 15:34:51 +00:00
|
|
|
infoMembersHeaderPaddingBottom: 6px;
|
2017-09-26 17:57:01 +00:00
|
|
|
infoMembersList: PeerList(defaultPeerList) {
|
|
|
|
item: PeerListItem(defaultPeerListItem) {
|
|
|
|
photoPosition: point(18px, 6px);
|
|
|
|
namePosition: point(79px, 11px);
|
|
|
|
statusPosition: point(79px, 31px);
|
|
|
|
}
|
2017-09-25 16:06:53 +00:00
|
|
|
}
|
2017-11-17 15:34:51 +00:00
|
|
|
infoMembersButtonPosition: point(12px, 0px);
|
|
|
|
infoMembersButtonIconPosition: point(3px, 3px);
|
2017-09-25 16:06:53 +00:00
|
|
|
infoMembersButton: IconButton(defaultIconButton) {
|
2017-11-17 15:34:51 +00:00
|
|
|
width: 38px;
|
|
|
|
height: 38px;
|
2019-05-23 12:10:43 +00:00
|
|
|
iconPosition: point(-1px, -1px);
|
2017-09-25 16:06:53 +00:00
|
|
|
rippleAreaPosition: point(0px, 0px);
|
2017-11-17 15:34:51 +00:00
|
|
|
rippleAreaSize: 38px;
|
|
|
|
ripple: defaultRippleAnimation;
|
2017-09-25 16:06:53 +00:00
|
|
|
}
|
|
|
|
infoMembersAddMember: IconButton(infoMembersButton) {
|
|
|
|
icon: icon {{ "info_add_member", menuIconFg }};
|
|
|
|
iconOver: icon {{ "info_add_member", menuIconFgOver }};
|
|
|
|
}
|
|
|
|
infoMembersSearch: IconButton(infoMembersButton) {
|
|
|
|
icon: icon {{
|
|
|
|
"top_bar_search",
|
|
|
|
menuIconFg,
|
|
|
|
infoMembersButtonIconPosition
|
|
|
|
}};
|
|
|
|
iconOver: icon {{
|
|
|
|
"top_bar_search",
|
|
|
|
menuIconFgOver,
|
|
|
|
infoMembersButtonIconPosition
|
|
|
|
}};
|
|
|
|
iconPosition: point(0px, 0px);
|
|
|
|
}
|
|
|
|
infoMembersSearchActive: icon {
|
|
|
|
{ size(44px, 44px), windowBg },
|
|
|
|
{
|
|
|
|
"top_bar_search",
|
|
|
|
menuIconFgOver,
|
|
|
|
infoMembersButtonIconPosition
|
|
|
|
}
|
|
|
|
};
|
|
|
|
infoMembersSearchActiveLayer: icon {
|
|
|
|
{ size(44px, 44px), boxBg },
|
|
|
|
{
|
|
|
|
"top_bar_search",
|
|
|
|
menuIconFgOver,
|
|
|
|
infoMembersButtonIconPosition
|
|
|
|
}
|
|
|
|
};
|
2020-11-29 18:26:49 +00:00
|
|
|
infoMembersSearchField: InputField(defaultMultiSelectSearchField) {
|
2017-09-25 16:06:53 +00:00
|
|
|
}
|
|
|
|
infoMembersCancelSearch: CrossButton {
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
|
|
|
|
cross: CrossAnimation {
|
|
|
|
size: 44px;
|
|
|
|
skip: 16px;
|
|
|
|
stroke: 2px;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
crossFg: menuIconFg;
|
|
|
|
crossFgOver: menuIconFgOver;
|
|
|
|
crossPosition: point(0px, 0px);
|
|
|
|
|
|
|
|
duration: 150;
|
|
|
|
loadingPeriod: 1000;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
infoMembersSearchTop: 15px;
|
2017-10-04 17:15:08 +00:00
|
|
|
|
2018-02-22 13:50:56 +00:00
|
|
|
infoChannelsAddChannel: IconButton(infoMembersButton) {
|
|
|
|
icon: icon {{ "settings_edit_name", menuIconFg, point(9px, 9px) }};
|
|
|
|
iconOver: icon {{ "settings_edit_name", menuIconFgOver, point(9px, 9px) }};
|
|
|
|
}
|
|
|
|
|
2017-11-07 17:53:00 +00:00
|
|
|
infoMembersCreatorIcon: icon {{
|
|
|
|
"profile_admin_star",
|
|
|
|
profileAdminStartFg,
|
|
|
|
point(4px, 3px)
|
|
|
|
}};
|
2017-11-08 16:45:30 +00:00
|
|
|
infoMembersCreatorIconOver: icon {{
|
|
|
|
"profile_admin_star",
|
|
|
|
profileAdminStarFgOver,
|
|
|
|
point(4px, 3px)
|
|
|
|
}};
|
2017-11-07 17:53:00 +00:00
|
|
|
infoMembersAdminIcon: icon {{
|
|
|
|
"profile_admin_star",
|
|
|
|
profileOtherAdminStarFg,
|
|
|
|
point(4px, 3px)
|
|
|
|
}};
|
2017-11-08 16:45:30 +00:00
|
|
|
infoMembersAdminIconOver: icon {{
|
|
|
|
"profile_admin_star",
|
|
|
|
profileOtherAdminStarFgOver,
|
|
|
|
point(4px, 3px)
|
|
|
|
}};
|
2017-11-07 17:53:00 +00:00
|
|
|
infoMembersRemoveIcon: icon {{
|
|
|
|
"simple_close",
|
|
|
|
menuIconFg
|
|
|
|
}};
|
|
|
|
infoMembersRemoveIconOver: icon {{
|
|
|
|
"simple_close",
|
|
|
|
menuIconFgOver
|
|
|
|
}};
|
|
|
|
infoMembersAdminIconMarigns: margins(10px, 18px, 10px, 10px);
|
|
|
|
infoMembersRemoveIconMargins: margins(10px, 12px, 12px, 10px);
|
|
|
|
|
2017-10-04 17:15:08 +00:00
|
|
|
infoMediaHeaderStyle: TextStyle(semiboldTextStyle) {
|
|
|
|
}
|
|
|
|
infoMediaHeaderHeight: 28px;
|
|
|
|
infoMediaHeaderPosition: point(14px, 6px);
|
2017-11-15 04:47:43 +00:00
|
|
|
infoMediaSkip: 5px;
|
2017-10-04 17:15:08 +00:00
|
|
|
infoMediaMargin: margins(0px, 6px, 0px, 2px);
|
2017-11-15 04:47:43 +00:00
|
|
|
infoMediaMinGridSize: 90px;
|
2017-10-10 20:39:44 +00:00
|
|
|
|
|
|
|
infoCommonGroupsMargin: margins(0px, 13px, 0px, 2px);
|
2018-02-22 13:50:56 +00:00
|
|
|
infoCommonGroupsListItem: PeerListItem(defaultPeerListItem) {
|
|
|
|
height: 52px;
|
|
|
|
photoSize: 40px;
|
|
|
|
photoPosition: point(16px, 6px);
|
|
|
|
namePosition: point(71px, 15px);
|
|
|
|
nameStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px semibold);
|
|
|
|
linkFont: font(14px semibold);
|
|
|
|
linkFontOver: font(14px semibold);
|
|
|
|
}
|
|
|
|
statusPosition: point(79px, 31px);
|
|
|
|
}
|
2017-10-10 20:39:44 +00:00
|
|
|
infoCommonGroupsList: PeerList(infoMembersList) {
|
2018-02-22 13:50:56 +00:00
|
|
|
item: infoCommonGroupsListItem;
|
|
|
|
}
|
|
|
|
infoChannelsList: PeerList(infoCommonGroupsList) {
|
|
|
|
item: PeerListItem(infoCommonGroupsListItem) {
|
|
|
|
photoPosition: point(18px, 6px);
|
|
|
|
namePosition: point(79px, 15px);
|
2017-10-10 20:39:44 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-08 16:45:30 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
managePeerButton: SettingsCountButton {
|
|
|
|
button: SettingsButton(infoProfileButton) {
|
2019-01-08 10:54:18 +00:00
|
|
|
padding: margins(76px, 12px, 76px, 10px);
|
|
|
|
}
|
|
|
|
iconPosition: point(20px, 5px);
|
|
|
|
label: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowActiveTextFg;
|
|
|
|
}
|
|
|
|
labelPosition: point(25px, 12px);
|
2017-11-08 16:45:30 +00:00
|
|
|
}
|
2019-03-15 21:26:01 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
peerPermissionsButton: SettingsCountButton(managePeerButton) {
|
|
|
|
button: SettingsButton(infoProfileButton) {
|
2019-01-10 06:26:08 +00:00
|
|
|
padding: margins(24px, 12px, 24px, 10px);
|
2019-01-08 10:54:18 +00:00
|
|
|
}
|
|
|
|
iconPosition: point(24px, 5px);
|
2017-11-08 16:45:30 +00:00
|
|
|
}
|
2017-11-10 15:45:10 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
manageGroupButton: SettingsCountButton(managePeerButton) {
|
|
|
|
button: SettingsButton(infoProfileButton) {
|
2019-03-15 21:26:01 +00:00
|
|
|
padding: margins(72px, 10px, 24px, 8px);
|
2019-03-15 08:20:12 +00:00
|
|
|
}
|
2019-03-15 21:26:01 +00:00
|
|
|
labelPosition: point(22px, 12px);
|
2019-03-24 07:28:23 +00:00
|
|
|
iconPosition: point(20px, 4px);
|
2019-03-15 08:20:12 +00:00
|
|
|
}
|
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
manageGroupTopButtonWithText: SettingsCountButton(manageGroupButton) {
|
|
|
|
button: SettingsButton(infoProfileButton) {
|
2019-03-15 21:26:01 +00:00
|
|
|
padding: margins(22px, 10px, 24px, 8px);
|
|
|
|
}
|
2019-05-24 10:32:43 +00:00
|
|
|
labelPosition: point(22px, 10px);
|
2019-03-15 21:26:01 +00:00
|
|
|
iconPosition: point(0px, 0px);
|
2019-03-15 08:20:12 +00:00
|
|
|
}
|
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
manageDeleteGroupButton: SettingsCountButton(manageGroupTopButtonWithText) {
|
|
|
|
button: SettingsButton(infoProfileButton) {
|
2019-03-19 14:45:28 +00:00
|
|
|
padding: margins(25px, 11px, 24px, 8px);
|
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFg;
|
|
|
|
}
|
|
|
|
labelPosition: point(22px, 11px);
|
|
|
|
iconPosition: point(0px, 0px);
|
|
|
|
}
|
|
|
|
|
2019-03-17 07:00:58 +00:00
|
|
|
editPeerSkip: 7px;
|
2019-03-15 21:26:01 +00:00
|
|
|
editPeerHistoryVisibilityMargins: margins(15px, 0px, 20px, 16px);
|
2019-03-15 08:20:12 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
terminateSessionsButton: SettingsButton(infoBlockButton) {
|
2020-04-29 08:08:34 +00:00
|
|
|
padding: margins(22px, 12px, 22px, 10px);
|
2018-11-20 10:03:44 +00:00
|
|
|
}
|
|
|
|
|
2017-11-14 17:22:44 +00:00
|
|
|
infoEmptyFg: windowSubTextFg;
|
|
|
|
infoEmptyPhoto: icon {{ "info_media_photo_empty", infoEmptyFg }};
|
|
|
|
infoEmptyVideo: icon {{ "info_media_video_empty", infoEmptyFg }};
|
|
|
|
infoEmptyAudio: icon {{ "info_media_audio_empty", infoEmptyFg }};
|
|
|
|
infoEmptyFile: icon {{ "info_media_file_empty", infoEmptyFg }};
|
|
|
|
infoEmptyVoice: icon {{ "info_media_voice_empty", infoEmptyFg }};
|
|
|
|
infoEmptyLink: icon {{ "info_media_link_empty", infoEmptyFg }};
|
|
|
|
infoEmptyIconTop: 120px;
|
|
|
|
infoEmptyLabelTop: 40px;
|
|
|
|
infoEmptyLabelSkip: 20px;
|
|
|
|
infoEmptyLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 220px;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
|
2019-03-17 17:42:33 +00:00
|
|
|
editPeerBottomButtonsLayoutMargins: margins(0px, 7px, 0px, 0px);
|
2019-03-15 21:26:01 +00:00
|
|
|
editPeerTopButtonsLayoutMargins: margins(0px, 12px, 0px, 6px);
|
|
|
|
|
2019-03-17 17:42:33 +00:00
|
|
|
editPeerTopButtonsLayoutSkip: 13px;
|
|
|
|
editPeerTopButtonsLayoutSkipToBottom: 12px;
|
|
|
|
|
2019-03-18 18:12:08 +00:00
|
|
|
editPeerTopButtonsLayoutSkipCustomTop: 14px;
|
|
|
|
editPeerTopButtonsLayoutSkipCustomBottom: 11px;
|
|
|
|
|
2019-03-15 21:26:01 +00:00
|
|
|
editPeerHistoryVisibilityTopSkip: 8px;
|
2019-03-15 08:20:12 +00:00
|
|
|
|
2020-04-29 08:08:34 +00:00
|
|
|
editPeerDeleteButtonMargins: margins(25px, 11px, 22px, 16px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerDeleteButton: sessionTerminateAllButton;
|
2020-04-29 08:08:34 +00:00
|
|
|
editPeerPhotoMargins: margins(22px, 16px, 22px, 8px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerTitle: defaultInputField;
|
2020-04-29 08:08:34 +00:00
|
|
|
editPeerTitleMargins: margins(27px, 21px, 22px, 8px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerDescription: newGroupDescription;
|
2020-04-29 08:08:34 +00:00
|
|
|
editPeerDescriptionMargins: margins(22px, 5px, 22px, 16px);
|
|
|
|
editPeerPrivaciesMargins: margins(15px, 7px, 22px, 0px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerPrivacyTopSkip: 10px;
|
|
|
|
editPeerPrivacyBottomSkip: 16px;
|
|
|
|
editPeerPrivacyLabel: FlatLabel(defaultFlatLabel) {
|
2019-03-15 21:26:01 +00:00
|
|
|
minWidth: 220px;
|
2017-11-10 15:45:10 +00:00
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2019-03-17 17:42:33 +00:00
|
|
|
editPeerPrivacyBoxCheckbox: Checkbox(defaultBoxCheckbox) {
|
|
|
|
margin: margins(0px, 8px, 0px, 8px);
|
|
|
|
style: boxTextStyle;
|
|
|
|
}
|
2019-03-16 16:58:32 +00:00
|
|
|
editPeerHistoryVisibilityLabelMargins: margins(34px, 0px, 48px, 0px);
|
2019-03-17 17:42:33 +00:00
|
|
|
editPeerPrivacyLabelMargins: margins(42px, 0px, 34px, 0px);
|
|
|
|
editPeerPreHistoryLabelMargins: margins(34px, 0px, 34px, 0px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerSectionLabel: FlatLabel(boxTitle) {
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(15px semibold);
|
|
|
|
linkFont: font(15px semibold);
|
|
|
|
linkFontOver: font(15px semibold underline);
|
|
|
|
}
|
|
|
|
}
|
2021-01-15 11:42:26 +00:00
|
|
|
editPeerUsernameTitleLabelMargins: margins(22px, 17px, 22px, 10px);
|
|
|
|
editPeerUsernameFieldMargins: margins(22px, 0px, 22px, 20px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerUsername: setupChannelLink;
|
|
|
|
editPeerUsernameSkip: 8px;
|
|
|
|
editPeerInviteLink: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 1px; // for break everywhere
|
|
|
|
style: boxTextStyle;
|
|
|
|
}
|
|
|
|
editPeerInviteLinkButton: boxLinkButton;
|
|
|
|
editPeerUsernameGood: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: boxTextFgGood;
|
|
|
|
style: boxTextStyle;
|
|
|
|
}
|
|
|
|
editPeerUsernameError: FlatLabel(editPeerUsernameGood) {
|
|
|
|
textFg: boxTextFgError;
|
|
|
|
}
|
2020-04-29 08:08:34 +00:00
|
|
|
editPeerUsernamePosition: point(22px, 18px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerInviteLinkSkip: 10px;
|
2020-04-29 08:08:34 +00:00
|
|
|
editPeerInvitesMargins: margins(22px, 17px, 22px, 16px);
|
2017-11-10 15:45:10 +00:00
|
|
|
editPeerInvitesTopSkip: 10px;
|
|
|
|
editPeerInvitesSkip: 10px;
|
2019-03-17 17:42:33 +00:00
|
|
|
editPeerInviteLinkBoxBottomSkip: 15px;
|
2017-11-16 15:24:01 +00:00
|
|
|
|
|
|
|
historyTopBarBack: IconButton(infoTopBarBack) {
|
|
|
|
width: 52px;
|
|
|
|
}
|
2017-12-07 15:01:41 +00:00
|
|
|
topBarHeight: 54px;
|
|
|
|
topBarMenuPosition: point(-2px, 35px);
|
|
|
|
topBarDuration: 200;
|
|
|
|
topBarBackward: icon {{ "title_back", menuIconFg }};
|
|
|
|
topBarForwardAlpha: 0.6;
|
|
|
|
topBarBack: icon {{ "title_back", lightButtonFg }};
|
|
|
|
topBarArrowPadding: margins(39px, 8px, 17px, 8px);
|
|
|
|
topBarMinPadding: 5px;
|
|
|
|
topBarButton: RoundButton(defaultLightButton) {
|
|
|
|
width: -18px;
|
|
|
|
padding: margins(0px, 10px, 12px, 10px);
|
|
|
|
}
|
|
|
|
topBarClearButton: RoundButton(defaultLightButton) {
|
|
|
|
width: -18px;
|
|
|
|
}
|
|
|
|
topBarSearch: IconButton {
|
|
|
|
width: 40px;
|
|
|
|
height: topBarHeight;
|
|
|
|
|
|
|
|
icon: icon {{ "top_bar_search", menuIconFg }};
|
|
|
|
iconOver: icon {{ "top_bar_search", menuIconFgOver }};
|
|
|
|
iconPosition: point(4px, 11px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(0px, 7px);
|
|
|
|
rippleAreaSize: 40px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2021-02-15 17:37:22 +00:00
|
|
|
topBarCloseChoose: IconButton(topBarSearch) {
|
|
|
|
width: 56px;
|
|
|
|
icon: icon {{ "info_close", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "info_close", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(10px, -1px);
|
|
|
|
rippleAreaPosition: point(7px, 7px);
|
|
|
|
}
|
2020-12-14 15:56:01 +00:00
|
|
|
topBarSkip: -5px;
|
2017-12-07 15:01:41 +00:00
|
|
|
topBarCallSkip: -1px;
|
|
|
|
topBarMenuToggle: IconButton(topBarSearch) {
|
|
|
|
width: 44px;
|
|
|
|
|
2019-09-26 10:55:35 +00:00
|
|
|
icon: menuToggleIcon;
|
|
|
|
iconOver: menuToggleIconOver;
|
2017-12-07 15:01:41 +00:00
|
|
|
iconPosition: point(16px, 17px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(0px, 7px);
|
|
|
|
}
|
|
|
|
topBarCall: IconButton(topBarSearch) {
|
|
|
|
icon: icon {{ "top_bar_call", menuIconFg }};
|
|
|
|
iconOver: icon {{ "top_bar_call", menuIconFgOver }};
|
|
|
|
}
|
2020-12-07 13:15:45 +00:00
|
|
|
topBarGroupCall: IconButton(topBarSearch) {
|
|
|
|
icon: icon {{ "top_bar_group_call", menuIconFg }};
|
|
|
|
iconOver: icon {{ "top_bar_group_call", menuIconFgOver }};
|
2020-12-14 15:56:01 +00:00
|
|
|
iconPosition: point(8px, 16px);
|
2020-12-07 13:15:45 +00:00
|
|
|
}
|
2017-12-07 15:01:41 +00:00
|
|
|
topBarInfo: IconButton(topBarSearch) {
|
|
|
|
icon: icon {{ "top_bar_profile", menuIconFg }};
|
|
|
|
iconOver: icon {{ "top_bar_profile", menuIconFgOver }};
|
|
|
|
}
|
|
|
|
topBarInfoActive: icon {{ "top_bar_profile", windowActiveTextFg }};
|
|
|
|
topBarActionSkip: 10px;
|
|
|
|
|
2018-01-30 14:31:25 +00:00
|
|
|
topBarInfoButtonSize: size(52px, topBarHeight);
|
|
|
|
topBarInfoButtonInnerSize: 42px;
|
|
|
|
topBarInfoButtonInnerPosition: point(2px, -1px);
|
2017-12-07 15:01:41 +00:00
|
|
|
topBarInfoButton: UserpicButton(defaultUserpicButton) {
|
2018-01-30 14:31:25 +00:00
|
|
|
size: topBarInfoButtonSize;
|
|
|
|
photoSize: topBarInfoButtonInnerSize;
|
|
|
|
photoPosition: topBarInfoButtonInnerPosition;
|
|
|
|
}
|
|
|
|
topBarFeedInfoButton: FeedUserpicButton(defaultFeedUserpicButton) {
|
|
|
|
size: topBarInfoButtonSize;
|
|
|
|
innerSize: topBarInfoButtonInnerSize;
|
|
|
|
innerPosition: topBarInfoButtonInnerPosition;
|
|
|
|
innerPart: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(20px, 20px);
|
|
|
|
photoSize: 20px;
|
|
|
|
}
|
2017-12-07 15:01:41 +00:00
|
|
|
}
|
2018-05-10 10:16:21 +00:00
|
|
|
topBarConnectingPosition: point(2px, 5px);
|
|
|
|
topBarConnectingSkip: 6px;
|
|
|
|
topBarConnectingAnimation: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
|
|
|
|
color: windowSubTextFg;
|
|
|
|
thickness: 1px;
|
|
|
|
size: size(8px, 8px);
|
|
|
|
}
|
2018-02-08 09:20:14 +00:00
|
|
|
|
|
|
|
infoFeedLeaveIconMargins: margins(10px, 12px, 20px, 10px);
|
2018-06-02 09:59:19 +00:00
|
|
|
|
|
|
|
separatePanelBorderCacheSize: 60px;
|
|
|
|
separatePanelTitleHeight: 62px;
|
|
|
|
separatePanelClose: IconButton(boxTitleClose) {
|
|
|
|
width: 60px;
|
|
|
|
height: 60px;
|
|
|
|
|
|
|
|
rippleAreaPosition: point(8px, 8px);
|
|
|
|
rippleAreaSize: 44px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
separatePanelTitleFont: font(18px semibold);
|
|
|
|
separatePanelTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: boxTitleFg;
|
|
|
|
maxHeight: 26px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: separatePanelTitleFont;
|
|
|
|
linkFont: separatePanelTitleFont;
|
|
|
|
linkFontOver: font(18px semibold underline);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
separatePanelTitleTop: 18px;
|
|
|
|
separatePanelTitleLeft: 22px;
|
|
|
|
separatePanelTitleSkip: 0px;
|
|
|
|
separatePanelBack: IconButton(separatePanelClose) {
|
|
|
|
icon: infoTopBarBackIcon;
|
|
|
|
iconOver: infoTopBarBackIconOver;
|
|
|
|
}
|
2021-01-15 11:42:26 +00:00
|
|
|
|
|
|
|
inviteLinkField: FlatInput(defaultFlatInput) {
|
|
|
|
font: font(fsize);
|
|
|
|
|
|
|
|
height: 44px;
|
|
|
|
textMrg: margins(14px, 12px, 36px, 9px);
|
|
|
|
}
|
2021-01-18 16:13:58 +00:00
|
|
|
inviteLinkThreeDotsIcon: icon {{ "info/edit/dotsmini", dialogsMenuIconFg }};
|
|
|
|
inviteLinkThreeDotsIconOver: icon {{ "info/edit/dotsmini", dialogsMenuIconFgOver }};
|
2021-01-15 11:42:26 +00:00
|
|
|
inviteLinkThreeDots: IconButton(defaultIconButton) {
|
|
|
|
width: 36px;
|
|
|
|
height: 44px;
|
|
|
|
|
2021-01-18 16:13:58 +00:00
|
|
|
icon: inviteLinkThreeDotsIcon;
|
|
|
|
iconOver: inviteLinkThreeDotsIconOver;
|
2021-01-15 11:42:26 +00:00
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
|
|
|
|
rippleAreaSize: 0px;
|
|
|
|
}
|
2021-01-15 12:57:42 +00:00
|
|
|
inviteLinkFieldPadding: margins(22px, 7px, 22px, 14px);
|
|
|
|
|
|
|
|
inviteLinkButton: RoundButton(defaultActiveButton) {
|
|
|
|
height: 36px;
|
|
|
|
textTop: 9px;
|
|
|
|
}
|
|
|
|
inviteLinkButtonsPadding: margins(22px, 0px, 22px, 0px);
|
|
|
|
inviteLinkButtonsSkip: 10px;
|
|
|
|
inviteLinkCopy: RoundButton(inviteLinkButton) {
|
|
|
|
icon: icon {{ "info/edit/links_copy", activeButtonFg }};
|
|
|
|
iconOver: icon {{ "info/edit/links_copy", activeButtonFgOver }};
|
|
|
|
iconPosition: point(-1px, 2px);
|
|
|
|
}
|
|
|
|
inviteLinkShare: RoundButton(inviteLinkCopy) {
|
|
|
|
icon: icon {{ "info/edit/links_share", activeButtonFg }};
|
|
|
|
iconOver: icon {{ "info/edit/links_share", activeButtonFgOver }};
|
|
|
|
}
|
2021-02-09 17:03:05 +00:00
|
|
|
inviteLinkReactivate: RoundButton(inviteLinkCopy) {
|
|
|
|
icon: icon {{ "info/edit/links_reactivate", activeButtonFg }};
|
|
|
|
iconOver: icon {{ "info/edit/links_reactivate", activeButtonFgOver }};
|
|
|
|
}
|
2021-02-10 12:14:53 +00:00
|
|
|
inviteLinkDelete: RoundButton(inviteLinkCopy) {
|
|
|
|
icon: icon {{ "info/edit/links_delete", activeButtonFg }};
|
|
|
|
iconOver: icon {{ "info/edit/links_delete", activeButtonFgOver }};
|
|
|
|
}
|
2021-01-15 15:27:34 +00:00
|
|
|
inviteLinkUserpics: GroupCallUserpics {
|
|
|
|
size: 28px;
|
|
|
|
shift: 6px;
|
|
|
|
stroke: 2px;
|
|
|
|
align: align(left);
|
|
|
|
}
|
|
|
|
inviteLinkUserpicsSkip: 8px;
|
|
|
|
inviteLinkJoinedFont: font(14px);
|
2021-01-15 16:13:45 +00:00
|
|
|
inviteLinkJoinedRowPadding: margins(0px, 18px, 0px, 8px);
|
2021-01-18 16:13:58 +00:00
|
|
|
|
2021-02-09 17:03:05 +00:00
|
|
|
inviteLinkCreateSkip: 10px;
|
2021-01-18 16:13:58 +00:00
|
|
|
inviteLinkCreate: SettingsButton(defaultSettingsButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
|
|
|
textBg: windowBg;
|
|
|
|
textBgOver: windowBgOver;
|
|
|
|
|
|
|
|
font: semiboldFont;
|
|
|
|
|
|
|
|
height: 20px;
|
2021-02-09 17:03:05 +00:00
|
|
|
padding: margins(60px, 7px, 12px, 5px);
|
2021-01-18 16:13:58 +00:00
|
|
|
|
|
|
|
toggle: infoProfileToggle;
|
|
|
|
toggleOver: infoProfileToggleOver;
|
|
|
|
toggleSkip: 22px;
|
|
|
|
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
inviteLinkCreateIcon: icon {{ "info/edit/roundbtn_plus", windowFgActive }};
|
2021-02-09 17:03:05 +00:00
|
|
|
inviteLinkCreateIconSize: 18px;
|
2021-01-18 16:13:58 +00:00
|
|
|
inviteLinkListItem: PeerListItem(defaultPeerListItem) {
|
|
|
|
button: OutlineButton(defaultPeerListButton) {
|
|
|
|
font: normalFont;
|
|
|
|
padding: margins(11px, 5px, 11px, 5px);
|
|
|
|
}
|
|
|
|
height: 52px;
|
2021-02-09 17:03:05 +00:00
|
|
|
photoPosition: point(9px, 4px);
|
|
|
|
namePosition: point(60px, 6px);
|
|
|
|
statusPosition: point(60px, 26px);
|
|
|
|
photoSize: 44px;
|
2021-01-18 16:13:58 +00:00
|
|
|
}
|
|
|
|
inviteLinkList: PeerList(defaultPeerList) {
|
|
|
|
item: inviteLinkListItem;
|
2021-02-09 17:03:05 +00:00
|
|
|
padding: margins(0px, 4px, 0px, 0px);
|
|
|
|
}
|
|
|
|
inviteLinkAdminsList: PeerList(inviteLinkList) {
|
|
|
|
item: PeerListItem(inviteLinkListItem) {
|
|
|
|
photoPosition: point(16px, 9px);
|
|
|
|
namePosition: point(62px, 6px);
|
|
|
|
statusPosition: point(62px, 26px);
|
|
|
|
photoSize: 34px;
|
|
|
|
}
|
|
|
|
padding: margins(0px, 5px, 0px, 6px);
|
2021-02-09 08:21:28 +00:00
|
|
|
}
|
2021-01-18 16:13:58 +00:00
|
|
|
inviteLinkIconSkip: 7px;
|
|
|
|
inviteLinkIconStroke: 2px;
|
|
|
|
inviteLinkIcon: icon {{ "info/edit/links_link", mediaviewFileExtFg }};
|
2021-02-09 17:03:05 +00:00
|
|
|
inviteLinkRevokedIcon: icon {{ "info/edit/links_revoked", mediaviewFileExtFg }};
|
2021-01-19 10:26:00 +00:00
|
|
|
inviteLinkThreeDotsSkip: 12px;
|
2021-02-09 17:03:05 +00:00
|
|
|
inviteLinkRevokedTitlePadding: margins(22px, 16px, 10px, 4px);
|
2021-01-19 06:22:25 +00:00
|
|
|
inviteLinkLimitMargin: margins(22px, 8px, 22px, 8px);
|
2021-02-12 15:07:41 +00:00
|
|
|
|
2021-02-23 14:47:43 +00:00
|
|
|
inviteLinkQrPixel: 8px;
|
|
|
|
inviteLinkQrSkip: 24px;
|
|
|
|
inviteLinkQrMargin: margins(0px, 0px, 0px, 13px);
|
|
|
|
inviteLinkQrValuePadding: margins(22px, 0px, 22px, 12px);
|
|
|
|
|
2021-02-12 15:07:41 +00:00
|
|
|
infoAboutGigagroup: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 274px;
|
|
|
|
}
|
2021-05-23 00:00:24 +00:00
|
|
|
|
|
|
|
infoScrollDateHideTimeout: historyScrollDateHideTimeout;
|
|
|
|
infoDateFadeDuration: historyDateFadeDuration;
|