2018-03-19 16:22:27 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
2019-09-17 16:13:12 +00:00
|
|
|
using "ui/basic.style";
|
2018-03-19 16:22:27 +00:00
|
|
|
|
|
|
|
using "ui/widgets/widgets.style";
|
|
|
|
using "boxes/boxes.style";
|
2018-03-31 01:45:40 +00:00
|
|
|
using "info/info.style";
|
|
|
|
using "chat_helpers/chat_helpers.style";
|
2018-03-19 16:22:27 +00:00
|
|
|
|
|
|
|
passportPasswordPadding: margins(20px, 30px, 20px, 40px);
|
|
|
|
passportPasswordLabel: FlatLabel(boxLabel) {
|
|
|
|
minWidth: 275px;
|
2018-03-31 01:45:40 +00:00
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
passportPasswordLabelBold: FlatLabel(passportPasswordLabel) {
|
|
|
|
style: TextStyle(boxLabelStyle) {
|
|
|
|
font: font(boxFontSize semibold);
|
|
|
|
}
|
2018-03-19 16:22:27 +00:00
|
|
|
}
|
2018-04-16 17:02:40 +00:00
|
|
|
passportPasswordSetupLabel: FlatLabel(passportPasswordLabel) {
|
|
|
|
minWidth: 0px;
|
|
|
|
}
|
2018-03-19 16:22:27 +00:00
|
|
|
passportPasswordHintLabel: passportPasswordLabel;
|
|
|
|
passportErrorLabel: FlatLabel(passportPasswordLabel) {
|
|
|
|
textFg: boxTextFgError;
|
|
|
|
}
|
2018-04-09 17:56:07 +00:00
|
|
|
passportVerifyErrorLabel: FlatLabel(passportErrorLabel) {
|
2018-06-08 19:26:08 +00:00
|
|
|
minWidth: 128px;
|
2018-04-09 17:56:07 +00:00
|
|
|
align: align(topleft);
|
|
|
|
}
|
2018-03-19 16:22:27 +00:00
|
|
|
|
2018-06-02 09:59:19 +00:00
|
|
|
passportPanelSize: size(392px, 600px);
|
2018-03-31 01:45:40 +00:00
|
|
|
|
|
|
|
passportPasswordFieldBottom: 306px;
|
|
|
|
passportPasswordFieldSkip: 29px;
|
|
|
|
passportPasswordHintSkip: 10px;
|
|
|
|
passportPasswordUserpicSkip: 14px;
|
|
|
|
passportPasswordUserpic: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(80px, 80px);
|
|
|
|
photoSize: 80px;
|
|
|
|
photoPosition: point(0px, 0px);
|
|
|
|
}
|
|
|
|
passportPasswordSubmit: RoundButton(defaultActiveButton) {
|
|
|
|
width: 200px;
|
|
|
|
height: 44px;
|
|
|
|
textTop: 12px;
|
|
|
|
font: font(semibold 15px);
|
|
|
|
}
|
|
|
|
passportPasswordSubmitBottom: 72px;
|
|
|
|
passportPasswordForgotBottom: 36px;
|
|
|
|
|
|
|
|
passportPanelScroll: ScrollArea(defaultScrollArea) {
|
|
|
|
deltat: 6px;
|
|
|
|
deltab: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
passportPanelAuthorize: RoundButton(passportPasswordSubmit) {
|
|
|
|
width: 0px;
|
|
|
|
height: 49px;
|
|
|
|
padding: margins(0px, -3px, 0px, 0px);
|
|
|
|
textTop: 16px;
|
2018-04-12 10:20:54 +00:00
|
|
|
icon: icon {{ "passport_authorize", activeButtonFg }};
|
|
|
|
iconPosition: point(-8px, 9px);
|
2018-03-31 01:45:40 +00:00
|
|
|
}
|
|
|
|
passportPanelSaveValue: RoundButton(passportPanelAuthorize) {
|
|
|
|
textFg: windowActiveTextFg;
|
|
|
|
textFgOver: windowActiveTextFg;
|
|
|
|
textBg: windowBg;
|
|
|
|
textBgOver: windowBgOver;
|
|
|
|
ripple: defaultRippleAnimation;
|
2018-04-12 10:20:54 +00:00
|
|
|
icon: icon {};
|
2018-03-31 01:45:40 +00:00
|
|
|
}
|
|
|
|
passportFormAbout1Padding: margins(10px, 4px, 10px, 0px);
|
|
|
|
passportFormAbout2Padding: margins(10px, 0px, 10px, 22px);
|
|
|
|
passportFormHeader: FlatLabel(boxLabel) {
|
|
|
|
textFg: windowActiveTextFg;
|
|
|
|
style: semiboldTextStyle;
|
|
|
|
}
|
|
|
|
passportFormHeaderPadding: margins(22px, 20px, 22px, 9px);
|
|
|
|
passportFormUserpic: UserpicButton(passportPasswordUserpic) {
|
|
|
|
size: size(60px, 60px);
|
|
|
|
photoSize: 60px;
|
|
|
|
}
|
|
|
|
passportFormUserpicPadding: margins(0px, 5px, 0px, 10px);
|
|
|
|
passportFormDividerHeight: 13px;
|
2018-04-06 11:54:01 +00:00
|
|
|
passportFormLabelPadding: margins(22px, 7px, 22px, 14px);
|
2018-06-04 11:43:49 +00:00
|
|
|
passportFormPolicy: FlatLabel(boxDividerLabel) {
|
2018-03-31 01:45:40 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
2023-10-12 06:53:40 +00:00
|
|
|
linkUnderline: kLinkUnderlineAlways;
|
2018-03-31 01:45:40 +00:00
|
|
|
}
|
|
|
|
palette: TextPalette(defaultTextPalette) {
|
|
|
|
linkFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
passportFormPolicyPadding: margins(22px, 7px, 22px, 28px);
|
2018-04-15 15:06:53 +00:00
|
|
|
passportContactNewFieldPadding: margins(22px, 0px, 22px, 14px);
|
|
|
|
passportContactFieldPadding: margins(22px, 14px, 22px, 14px);
|
|
|
|
passportContactErrorPadding: margins(22px, 0px, 22px, 0px);
|
|
|
|
passportContactErrorMargin: margins(0px, 0px, 0px, 14px);
|
2018-03-31 01:45:40 +00:00
|
|
|
|
|
|
|
passportRowPadding: margins(22px, 8px, 25px, 8px);
|
2018-04-13 16:43:17 +00:00
|
|
|
passportRowIconSkip: 10px;
|
2018-03-31 01:45:40 +00:00
|
|
|
passportRowSkip: 2px;
|
2018-03-19 16:22:27 +00:00
|
|
|
passportRowRipple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2018-04-12 10:20:54 +00:00
|
|
|
passportRowReadyIcon: icon {{ "passport_ready", windowActiveTextFg }};
|
|
|
|
passportRowEmptyIcon: icon {{ "passport_empty", menuIconFgOver }};
|
2018-03-31 01:45:40 +00:00
|
|
|
passportRowTitleFg: windowFg;
|
|
|
|
passportRowDescriptionFg: windowSubTextFg;
|
|
|
|
|
2020-11-29 18:26:49 +00:00
|
|
|
passportUploadButton: SettingsButton(defaultSettingsButton) {
|
2018-03-31 01:45:40 +00:00
|
|
|
textFg: windowActiveTextFg;
|
|
|
|
textFgOver: windowActiveTextFg;
|
|
|
|
textBg: windowBg;
|
|
|
|
textBgOver: windowBgOver;
|
|
|
|
|
2022-03-01 09:51:22 +00:00
|
|
|
style: semiboldTextStyle;
|
2018-03-31 01:45:40 +00:00
|
|
|
|
|
|
|
height: 18px;
|
|
|
|
padding: margins(22px, 14px, 22px, 12px);
|
|
|
|
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
passportUploadButtonPadding: margins(0px, 10px, 0px, 10px);
|
|
|
|
passportUploadHeaderPadding: margins(22px, 14px, 22px, 3px);
|
2018-04-17 17:54:52 +00:00
|
|
|
passportUploadErrorPadding: margins(22px, 5px, 22px, 5px);
|
2018-08-14 11:37:03 +00:00
|
|
|
passportValueErrorPadding: passportUploadHeaderPadding;
|
2019-11-02 17:06:47 +00:00
|
|
|
passportDeleteButton: SettingsButton(passportUploadButton) {
|
2018-04-13 16:43:17 +00:00
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
}
|
2018-03-31 01:45:40 +00:00
|
|
|
|
|
|
|
passportScanNameStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(boxFontSize semibold);
|
|
|
|
}
|
|
|
|
passportScanRow: PassportScanRow {
|
|
|
|
padding: margins(22px, 10px, 10px, 10px);
|
|
|
|
size: 40px;
|
|
|
|
textLeft: 53px;
|
|
|
|
nameTop: 1px;
|
|
|
|
statusTop: 22px;
|
|
|
|
border: 1px;
|
|
|
|
borderFg: inputBorderFg;
|
|
|
|
remove: stickersRemove;
|
|
|
|
restore: stickersUndoRemove;
|
|
|
|
}
|
|
|
|
passportScanDeletedOpacity: stickersRowDisabledOpacity;
|
|
|
|
|
|
|
|
passportDetailsHeaderPadding: margins(22px, 20px, 33px, 10px);
|
|
|
|
passportDetailsPadding: margins(22px, 10px, 28px, 10px);
|
|
|
|
passportDetailsField: InputField(defaultInputField) {
|
2018-04-10 11:26:21 +00:00
|
|
|
textMargins: margins(2px, 8px, 2px, 0px);
|
2018-03-31 01:45:40 +00:00
|
|
|
placeholderScale: 0.;
|
2018-04-10 16:22:27 +00:00
|
|
|
placeholderFont: normalFont;
|
2018-03-31 01:45:40 +00:00
|
|
|
heightMin: 32px;
|
|
|
|
font: normalFont;
|
2018-03-19 16:22:27 +00:00
|
|
|
}
|
2018-04-10 16:22:27 +00:00
|
|
|
passportDetailsDateField: InputField(passportDetailsField) {
|
2018-06-08 19:26:08 +00:00
|
|
|
textMargins: margins(2px, 8px, 2px, 0px);
|
2018-04-10 16:22:27 +00:00
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
heightMin: 30px;
|
2018-06-08 19:26:08 +00:00
|
|
|
placeholderFont: semiboldFont;
|
2018-04-10 16:22:27 +00:00
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
}
|
|
|
|
passportDetailsSeparator: FlatLabel(passportPasswordLabelBold) {
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(semibold 14px);
|
|
|
|
}
|
|
|
|
textFg: windowSubTextFg;
|
2023-08-22 13:07:26 +00:00
|
|
|
align: align(topleft);
|
2018-04-10 16:22:27 +00:00
|
|
|
}
|
|
|
|
passportDetailsSeparatorPadding: margins(5px, 8px, 5px, 0px);
|
2018-04-06 11:54:01 +00:00
|
|
|
passportContactField: InputField(defaultInputField) {
|
|
|
|
font: normalFont;
|
|
|
|
}
|
2018-03-31 01:45:40 +00:00
|
|
|
passportDetailsFieldLeft: 116px;
|
|
|
|
passportDetailsFieldTop: 2px;
|
|
|
|
passportDetailsFieldSkipMin: 12px;
|
2018-04-10 16:22:27 +00:00
|
|
|
passportDetailsSkip: 30px;
|
2018-06-08 19:26:08 +00:00
|
|
|
passportDetailsGenderSkip: 20px;
|
2018-04-10 07:51:19 +00:00
|
|
|
|
|
|
|
passportRequestTypeSkip: 16px;
|
2018-04-16 17:02:40 +00:00
|
|
|
|
|
|
|
passportPasswordAbout1Padding: margins(10px, 28px, 10px, 0px);
|
|
|
|
passportPasswordAbout2Padding: margins(10px, 0px, 10px, 28px);
|
|
|
|
passportPasswordIconHeight: 224px;
|
|
|
|
passportPasswordIcon: icon {{ "passport_password_setup", windowSubTextFg }};
|
2018-08-17 13:42:07 +00:00
|
|
|
|
|
|
|
passportNativeNameAboutMargin: margins(0px, 16px, 0px, 0px);
|
|
|
|
passportNativeNameHeaderPadding: margins(22px, 28px, 33px, 10px);
|