tdesktop/Telegram/SourceFiles/intro/intro.style

157 lines
3.7 KiB
Plaintext
Raw Normal View History

2016-10-27 14:10:28 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
2016-10-27 14:10:28 +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
*/
using "basic.style";
using "ui/widgets/widgets.style";
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 {
{ "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);
style: TextStyle(defaultTextStyle) {
font: font(22px semibold);
linkFont: font(22px semibold);
linkFontOver: font(22px semibold underline);
}
}
introCoverTitleTop: 136px;
2016-11-24 19:28:23 +00:00
introCoverDescription: FlatLabel(defaultFlatLabel) {
textFg: introDescriptionFg;
align: align(center);
style: TextStyle(defaultTextStyle) {
font: font(15px);
linkFont: font(15px);
linkFontOver: font(15px underline);
lineHeight: 24px;
}
}
introCoverDescriptionTop: 174px;
2016-11-24 19:28:23 +00:00
introTitle: FlatLabel(defaultFlatLabel) {
textFg: introTitleFg;
style: TextStyle(defaultTextStyle) {
font: font(17px semibold);
linkFont: font(17px semibold);
linkFontOver: font(17px semibold underline);
}
2016-10-31 12:29:26 +00:00
}
introTitleTop: 1px;
2016-11-24 19:28:23 +00:00
introDescription: FlatLabel(defaultFlatLabel) {
textFg: introDescriptionFg;
style: TextStyle(defaultTextStyle) {
lineHeight: 20px;
}
2016-11-24 19:28:23 +00:00
}
introDescriptionTop: 34px;
2016-11-24 19:28:23 +00:00
introLink: defaultLinkButton;
introPlaneWidth: 48px;
introPlaneHeight: 38px;
introHeight: 406px;
introStepTopMin: 76px;
2016-11-24 19:28:23 +00:00
introStepWidth: 380px;
introStepHeight: 266px;
2016-11-24 19:28:23 +00:00
introStepHeightAdd: 30px;
introStepHeightFull: 590px;
2016-10-31 12:29:26 +00:00
introSlideDuration: 200;
introCoverDuration: 200;
2016-10-31 12:29:26 +00:00
introNextButton: RoundButton(defaultActiveButton) {
width: 300px;
height: 56px;
2016-10-31 12:29:26 +00:00
2016-11-24 19:28:23 +00:00
textTop: 17px;
font: font(17px semibold);
2016-10-31 12:29:26 +00:00
}
introStepFieldTop: 96px;
introPhoneTop: 6px;
introLinkTop: 24px;
2016-11-24 19:28:23 +00:00
introCountry: InputField(defaultInputField) {
textMargins: margins(3px, 27px, 3px, 6px);
2016-11-24 19:28:23 +00:00
font: font(16px);
width: 300px;
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) {
textMargins: margins(12px, 27px, 12px, 6px);
2016-11-24 19:28:23 +00:00
width: 225px;
2016-10-31 12:29:26 +00:00
}
2016-11-24 19:28:23 +00:00
introCode: introCountry;
introName: introCountry;
introPassword: introCountry;
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;
introCountryIcon: icon {{ "intro_country_dropdown", menuIconFg }};
introCountryIconPosition: point(8px, 37px);
2016-10-31 12:29:26 +00:00
introSelectDelta: 30px;
introErrorTop: 235px;
introErrorBelowLinkTop: 220px;
2016-10-31 12:29:26 +00:00
introErrorDuration: 200;
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
introBackButton: IconButton(defaultIconButton) {
width: 56px;
height: 56px;
icon: icon {{ "box_button_back", menuIconFg }};
iconOver: icon {{ "box_button_back", menuIconFgOver }};
rippleAreaPosition: point(8px, 8px);
rippleAreaSize: 40px;
ripple: RippleAnimation(defaultRippleAnimation) {
color: windowBgOver;
}
2016-10-27 14:10:28 +00:00
}