2016-10-27 14:10:28 +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-10-27 14:10:28 +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-10-27 14:10:28 +00:00
|
|
|
*/
|
2019-09-17 16:13:12 +00:00
|
|
|
using "ui/basic.style";
|
2016-10-27 14:10:28 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
|
|
|
|
2016-12-05 11:01:08 +00:00
|
|
|
countryRipple: defaultRippleAnimation;
|
|
|
|
|
2016-11-24 19:28:23 +00:00
|
|
|
introCoverHeight: 208px;
|
|
|
|
introCoverMaxWidth: 880px;
|
|
|
|
introCoverIconsMinSkip: 120px;
|
|
|
|
introCoverLeft: icon {{ "intro_left", introCoverIconsFg }};
|
|
|
|
introCoverRight: icon {{ "intro_right", introCoverIconsFg }};
|
|
|
|
introCoverIcon: icon {
|
2016-12-21 15:05:58 +00:00
|
|
|
{ "intro_plane_trace", introCoverPlaneTrace },
|
|
|
|
{ "intro_plane_inner", introCoverPlaneInner },
|
|
|
|
{ "intro_plane_outer", introCoverPlaneOuter },
|
|
|
|
{ "intro_plane_top", introCoverPlaneTop },
|
2016-11-24 19:28:23 +00:00
|
|
|
};
|
|
|
|
introCoverIconLeft: 50px;
|
|
|
|
introCoverIconTop: 46px;
|
|
|
|
|
|
|
|
introSettingsSkip: 10px;
|
|
|
|
|
|
|
|
introPhotoTop: 10px;
|
|
|
|
|
|
|
|
introCoverTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: introTitleFg;
|
|
|
|
align: align(center);
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(22px semibold);
|
|
|
|
linkFont: font(22px semibold);
|
|
|
|
linkFontOver: font(22px semibold underline);
|
|
|
|
}
|
2016-10-28 12:44:28 +00:00
|
|
|
}
|
2016-12-09 18:56:01 +00:00
|
|
|
introCoverTitleTop: 136px;
|
2016-11-24 19:28:23 +00:00
|
|
|
introCoverDescription: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: introDescriptionFg;
|
|
|
|
align: align(center);
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(15px);
|
|
|
|
linkFont: font(15px);
|
|
|
|
linkFontOver: font(15px underline);
|
|
|
|
lineHeight: 24px;
|
|
|
|
}
|
2016-11-11 13:46:04 +00:00
|
|
|
}
|
2016-12-09 18:56:01 +00:00
|
|
|
introCoverDescriptionTop: 174px;
|
2016-11-24 19:28:23 +00:00
|
|
|
introTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: introTitleFg;
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(17px semibold);
|
|
|
|
linkFont: font(17px semibold);
|
|
|
|
linkFontOver: font(17px semibold underline);
|
|
|
|
}
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2016-12-09 18:56:01 +00:00
|
|
|
introTitleTop: 1px;
|
2016-11-24 19:28:23 +00:00
|
|
|
introDescription: FlatLabel(defaultFlatLabel) {
|
2018-11-26 07:32:37 +00:00
|
|
|
minWidth: 300px;
|
2016-11-24 19:28:23 +00:00
|
|
|
textFg: introDescriptionFg;
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 20px;
|
|
|
|
}
|
2016-11-24 19:28:23 +00:00
|
|
|
}
|
2016-12-09 18:56:01 +00:00
|
|
|
introDescriptionTop: 34px;
|
2016-11-24 19:28:23 +00:00
|
|
|
|
|
|
|
introLink: defaultLinkButton;
|
|
|
|
|
|
|
|
introPlaneWidth: 48px;
|
|
|
|
introPlaneHeight: 38px;
|
2016-12-09 18:56:01 +00:00
|
|
|
introHeight: 406px;
|
|
|
|
introStepTopMin: 76px;
|
2016-11-24 19:28:23 +00:00
|
|
|
introStepWidth: 380px;
|
2019-11-26 11:10:44 +00:00
|
|
|
introNextTop: 266px;
|
2019-11-26 11:39:54 +00:00
|
|
|
introNextSlide: 200px;
|
2019-11-26 11:10:44 +00:00
|
|
|
introStepHeight: 384px;
|
|
|
|
introContentTopAdd: 30px;
|
2016-12-09 18:56:01 +00:00
|
|
|
introStepHeightFull: 590px;
|
2016-10-31 12:29:26 +00:00
|
|
|
introSlideDuration: 200;
|
2016-12-30 13:53:51 +00:00
|
|
|
introCoverDuration: 200;
|
2016-10-31 12:29:26 +00:00
|
|
|
|
2016-11-04 19:50:35 +00:00
|
|
|
introNextButton: RoundButton(defaultActiveButton) {
|
|
|
|
width: 300px;
|
2022-12-27 18:14:06 +00:00
|
|
|
height: 42px;
|
2022-12-28 18:41:38 +00:00
|
|
|
radius: 6px;
|
2022-12-27 18:14:06 +00:00
|
|
|
textTop: 11px;
|
|
|
|
font: font(boxFontSize semibold);
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2022-12-29 07:41:49 +00:00
|
|
|
introFragmentIcon: icon{{ "fragment", activeButtonFg }};
|
|
|
|
introFragmentIconOver: icon{{ "fragment", activeButtonFgOver }};
|
|
|
|
introFragmentButton: RoundButton(introNextButton) {
|
|
|
|
icon: introFragmentIcon;
|
|
|
|
iconOver: introFragmentIconOver;
|
|
|
|
iconPosition: point(-10px, 9px);
|
|
|
|
}
|
2016-10-31 12:29:26 +00:00
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
introStepFieldTop: 96px;
|
|
|
|
introPhoneTop: 6px;
|
|
|
|
introLinkTop: 24px;
|
2016-11-24 19:28:23 +00:00
|
|
|
introCountry: InputField(defaultInputField) {
|
2016-12-09 18:56:01 +00:00
|
|
|
textMargins: margins(3px, 27px, 3px, 6px);
|
2016-11-24 19:28:23 +00:00
|
|
|
font: font(16px);
|
|
|
|
width: 300px;
|
2016-12-09 18:56:01 +00:00
|
|
|
heightMin: 61px;
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2016-11-24 19:28:23 +00:00
|
|
|
introCountryCode: InputField(introCountry) {
|
|
|
|
width: 64px;
|
|
|
|
textAlign: align(top);
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2016-11-24 19:28:23 +00:00
|
|
|
introPhone: InputField(introCountry) {
|
2016-12-09 18:56:01 +00:00
|
|
|
textMargins: margins(12px, 27px, 12px, 6px);
|
2016-11-24 19:28:23 +00:00
|
|
|
width: 225px;
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2019-11-27 09:45:23 +00:00
|
|
|
introQrLoginLinkTop: 368px;
|
2016-11-24 19:28:23 +00:00
|
|
|
introCode: introCountry;
|
|
|
|
introName: introCountry;
|
|
|
|
introPassword: introCountry;
|
2016-12-09 18:56:01 +00:00
|
|
|
introPasswordTop: 74px;
|
|
|
|
introPasswordHintTop: 151px;
|
2016-11-24 19:28:23 +00:00
|
|
|
|
|
|
|
introPasswordHint: FlatLabel(introDescription) {
|
|
|
|
textFg: windowFg;
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2016-11-24 19:28:23 +00:00
|
|
|
|
|
|
|
introResetButton: RoundButton(defaultLightButton) {
|
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
textBgOver: attentionButtonBgOver;
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: attentionButtonBgRipple;
|
|
|
|
}
|
2016-10-31 12:29:26 +00:00
|
|
|
}
|
2016-11-24 19:28:23 +00:00
|
|
|
introResetBottom: 20px;
|
|
|
|
|
2018-05-30 15:08:12 +00:00
|
|
|
introTermsLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
introTermsBottom: 20px;
|
|
|
|
|
2016-11-24 19:28:23 +00:00
|
|
|
introCountryIcon: icon {{ "intro_country_dropdown", menuIconFg }};
|
2016-12-09 18:56:01 +00:00
|
|
|
introCountryIconPosition: point(8px, 37px);
|
2016-10-31 12:29:26 +00:00
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
introErrorTop: 235px;
|
|
|
|
introErrorBelowLinkTop: 220px;
|
2016-10-31 12:29:26 +00:00
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
introError: FlatLabel(introDescription) {
|
|
|
|
}
|
2016-11-24 19:28:23 +00:00
|
|
|
introErrorCentered: FlatLabel(introError) {
|
2016-10-27 14:10:28 +00:00
|
|
|
align: align(center);
|
|
|
|
}
|
2016-11-24 19:28:23 +00:00
|
|
|
|
2016-11-20 12:54:07 +00:00
|
|
|
introBackButton: IconButton(defaultIconButton) {
|
|
|
|
width: 56px;
|
|
|
|
height: 56px;
|
|
|
|
|
2019-09-26 10:55:35 +00:00
|
|
|
icon: backButtonIcon;
|
|
|
|
iconOver: backButtonIconOver;
|
2016-11-20 12:54:07 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(8px, 8px);
|
|
|
|
rippleAreaSize: 40px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2016-10-27 14:10:28 +00:00
|
|
|
}
|
2016-11-20 12:54:07 +00:00
|
|
|
|
2021-04-19 07:16:49 +00:00
|
|
|
introQrTop: -18px;
|
2019-11-22 09:40:52 +00:00
|
|
|
introQrPixel: 50px; // large enough
|
2019-11-26 12:56:07 +00:00
|
|
|
introQrMaxSize: 180px;
|
2021-04-19 07:16:49 +00:00
|
|
|
introQrBackgroundSkip: 12px;
|
|
|
|
introQrBackgroundRadius: 8px;
|
2019-11-26 11:10:44 +00:00
|
|
|
introQrLabelsWidth: 292px;
|
2019-12-31 08:56:41 +00:00
|
|
|
introQrTitleWidth: 320px;
|
2019-11-26 11:10:44 +00:00
|
|
|
introQrTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: introTitleFg;
|
2019-12-31 08:56:41 +00:00
|
|
|
align: align(top);
|
|
|
|
minWidth: introQrTitleWidth;
|
2019-11-26 11:10:44 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(20px semibold);
|
|
|
|
linkFont: font(20px semibold);
|
|
|
|
linkFontOver: font(20px semibold underline);
|
|
|
|
}
|
|
|
|
}
|
2019-11-26 14:27:09 +00:00
|
|
|
introQrErrorTop: 336px;
|
2019-11-26 11:10:44 +00:00
|
|
|
introQrTitleTop: 196px;
|
2019-12-31 08:56:41 +00:00
|
|
|
introQrStep: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: introQrLabelsWidth;
|
|
|
|
}
|
2019-11-26 11:10:44 +00:00
|
|
|
introQrStepsTop: 232px;
|
2019-12-31 08:56:41 +00:00
|
|
|
introQrStepMargins: margins(20px, 8px, 0px, 0px);
|
2019-11-26 11:10:44 +00:00
|
|
|
introQrSkipTop: 360px;
|
2019-11-26 12:56:07 +00:00
|
|
|
introQrCenterSize: 44px;
|
|
|
|
introQrPlane: icon {{ "intro_qr_plane", activeButtonFg }};
|