2016-07-08 16:59:46 +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-07-08 16:59:46 +00:00
|
|
|
*/
|
|
|
|
using "basic.style";
|
2016-11-04 11:14:47 +00:00
|
|
|
|
2016-10-20 11:34:48 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-10-31 12:29:26 +00:00
|
|
|
using "intro/intro.style";
|
2016-07-08 16:59:46 +00:00
|
|
|
|
2016-11-18 13:34:58 +00:00
|
|
|
boxDuration: 200;
|
2016-12-13 17:07:56 +00:00
|
|
|
boxRadius: 3px;
|
2016-11-18 13:34:58 +00:00
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
boxButtonFont: font(boxFontSize semibold);
|
2016-12-13 17:07:56 +00:00
|
|
|
defaultBoxButton: RoundButton(defaultLightButton) {
|
2016-11-15 11:56:49 +00:00
|
|
|
width: -24px;
|
|
|
|
height: 36px;
|
|
|
|
font: boxButtonFont;
|
|
|
|
}
|
|
|
|
|
2016-12-31 15:19:22 +00:00
|
|
|
boxTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(boxFontSize);
|
|
|
|
linkFont: font(boxFontSize);
|
|
|
|
linkFontOver: font(boxFontSize underline);
|
|
|
|
}
|
|
|
|
|
|
|
|
boxLabelStyle: TextStyle(boxTextStyle) {
|
|
|
|
lineHeight: 22px;
|
|
|
|
}
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
attentionBoxButton: RoundButton(defaultBoxButton) {
|
2016-11-16 16:04:25 +00:00
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
textBgOver: attentionButtonBgOver;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
2016-11-16 16:04:25 +00:00
|
|
|
color: attentionButtonBgRipple;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultBoxCheckbox: Checkbox(defaultCheckbox) {
|
|
|
|
width: -46px;
|
|
|
|
textPosition: point(34px, 1px);
|
2016-12-31 15:19:22 +00:00
|
|
|
style: boxTextStyle;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
boxRoundShadow: Shadow {
|
|
|
|
left: icon {{ "round_shadow_box_left", windowShadowFg }};
|
|
|
|
topLeft: icon {{ "round_shadow_box_top_left", windowShadowFg }};
|
|
|
|
top: icon {{ "round_shadow_box_top", windowShadowFg }};
|
|
|
|
topRight: icon {{ "round_shadow_box_top_left-flip_horizontal", windowShadowFg }};
|
|
|
|
right: icon {{ "round_shadow_box_left-flip_horizontal", windowShadowFg }};
|
|
|
|
bottomRight: icon {{ "round_shadow_box_bottom_left-flip_horizontal", windowShadowFg }};
|
|
|
|
bottom: icon {{ "round_shadow_box_bottom", windowShadowFg }};
|
|
|
|
bottomLeft: icon {{ "round_shadow_box_bottom_left", windowShadowFg }};
|
|
|
|
extend: margins(10px, 10px, 10px, 10px);
|
|
|
|
fallback: windowShadowFgFallback;
|
|
|
|
}
|
|
|
|
|
|
|
|
boxTitleFont: font(17px semibold);
|
2017-05-17 14:32:36 +00:00
|
|
|
boxTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: boxTitleFg;
|
|
|
|
maxHeight: 24px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: boxTitleFont;
|
|
|
|
linkFont: boxTitleFont;
|
|
|
|
linkFontOver: font(17px semibold underline);
|
|
|
|
}
|
|
|
|
}
|
2016-12-13 17:07:56 +00:00
|
|
|
boxTitlePosition: point(23px, 20px);
|
|
|
|
boxTitleHeight: 56px;
|
|
|
|
boxLayerTitlePosition: point(23px, 16px);
|
|
|
|
boxLayerTitleHeight: 56px;
|
|
|
|
boxLayerTitleAdditionalSkip: 9px;
|
|
|
|
boxLayerTitleAdditionalFont: normalFont;
|
2016-12-21 15:05:58 +00:00
|
|
|
boxLayerTitleShadow: shadowFg;
|
2016-12-13 17:07:56 +00:00
|
|
|
boxLayerScroll: defaultSolidScroll;
|
|
|
|
|
|
|
|
boxTopMargin: 6px;
|
2016-11-08 14:43:10 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
boxTitleClose: IconButton(defaultIconButton) {
|
|
|
|
width: boxTitleHeight;
|
|
|
|
height: boxTitleHeight;
|
2016-11-08 14:43:10 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
icon: boxTitleCloseIcon;
|
|
|
|
iconOver: boxTitleCloseIconOver;
|
2016-11-17 11:03:49 +00:00
|
|
|
|
2016-12-20 13:03:51 +00:00
|
|
|
rippleAreaPosition: point(6px, 6px);
|
|
|
|
rippleAreaSize: 44px;
|
2016-11-17 11:03:49 +00:00
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2016-12-20 13:03:51 +00:00
|
|
|
boxLinkButton: LinkButton(defaultLinkButton) {
|
2016-11-11 13:46:04 +00:00
|
|
|
font: boxTextFont;
|
|
|
|
overFont: font(boxFontSize underline);
|
|
|
|
}
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
boxOptionListPadding: margins(0px, 0px, 0px, 0px);
|
|
|
|
boxOptionListSkip: 20px;
|
2016-12-09 18:56:01 +00:00
|
|
|
boxOptionInputSkip: 6px;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
boxVerticalMargin: 10px;
|
|
|
|
boxWidth: 320px;
|
|
|
|
boxWideWidth: 364px;
|
2016-12-13 17:07:56 +00:00
|
|
|
boxPadding: margins(23px, 30px, 23px, 8px);
|
2016-12-20 13:03:51 +00:00
|
|
|
boxMaxListHeight: 492px;
|
2016-11-16 10:44:06 +00:00
|
|
|
boxLittleSkip: 10px;
|
|
|
|
boxMediumSkip: 20px;
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
boxButtonPadding: margins(8px, 12px, 13px, 12px);
|
|
|
|
boxLayerButtonPadding: margins(8px, 8px, 8px, 8px);
|
2016-11-16 10:44:06 +00:00
|
|
|
boxLabel: FlatLabel(defaultFlatLabel) {
|
2016-12-31 15:19:22 +00:00
|
|
|
width: 285px;
|
2016-11-16 10:44:06 +00:00
|
|
|
align: align(topleft);
|
2016-12-31 15:19:22 +00:00
|
|
|
style: boxLabelStyle;
|
2016-11-16 10:44:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
countryRowHeight: 36px;
|
|
|
|
countryRowNameFont: semiboldFont;
|
|
|
|
countryRowNameFg: boxTextFg;
|
|
|
|
countryRowPadding: margins(22px, 9px, 8px, 0px);
|
|
|
|
countryRowCodeFont: font(fsize);
|
|
|
|
countryRowBg: windowBg;
|
|
|
|
countryRowBgOver: windowBgOver;
|
|
|
|
countryRowCodeFg: windowSubTextFg;
|
|
|
|
countryRowCodeFgOver: windowSubTextFgOver;
|
|
|
|
countriesSkip: 12px;
|
2016-12-13 17:07:56 +00:00
|
|
|
countriesScroll: ScrollArea(boxLayerScroll) {
|
2016-11-16 10:44:06 +00:00
|
|
|
deltat: 9px;
|
|
|
|
deltab: 3px;
|
|
|
|
}
|
|
|
|
|
2016-11-28 15:45:07 +00:00
|
|
|
boxPhotoTitleFont: font(16px semibold);
|
2016-12-20 13:03:51 +00:00
|
|
|
boxPhotoTitlePosition: point(28px, 20px);
|
2016-12-13 17:07:56 +00:00
|
|
|
boxPhotoPadding: margins(28px, 28px, 28px, 18px);
|
2016-11-28 15:45:07 +00:00
|
|
|
boxPhotoCompressedSkip: 20px;
|
2016-12-09 18:56:01 +00:00
|
|
|
boxPhotoCaptionSkip: 8px;
|
2016-12-21 15:05:58 +00:00
|
|
|
boxPhotoTextFg: windowSubTextFg;
|
2016-11-16 10:44:06 +00:00
|
|
|
|
|
|
|
cropPointSize: 10px;
|
|
|
|
cropSkip: 13px;
|
|
|
|
cropMinSize: 20px;
|
|
|
|
|
|
|
|
confirmInviteTitle: FlatLabel(defaultFlatLabel) {
|
2016-07-08 16:59:46 +00:00
|
|
|
align: align(center);
|
|
|
|
width: 320px;
|
|
|
|
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-07-08 16:59:46 +00:00
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
confirmInviteStatus: FlatLabel(boxLabel) {
|
2016-07-08 16:59:46 +00:00
|
|
|
align: align(center);
|
|
|
|
width: 320px;
|
|
|
|
maxHeight: 20px;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
confirmInviteTitleTop: 106px;
|
|
|
|
confirmInvitePhotoSize: 76px;
|
|
|
|
confirmInvitePhotoTop: 20px;
|
|
|
|
confirmInviteStatusTop: 136px;
|
2016-12-20 13:03:51 +00:00
|
|
|
confirmInviteUserHeight: 84px;
|
2016-07-08 16:59:46 +00:00
|
|
|
confirmInviteUserPhotoSize: 56px;
|
|
|
|
confirmInviteUserPhotoTop: 166px;
|
2016-11-16 10:44:06 +00:00
|
|
|
confirmInviteUserName: FlatLabel(defaultFlatLabel) {
|
2016-07-08 16:59:46 +00:00
|
|
|
align: align(center);
|
|
|
|
width: 66px;
|
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
|
|
|
confirmInviteUserNameTop: 227px;
|
2016-07-18 15:39:10 +00:00
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
confirmPhoneAboutLabel: FlatLabel(defaultFlatLabel) {
|
2016-07-28 17:01:08 +00:00
|
|
|
width: 282px;
|
|
|
|
}
|
|
|
|
confirmPhoneCodeField: InputField(defaultInputField) {
|
|
|
|
}
|
2016-08-12 15:22:11 +00:00
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
revokePublicLinkStatusPalette: TextPalette(defaultTextPalette) {
|
2016-08-12 15:22:11 +00:00
|
|
|
linkFg: contactsStatusFgOnline;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
aboutRevokePublicLabel: FlatLabel(defaultFlatLabel) {
|
2016-08-12 15:22:11 +00:00
|
|
|
align: align(topleft);
|
|
|
|
width: 320px;
|
|
|
|
}
|
2016-08-28 19:16:23 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
contactUserIcon: icon {{ "add_contact_user", menuIconFg }};
|
|
|
|
contactPhoneIcon: icon {{ "add_contact_phone", menuIconFg }};
|
2016-12-09 18:56:01 +00:00
|
|
|
contactIconTop: 28px;
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2016-11-16 16:04:25 +00:00
|
|
|
contactsAddIconAbove: icon {{ "contacts_add", activeButtonFg, point(18px, 18px) }};
|
|
|
|
contactsAdd: TwoIconButton {
|
2016-11-10 18:10:31 +00:00
|
|
|
width: 52px;
|
|
|
|
height: 52px;
|
|
|
|
|
2016-11-16 16:04:25 +00:00
|
|
|
iconBelow: contactsAddIconBelow;
|
|
|
|
iconBelowOver: contactsAddIconBelowOver;
|
|
|
|
iconAbove: contactsAddIconAbove;
|
|
|
|
iconAboveOver: contactsAddIconAbove;
|
|
|
|
|
|
|
|
rippleAreaPosition: point(5px, 5px);
|
|
|
|
rippleAreaSize: 42px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: activeButtonBgRipple;
|
|
|
|
}
|
2016-11-10 18:10:31 +00:00
|
|
|
}
|
|
|
|
contactsAddPosition: point(14px, 8px);
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
contactPadding: margins(49px, 2px, 0px, 12px);
|
2016-12-09 18:56:01 +00:00
|
|
|
contactSkip: 6px;
|
2016-11-10 18:10:31 +00:00
|
|
|
contactPhoneSkip: 30px;
|
|
|
|
|
|
|
|
contactsPhotoSize: 42px;
|
|
|
|
contactsPadding: margins(16px, 7px, 16px, 7px);
|
|
|
|
contactsNameTop: 2px;
|
2016-12-23 13:21:01 +00:00
|
|
|
contactsNameStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: semiboldFont;
|
|
|
|
linkFont: semiboldFont;
|
|
|
|
linkFontOver: semiboldFont;
|
|
|
|
}
|
2016-11-10 18:10:31 +00:00
|
|
|
contactsStatusTop: 23px;
|
|
|
|
contactsStatusFont: font(fsize);
|
|
|
|
contactsCheckPosition: point(8px, 16px);
|
2016-12-02 19:16:35 +00:00
|
|
|
contactsAllAdminsTop: 15px;
|
|
|
|
contactsAboutBg: windowBgOver;
|
|
|
|
contactsAboutFg: windowSubTextFgOver;
|
|
|
|
contactsAboutTop: 60px;
|
|
|
|
contactsAboutBottom: 19px;
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2017-03-31 15:50:02 +00:00
|
|
|
contactsSearchField: InputField(defaultInputField) {
|
|
|
|
textBg: transparent;
|
|
|
|
textMargins: margins(2px, 7px, 2px, 0px);
|
|
|
|
|
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
|
|
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: normalFont;
|
|
|
|
|
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
|
|
|
|
heightMin: 32px;
|
|
|
|
|
|
|
|
font: normalFont;
|
|
|
|
}
|
|
|
|
contactsSearchCancel: CrossButton {
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
|
|
|
|
cross: CrossAnimation {
|
|
|
|
size: 36px;
|
|
|
|
skip: 12px;
|
|
|
|
stroke: 2px;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
crossFg: boxTitleCloseFg;
|
|
|
|
crossFgOver: boxTitleCloseFgOver;
|
|
|
|
crossPosition: point(4px, 4px);
|
|
|
|
|
|
|
|
duration: 150;
|
2017-04-04 13:19:49 +00:00
|
|
|
loadingPeriod: 1000;
|
2017-03-31 15:50:02 +00:00
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2016-10-20 19:48:35 +00:00
|
|
|
contactsMultiSelect: MultiSelect {
|
2016-10-31 12:29:26 +00:00
|
|
|
bg: boxSearchBg;
|
2016-12-13 17:07:56 +00:00
|
|
|
padding: margins(8px, 6px, 8px, 6px);
|
2016-10-20 19:48:35 +00:00
|
|
|
maxHeight: 104px;
|
2016-12-13 17:07:56 +00:00
|
|
|
scroll: ScrollArea(defaultSolidScroll) {
|
2016-10-21 12:28:26 +00:00
|
|
|
deltat: 3px;
|
|
|
|
deltab: 3px;
|
|
|
|
round: 1px;
|
|
|
|
width: 8px;
|
|
|
|
deltax: 3px;
|
|
|
|
hiding: 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
item: MultiSelectItem {
|
|
|
|
padding: margins(6px, 7px, 12px, 0px);
|
|
|
|
maxWidth: 128px;
|
|
|
|
height: 32px;
|
2016-12-23 13:21:01 +00:00
|
|
|
style: defaultTextStyle;
|
2016-10-21 12:28:26 +00:00
|
|
|
textBg: contactsBgOver;
|
2016-11-16 10:44:06 +00:00
|
|
|
textFg: windowFg;
|
2016-10-31 12:29:26 +00:00
|
|
|
textActiveBg: activeButtonBg;
|
|
|
|
textActiveFg: activeButtonFg;
|
|
|
|
deleteFg: activeButtonFg;
|
2016-11-21 17:46:29 +00:00
|
|
|
deleteCross: CrossAnimation {
|
|
|
|
size: 32px;
|
|
|
|
skip: 10px;
|
|
|
|
stroke: 2px;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
2016-10-21 12:28:26 +00:00
|
|
|
duration: 150;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
itemSkip: 8px;
|
|
|
|
|
2017-03-31 15:50:02 +00:00
|
|
|
field: contactsSearchField;
|
2016-10-22 13:03:20 +00:00
|
|
|
fieldMinWidth: 42px;
|
2016-11-04 11:14:47 +00:00
|
|
|
fieldIcon: boxFieldSearchIcon;
|
2016-10-21 12:28:26 +00:00
|
|
|
fieldIconSkip: 36px;
|
2016-10-22 13:03:20 +00:00
|
|
|
|
2017-03-31 15:50:02 +00:00
|
|
|
fieldCancel: contactsSearchCancel;
|
2016-11-18 13:34:58 +00:00
|
|
|
fieldCancelSkip: 40px;
|
2016-10-20 19:48:35 +00:00
|
|
|
}
|
2016-10-20 13:41:46 +00:00
|
|
|
contactsPhotoCheckbox: RoundImageCheckbox {
|
|
|
|
imageRadius: 21px;
|
|
|
|
imageSmallRadius: 18px;
|
2016-10-20 11:34:48 +00:00
|
|
|
selectWidth: 2px;
|
2016-11-16 10:44:06 +00:00
|
|
|
selectFg: windowBgActive;
|
2016-10-20 11:34:48 +00:00
|
|
|
selectDuration: 150;
|
2016-11-21 16:24:23 +00:00
|
|
|
check: RoundCheckbox(defaultRoundCheckbox) {
|
|
|
|
size: 20px;
|
|
|
|
sizeSmall: 0.3;
|
|
|
|
check: icon {{ "default_checkbox_check", windowFgActive, point(3px, 6px) }};
|
|
|
|
}
|
2016-10-20 11:34:48 +00:00
|
|
|
}
|
2016-12-21 15:05:58 +00:00
|
|
|
contactsPhotoDisabledCheckFg: menuIconFg;
|
|
|
|
contactsNameCheckedFg: windowActiveTextFg;
|
2016-12-05 11:01:08 +00:00
|
|
|
contactsRipple: defaultRippleAnimation;
|
2016-10-20 13:41:46 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
contactsMarginTop: 4px;
|
|
|
|
contactsMarginBottom: 4px;
|
|
|
|
membersMarginTop: 10px;
|
|
|
|
membersMarginBottom: 10px;
|
|
|
|
|
2016-10-20 13:41:46 +00:00
|
|
|
localStorageBoxSkip: 10px;
|
|
|
|
|
|
|
|
shareRowsTop: 12px;
|
|
|
|
shareRowHeight: 108px;
|
|
|
|
sharePhotoTop: 6px;
|
|
|
|
sharePhotoCheckbox: RoundImageCheckbox(contactsPhotoCheckbox) {
|
|
|
|
imageRadius: 28px;
|
|
|
|
imageSmallRadius: 24px;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
shareNameStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(11px);
|
|
|
|
linkFont: font(11px);
|
|
|
|
linkFontOver: font(11px);
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
shareNameFg: windowFg;
|
2016-12-03 12:10:35 +00:00
|
|
|
shareNameActiveFg: windowActiveTextFg;
|
2016-09-06 12:28:37 +00:00
|
|
|
shareNameTop: 6px;
|
|
|
|
shareColumnSkip: 6px;
|
|
|
|
shareActivateDuration: 150;
|
2016-09-06 14:45:10 +00:00
|
|
|
shareScrollDuration: 300;
|
2016-10-05 18:37:48 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
notificationsBoxHeight: 420px;
|
2016-10-05 18:37:48 +00:00
|
|
|
notificationsBoxMonitorTop: 63px;
|
2016-10-31 12:29:26 +00:00
|
|
|
notificationsBoxMonitor: icon {{ "monitor", notificationsBoxMonitorFg }};
|
2016-10-05 18:37:48 +00:00
|
|
|
notificationsBoxScreenTop: 10px;
|
|
|
|
notificationsBoxScreenSize: size(280px, 160px);
|
|
|
|
notificationsBoxCountLabelTop: 80px;
|
|
|
|
notificationsBoxCountTop: 30px;
|
2016-10-06 16:41:09 +00:00
|
|
|
|
|
|
|
notificationsSampleSkip: 5px;
|
|
|
|
notificationsSampleTopSkip: 5px;
|
|
|
|
notificationsSampleBottomSkip: 5px;
|
|
|
|
notificationsSampleMargin: 2px;
|
|
|
|
|
|
|
|
notificationSampleOpacity: 0.5;
|
|
|
|
notificationSampleSize: size(64px, 16px);
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2016-10-31 12:29:26 +00:00
|
|
|
membersAboutLimitPadding: margins(0px, 12px, 0px, 12px);
|
2017-03-14 17:04:28 +00:00
|
|
|
membersAbout: FlatLabel(defaultFlatLabel) {
|
|
|
|
width: 332px;
|
|
|
|
textFg: membersAboutLimitFg;
|
|
|
|
align: align(top);
|
|
|
|
style: boxLabelStyle;
|
|
|
|
}
|
2016-10-27 21:19:38 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
sessionsScroll: boxLayerScroll;
|
|
|
|
sessionsHeight: 350px;
|
2016-10-27 21:19:38 +00:00
|
|
|
sessionHeight: 70px;
|
|
|
|
sessionCurrentPadding: margins(0px, 7px, 0px, 4px);
|
|
|
|
sessionCurrentHeight: 118px;
|
|
|
|
sessionPadding: margins(21px, 10px, 21px, 0px);
|
|
|
|
sessionNameFont: msgNameFont;
|
2016-10-31 12:29:26 +00:00
|
|
|
sessionNameFg: boxTextFg;
|
|
|
|
sessionWhenFont: msgDateFont;
|
2016-12-21 15:05:58 +00:00
|
|
|
sessionWhenFg: windowSubTextFg;
|
2016-10-27 21:19:38 +00:00
|
|
|
sessionInfoFont: msgFont;
|
2016-12-21 15:05:58 +00:00
|
|
|
sessionInfoFg: windowSubTextFg;
|
2016-12-05 11:01:08 +00:00
|
|
|
sessionTerminateTop: 28px;
|
|
|
|
sessionTerminateSkip: 22px;
|
2016-11-01 12:46:34 +00:00
|
|
|
sessionTerminate: IconButton {
|
2016-12-05 11:01:08 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2016-10-27 21:19:38 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
icon: smallCloseIcon;
|
|
|
|
iconOver: smallCloseIconOver;
|
2016-12-05 11:01:08 +00:00
|
|
|
iconPosition: point(5px, 5px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(0px, 0px);
|
|
|
|
rippleAreaSize: 20px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2016-10-27 21:19:38 +00:00
|
|
|
}
|
2016-11-11 13:46:04 +00:00
|
|
|
sessionTerminateAllButton: LinkButton(boxLinkButton) {
|
2016-12-20 13:03:51 +00:00
|
|
|
color: attentionButtonFg;
|
|
|
|
overColor: attentionButtonFg;
|
2016-11-11 13:46:04 +00:00
|
|
|
}
|
2016-10-31 12:29:26 +00:00
|
|
|
|
|
|
|
passcodeHeaderFont: font(19px);
|
|
|
|
passcodeHeaderHeight: 80px;
|
2016-12-09 18:56:01 +00:00
|
|
|
passcodeInput: InputField(introPhone) {
|
|
|
|
textMargins: margins(1px, 27px, 1px, 6px);
|
|
|
|
}
|
2016-11-04 19:50:35 +00:00
|
|
|
passcodeSubmit: RoundButton(introNextButton) {
|
2016-10-31 12:29:26 +00:00
|
|
|
width: 225px;
|
|
|
|
}
|
|
|
|
passcodeSubmitSkip: 40px;
|
2017-01-02 17:11:49 +00:00
|
|
|
passcodePadding: margins(0px, 0px, 0px, 5px);
|
2016-12-09 18:56:01 +00:00
|
|
|
passcodeTextLine: 28px;
|
2016-12-13 17:07:56 +00:00
|
|
|
passcodeLittleSkip: 5px;
|
2017-01-02 17:11:49 +00:00
|
|
|
passcodeAboutSkip: 7px;
|
2016-12-13 17:07:56 +00:00
|
|
|
passcodeSkip: 20px;
|
2016-10-31 12:29:26 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
newGroupAboutFg: windowSubTextFg;
|
2016-10-31 12:29:26 +00:00
|
|
|
newGroupPadding: margins(4px, 6px, 4px, 3px);
|
2016-12-09 18:56:01 +00:00
|
|
|
newGroupSkip: 27px;
|
2016-10-31 12:29:26 +00:00
|
|
|
newGroupInfoPadding: margins(0px, -4px, 0px, 1px);
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
newGroupLinkPadding: margins(4px, 27px, 4px, 21px);
|
2016-10-31 12:29:26 +00:00
|
|
|
newGroupLinkTop: 3px;
|
|
|
|
newGroupLinkFont: font(16px);
|
|
|
|
|
|
|
|
newGroupPhotoSize: 76px;
|
2016-12-21 15:05:58 +00:00
|
|
|
newGroupPhotoIcon: icon {{ "new_chat_photo", activeButtonFg }};
|
2016-10-31 12:29:26 +00:00
|
|
|
newGroupPhotoIconPosition: point(23px, 25px);
|
|
|
|
newGroupPhotoDuration: 150;
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
newGroupNamePosition: point(27px, 5px);
|
|
|
|
|
|
|
|
newGroupDescriptionPadding: margins(0px, 13px, 0px, 4px);
|
|
|
|
newGroupDescription: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(1px, 26px, 1px, 4px);
|
|
|
|
heightMax: 135px;
|
|
|
|
}
|
2016-10-31 12:29:26 +00:00
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
setupChannelLink: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(0px, 6px, 0px, 4px);
|
|
|
|
heightMin: 32px;
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
newGroupPublicLinkPadding: margins(0px, 20px, 0px, 5px);
|
2016-11-02 14:44:33 +00:00
|
|
|
|
|
|
|
themeWarningWidth: boxWideWidth;
|
|
|
|
themeWarningHeight: 150px;
|
|
|
|
themeWarningTextTop: 60px;
|
2016-11-11 13:46:04 +00:00
|
|
|
|
|
|
|
aboutWidth: 390px;
|
|
|
|
aboutVersionTop: -3px;
|
|
|
|
aboutVersionLink: LinkButton(defaultLinkButton) {
|
2016-12-20 13:03:51 +00:00
|
|
|
color: windowSubTextFg;
|
|
|
|
overColor: windowSubTextFg;
|
2016-11-11 13:46:04 +00:00
|
|
|
}
|
|
|
|
aboutTextTop: 34px;
|
|
|
|
aboutSkip: 14px;
|
2016-11-16 10:44:06 +00:00
|
|
|
aboutLabel: FlatLabel(defaultFlatLabel) {
|
2016-11-11 13:46:04 +00:00
|
|
|
width: 330px;
|
|
|
|
align: align(topleft);
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 22px;
|
|
|
|
}
|
2016-11-11 13:46:04 +00:00
|
|
|
}
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-12-20 13:03:51 +00:00
|
|
|
autoDownloadTopDelta: 10px;
|
|
|
|
autoDownloadTitlePosition: point(23px, 18px);
|
2016-12-13 17:07:56 +00:00
|
|
|
autoDownloadTitleFont: font(15px semibold);
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
confirmCaptionArea: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(1px, 26px, 1px, 4px);
|
|
|
|
heightMax: 78px;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
2016-11-22 09:48:13 +00:00
|
|
|
confirmBg: windowBgOver;
|
2016-11-15 11:56:49 +00:00
|
|
|
confirmMaxHeight: 245px;
|
|
|
|
confirmCompressedSkip: 10px;
|
|
|
|
|
|
|
|
connectionHostInputField: InputField(defaultInputField) {
|
|
|
|
width: 160px;
|
|
|
|
}
|
|
|
|
connectionPortInputField: InputField(defaultInputField) {
|
|
|
|
width: 55px;
|
|
|
|
}
|
|
|
|
connectionUserInputField: InputField(defaultInputField) {
|
|
|
|
width: 95px;
|
|
|
|
}
|
|
|
|
connectionPasswordInputField: InputField(defaultInputField) {
|
|
|
|
width: 120px;
|
|
|
|
}
|
|
|
|
connectionIPv6Skip: 11px;
|
|
|
|
|
|
|
|
langsWidth: 256px;
|
2016-12-02 19:16:35 +00:00
|
|
|
langsButton: Checkbox(defaultBoxCheckbox) {
|
2016-11-15 11:56:49 +00:00
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
backgroundPadding: 10px;
|
|
|
|
backgroundSize: size(108px, 193px);
|
2016-12-13 17:07:56 +00:00
|
|
|
backgroundScroll: ScrollArea(boxLayerScroll) {
|
|
|
|
deltax: 3px;
|
|
|
|
width: 10px;
|
2016-11-15 11:56:49 +00:00
|
|
|
deltat: 10px;
|
2016-12-13 17:07:56 +00:00
|
|
|
deltab: 10px;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
2016-12-09 18:56:01 +00:00
|
|
|
|
2017-03-07 14:03:07 +00:00
|
|
|
calendarTitleHeight: boxTitleHeight;
|
2017-03-07 16:40:17 +00:00
|
|
|
calendarPrevious: IconButton {
|
2017-03-07 14:03:07 +00:00
|
|
|
width: calendarTitleHeight;
|
|
|
|
height: calendarTitleHeight;
|
|
|
|
|
|
|
|
icon: icon {{ "title_back", boxTitleFg }};
|
|
|
|
iconPosition: point(20px, 20px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(6px, 6px);
|
|
|
|
rippleAreaSize: 44px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2017-03-07 16:40:17 +00:00
|
|
|
calendarPreviousDisabled: icon {{ "title_back", menuIconFg }};
|
|
|
|
calendarNext: IconButton(calendarPrevious) {
|
2017-03-07 14:03:07 +00:00
|
|
|
icon: icon {{ "title_back-flip_horizontal", boxTitleFg }};
|
|
|
|
}
|
2017-03-07 16:40:17 +00:00
|
|
|
calendarNextDisabled: icon {{ "title_back-flip_horizontal", menuIconFg }};
|
2017-03-07 14:03:07 +00:00
|
|
|
calendarTitleFont: boxTitleFont;
|
|
|
|
calendarDaysFont: normalFont;
|
|
|
|
calendarDaysFg: boxTitleAdditionalFg;
|
|
|
|
calendarDaysHeight: 32px;
|
|
|
|
calendarCellSize: size(48px, 40px);
|
|
|
|
calendarCellInner: 34px;
|
|
|
|
calendarPadding: margins(14px, 15px, 14px, 10px);
|
|
|
|
calendarScroll: backgroundScroll;
|
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
passcodeTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 20px;
|
|
|
|
}
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
usernamePadding: margins(23px, 6px, 21px, 12px);
|
|
|
|
usernameSkip: 49px;
|
2016-12-23 13:21:01 +00:00
|
|
|
usernameTextStyle: TextStyle(passcodeTextStyle) {
|
|
|
|
font: boxTextFont;
|
|
|
|
linkFont: boxTextFont;
|
|
|
|
linkFontOver: font(boxFontSize underline);
|
2016-12-09 18:56:01 +00:00
|
|
|
}
|
2016-12-21 15:05:58 +00:00
|
|
|
usernameDefaultFg: windowSubTextFg;
|
2016-12-09 18:56:01 +00:00
|
|
|
|
|
|
|
downloadPathSkip: 10px;
|
2017-02-03 20:07:26 +00:00
|
|
|
|
|
|
|
colorEditWidth: 390px;
|
|
|
|
colorEditSkip: 10px;
|
|
|
|
colorPickerSize: 256px;
|
|
|
|
colorPickerMarkRadius: 6px;
|
|
|
|
colorPickerMarkLine: 1px;
|
|
|
|
colorSliderSkip: 8px;
|
|
|
|
colorSliderArrowLeft: icon {{ "color_slider_arrow", sliderBgActive }};
|
|
|
|
colorSliderArrowRight: icon {{ "color_slider_arrow-flip_horizontal", sliderBgActive }};
|
|
|
|
colorSliderArrowTop: icon {{ "color_slider_arrow_vertical", sliderBgActive }};
|
|
|
|
colorSliderArrowBottom: icon {{ "color_slider_arrow_vertical-flip_vertical", sliderBgActive }};
|
|
|
|
colorSliderWidth: 19px;
|
|
|
|
colorSampleSize: size(60px, 34px);
|
|
|
|
colorFieldSkip: 13px;
|
|
|
|
colorValueInput: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(16px, 3px, 0px, 2px);
|
|
|
|
heightMin: 27px;
|
|
|
|
}
|
|
|
|
colorResultInput: InputField(colorValueInput) {
|
|
|
|
}
|
2017-03-16 15:15:07 +00:00
|
|
|
|
2017-03-19 08:29:05 +00:00
|
|
|
editPrivacyOptionMargin: margins(23px, 14px, 21px, 0px);
|
2017-03-16 15:15:07 +00:00
|
|
|
editPrivacyPadding: margins(23px, 0px, 21px, 0px);
|
2017-03-19 08:29:05 +00:00
|
|
|
editPrivacyWarningPadding: margins(23px, 14px, 21px, 0px);
|
2017-03-16 15:15:07 +00:00
|
|
|
editPrivacyTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
width: 320px;
|
|
|
|
textFg: boxTitleFg;
|
2017-03-19 08:29:05 +00:00
|
|
|
maxHeight: 56px;
|
|
|
|
margin: margins(0px, 20px, 0px, 13px);
|
2017-03-16 15:15:07 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: boxTitleFont;
|
|
|
|
linkFont: boxTitleFont;
|
|
|
|
linkFontOver: boxTitleFont;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
editPrivacyLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
width: 320px;
|
|
|
|
textFg: membersAboutLimitFg;
|
|
|
|
style: defaultTextStyle;
|
|
|
|
}
|
2017-03-17 18:44:55 +00:00
|
|
|
editPrivacyLinkMargin: margins(0px, 0px, 0px, 8px);
|
2017-03-21 11:42:04 +00:00
|
|
|
|
|
|
|
changePhoneIcon: icon {
|
|
|
|
{ "phone_simcard_from", changePhoneSimcardFrom },
|
|
|
|
{ "phone_simcard_migrate", changePhoneSimcardTo, point(30px, 11px) },
|
|
|
|
{ "phone_simcard_to", changePhoneSimcardTo, point(78px, 0px) }
|
|
|
|
};
|
|
|
|
changePhoneDescription: FlatLabel(boxLabel) {
|
|
|
|
width: 332px;
|
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
changePhoneIconTop: 20px;
|
|
|
|
changePhoneDescriptionTop: 96px;
|
|
|
|
changePhoneLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
width: 275px;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
changePhoneError: FlatLabel(changePhoneLabel) {
|
|
|
|
textFg: boxTextFgError;
|
|
|
|
}
|