2016-07-08 16:59:46 +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-07-08 16:59:46 +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-07-08 16:59:46 +00:00
|
|
|
*/
|
2019-09-17 16:13:12 +00:00
|
|
|
using "ui/basic.style";
|
2016-11-04 11:14:47 +00:00
|
|
|
|
2019-09-18 11:19:05 +00:00
|
|
|
using "ui/layers/layers.style";
|
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
|
|
|
|
2019-09-18 08:05:37 +00:00
|
|
|
UserpicButton {
|
|
|
|
size: size;
|
|
|
|
photoSize: pixels;
|
|
|
|
photoPosition: point;
|
|
|
|
changeButton: RoundButton;
|
|
|
|
changeIcon: icon;
|
|
|
|
changeIconPosition: point;
|
|
|
|
duration: int;
|
|
|
|
uploadHeight: pixels;
|
|
|
|
uploadBg: color;
|
|
|
|
uploadIcon: icon;
|
|
|
|
uploadIconPosition: point;
|
|
|
|
}
|
|
|
|
|
|
|
|
FeedUserpicButton {
|
|
|
|
size: size;
|
|
|
|
innerSize: pixels;
|
|
|
|
innerPosition: point;
|
|
|
|
innerPart: UserpicButton;
|
|
|
|
}
|
2016-11-18 13:34:58 +00:00
|
|
|
|
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;
|
2019-11-02 17:06:47 +00:00
|
|
|
countriesScroll: ScrollArea(boxScroll) {
|
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
|
|
|
|
2019-09-18 08:05:37 +00:00
|
|
|
defaultChangeUserpicIcon: icon {{ "new_chat_photo", activeButtonFg }};
|
|
|
|
defaultUploadUserpicIcon: icon {{ "upload_chat_photo", msgDateImgFg }};
|
|
|
|
defaultUserpicButton: UserpicButton {
|
|
|
|
size: size(76px, 76px);
|
|
|
|
photoSize: 76px;
|
|
|
|
photoPosition: point(-1px, -1px);
|
|
|
|
changeButton: defaultActiveButton;
|
|
|
|
changeIcon: defaultChangeUserpicIcon;
|
|
|
|
changeIconPosition: point(23px, 25px);
|
|
|
|
duration: 500;
|
|
|
|
uploadHeight: 24px;
|
|
|
|
uploadBg: msgDateImgBgOver;
|
|
|
|
uploadIcon: defaultUploadUserpicIcon;
|
|
|
|
uploadIconPosition: point(-1px, 1px);
|
|
|
|
}
|
|
|
|
defaultFeedUserpicButton: FeedUserpicButton {
|
|
|
|
size: size(76px, 76px);
|
|
|
|
innerSize: 76px;
|
|
|
|
innerPosition: point(-1px, -1px);
|
|
|
|
innerPart: defaultUserpicButton;
|
|
|
|
}
|
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
confirmInviteTitle: FlatLabel(defaultFlatLabel) {
|
2016-07-08 16:59:46 +00:00
|
|
|
align: align(center);
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 320px;
|
2016-07-08 16:59:46 +00:00
|
|
|
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);
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 320px;
|
2016-07-08 16:59:46 +00:00
|
|
|
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);
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 66px;
|
2016-07-08 16:59:46 +00:00
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
|
|
|
confirmInviteUserNameTop: 227px;
|
2016-07-18 15:39:10 +00:00
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
confirmPhoneAboutLabel: FlatLabel(defaultFlatLabel) {
|
2021-03-16 13:16:52 +00:00
|
|
|
minWidth: 272px;
|
2016-07-28 17:01:08 +00:00
|
|
|
}
|
|
|
|
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);
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 320px;
|
2016-08-12 15:22:11 +00:00
|
|
|
}
|
2017-07-18 15:15:02 +00:00
|
|
|
editBioCountdownLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
style: boxTextStyle;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2016-08-28 19:16:23 +00:00
|
|
|
|
2018-09-14 19:00:33 +00:00
|
|
|
contactUserIcon: icon {{ "settings_name", menuIconFg }};
|
|
|
|
contactPhoneIcon: icon {{ "settings_phone_number", menuIconFg }};
|
|
|
|
contactIconPosition: point(-5px, 23px);
|
2016-10-22 18:58:25 +00:00
|
|
|
|
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
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
contactsMarginTop: 4px;
|
|
|
|
contactsMarginBottom: 4px;
|
|
|
|
membersMarginTop: 10px;
|
|
|
|
membersMarginBottom: 10px;
|
|
|
|
|
2021-03-10 11:55:00 +00:00
|
|
|
peerListBoxItem: PeerListItem(defaultPeerListItem) {
|
|
|
|
height: 56px;
|
|
|
|
photoSize: contactsPhotoSize;
|
|
|
|
photoPosition: point(16px, 7px);
|
|
|
|
namePosition: point(74px, 9px);
|
|
|
|
statusPosition: point(74px, 30px);
|
|
|
|
button: OutlineButton(defaultPeerListButton) {
|
|
|
|
textBg: contactsBg;
|
|
|
|
textBgOver: contactsBgOver;
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
statusFg: contactsStatusFg;
|
|
|
|
statusFgOver: contactsStatusFgOver;
|
|
|
|
statusFgActive: contactsStatusFgOnline;
|
|
|
|
}
|
2017-09-26 17:57:01 +00:00
|
|
|
peerListBox: PeerList(defaultPeerList) {
|
|
|
|
padding: margins(
|
|
|
|
0px,
|
|
|
|
membersMarginTop,
|
|
|
|
0px,
|
|
|
|
membersMarginBottom);
|
2021-03-10 11:55:00 +00:00
|
|
|
item: peerListBoxItem;
|
2017-09-26 17:57:01 +00:00
|
|
|
}
|
|
|
|
|
2018-08-29 13:23:16 +00:00
|
|
|
localStorageRowHeight: 50px;
|
2020-04-29 08:08:34 +00:00
|
|
|
localStorageRowPadding: margins(22px, 5px, 20px, 5px);
|
2018-08-29 13:23:16 +00:00
|
|
|
localStorageRowTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowBoldFg;
|
|
|
|
maxHeight: 20px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px semibold);
|
|
|
|
linkFont: font(14px semibold);
|
|
|
|
linkFontOver: font(14px semibold);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
localStorageRowSize: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: contactsStatusFg;
|
|
|
|
maxHeight: 20px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px);
|
|
|
|
linkFont: font(14px);
|
|
|
|
linkFontOver: font(14px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
localStorageClear: defaultBoxButton;
|
2018-08-31 13:01:42 +00:00
|
|
|
localStorageLimitLabel: LabelSimple(defaultLabelSimple) {
|
|
|
|
font: boxTextFont;
|
|
|
|
}
|
2020-04-29 08:08:34 +00:00
|
|
|
localStorageLimitLabelMargin: margins(22px, 10px, 20px, 5px);
|
2018-08-31 13:01:42 +00:00
|
|
|
localStorageLimitSlider: MediaSlider(defaultContinuousSlider) {
|
|
|
|
seekSize: size(15px, 15px);
|
|
|
|
}
|
2020-04-29 08:08:34 +00:00
|
|
|
localStorageLimitMargin: margins(22px, 5px, 20px, 10px);
|
2016-10-20 13:41:46 +00:00
|
|
|
|
|
|
|
shareRowsTop: 12px;
|
|
|
|
shareRowHeight: 108px;
|
|
|
|
sharePhotoTop: 6px;
|
2021-03-10 17:36:21 +00:00
|
|
|
shareBoxListItem: PeerListItem(defaultPeerListItem) {
|
|
|
|
nameStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(11px);
|
|
|
|
linkFont: font(11px);
|
|
|
|
linkFontOver: font(11px);
|
|
|
|
}
|
|
|
|
nameFg: windowFg;
|
|
|
|
nameFgChecked: windowActiveTextFg;
|
|
|
|
checkbox: RoundImageCheckbox(defaultPeerListCheckbox) {
|
|
|
|
imageRadius: 28px;
|
|
|
|
imageSmallRadius: 24px;
|
|
|
|
}
|
2016-10-20 13:41:46 +00:00
|
|
|
}
|
2021-03-10 17:36:21 +00:00
|
|
|
shareBoxList: PeerList(defaultPeerList) {
|
|
|
|
bg: boxBg;
|
|
|
|
item: shareBoxListItem;
|
2016-12-23 13:21:01 +00:00
|
|
|
}
|
2016-09-06 12:28:37 +00:00
|
|
|
shareNameTop: 6px;
|
|
|
|
shareColumnSkip: 6px;
|
|
|
|
shareActivateDuration: 150;
|
2016-09-06 14:45:10 +00:00
|
|
|
shareScrollDuration: 300;
|
2018-11-04 07:32:26 +00:00
|
|
|
shareComment: InputField(defaultInputField) {
|
|
|
|
font: normalFont;
|
|
|
|
textMargins: margins(8px, 8px, 8px, 6px);
|
|
|
|
heightMin: 36px;
|
|
|
|
heightMax: 72px;
|
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
|
|
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: normalFont;
|
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
}
|
|
|
|
shareCommentPadding: margins(5px, 5px, 5px, 5px);
|
2016-10-05 18:37:48 +00:00
|
|
|
|
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);
|
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) {
|
2017-11-16 09:13:17 +00:00
|
|
|
minWidth: 240px;
|
2017-03-14 17:04:28 +00:00
|
|
|
textFg: membersAboutLimitFg;
|
|
|
|
align: align(top);
|
|
|
|
style: boxLabelStyle;
|
|
|
|
}
|
2016-10-27 21:19:38 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
sessionsScroll: boxScroll;
|
2016-12-13 17:07:56 +00:00
|
|
|
sessionsHeight: 350px;
|
2016-10-27 21:19:38 +00:00
|
|
|
sessionHeight: 70px;
|
|
|
|
sessionCurrentPadding: margins(0px, 7px, 0px, 4px);
|
|
|
|
sessionCurrentHeight: 118px;
|
2020-04-29 08:08:34 +00:00
|
|
|
sessionPadding: margins(22px, 10px, 22px, 0px);
|
2016-10-27 21:19:38 +00:00
|
|
|
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;
|
2020-09-11 12:28:49 +00:00
|
|
|
sessionNamePadding: margins(0px, 0px, 5px, 0px);
|
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
|
|
|
}
|
2020-09-11 12:28:49 +00:00
|
|
|
sessionNameStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: sessionNameFont;
|
|
|
|
}
|
|
|
|
sessionWhenStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: sessionWhenFont;
|
|
|
|
}
|
|
|
|
sessionInfoStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: sessionInfoFont;
|
|
|
|
}
|
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;
|
2021-08-17 12:37:17 +00:00
|
|
|
passcodeSkip: 23px;
|
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);
|
|
|
|
|
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);
|
2017-06-16 17:02:27 +00:00
|
|
|
heightMax: 116px;
|
2016-12-09 18:56:01 +00:00
|
|
|
}
|
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) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 330px;
|
2016-11-11 13:46:04 +00:00
|
|
|
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;
|
2020-04-29 08:08:34 +00:00
|
|
|
autoDownloadTitlePosition: point(22px, 18px);
|
2016-12-13 17:07:56 +00:00
|
|
|
autoDownloadTitleFont: font(15px semibold);
|
2018-12-06 15:47:28 +00:00
|
|
|
autoDownloadLimitSlider: MediaSlider(defaultContinuousSlider) {
|
|
|
|
seekSize: size(15px, 15px);
|
|
|
|
}
|
|
|
|
autoDownloadLimitPadding: margins(22px, 8px, 22px, 8px);
|
2016-12-13 17:07:56 +00:00
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
confirmCaptionArea: InputField(defaultInputField) {
|
2018-11-22 12:48:50 +00:00
|
|
|
textMargins: margins(1px, 26px, 31px, 4px);
|
2020-11-19 14:42:57 +00:00
|
|
|
heightMax: 158px;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
2021-04-22 20:39:41 +00:00
|
|
|
confirmEditCaptionAreaHeightMax: 78px;
|
2016-11-22 09:48:13 +00:00
|
|
|
confirmBg: windowBgOver;
|
2016-11-15 11:56:49 +00:00
|
|
|
confirmMaxHeight: 245px;
|
2019-06-28 10:53:06 +00:00
|
|
|
confirmMaxHeightSkip: 25px;
|
2016-11-15 11:56:49 +00:00
|
|
|
confirmCompressedSkip: 10px;
|
|
|
|
|
2018-11-20 15:36:36 +00:00
|
|
|
supportInfoField: InputField(defaultInputField) {
|
|
|
|
heightMax: 256px;
|
|
|
|
}
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
connectionHostInputField: InputField(defaultInputField) {
|
|
|
|
width: 160px;
|
|
|
|
}
|
|
|
|
connectionPortInputField: InputField(defaultInputField) {
|
|
|
|
width: 55px;
|
|
|
|
}
|
|
|
|
connectionUserInputField: InputField(defaultInputField) {
|
|
|
|
width: 95px;
|
|
|
|
}
|
|
|
|
connectionPasswordInputField: InputField(defaultInputField) {
|
|
|
|
width: 120px;
|
|
|
|
}
|
|
|
|
connectionIPv6Skip: 11px;
|
|
|
|
|
2018-11-01 07:10:15 +00:00
|
|
|
autolockWidth: 256px;
|
|
|
|
autolockButton: Checkbox(defaultBoxCheckbox) {
|
2016-11-15 11:56:49 +00:00
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
|
2018-11-01 07:10:15 +00:00
|
|
|
langsRadio: Radio(defaultRadio) {
|
|
|
|
bg: boxBg;
|
|
|
|
}
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
backgroundPadding: 10px;
|
|
|
|
backgroundSize: size(108px, 193px);
|
2019-11-02 17:06:47 +00:00
|
|
|
backgroundScroll: ScrollArea(boxScroll) {
|
2016-12-13 17:07:56 +00:00
|
|
|
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
|
|
|
|
2021-04-23 15:54:50 +00:00
|
|
|
sendMediaPreviewSize: 308px;
|
|
|
|
sendMediaPreviewHeightMax: 1280;
|
|
|
|
sendMediaRowSkip: 10px;
|
|
|
|
|
2021-04-12 16:25:58 +00:00
|
|
|
editMediaButtonSize: 32px;
|
2021-05-01 17:04:24 +00:00
|
|
|
editMediaButtonSkip: 5px;
|
2019-04-04 16:31:34 +00:00
|
|
|
editMediaButtonFileSkipRight: 1px;
|
|
|
|
editMediaButtonFileSkipTop: 7px;
|
|
|
|
|
2021-04-12 16:25:58 +00:00
|
|
|
editMediaButtonIconFile: icon {{ "send_media/send_media_replace", menuIconFg }};
|
|
|
|
editMediaButton: IconButton(defaultIconButton) {
|
2019-04-04 16:31:34 +00:00
|
|
|
width: editMediaButtonSize;
|
|
|
|
height: editMediaButtonSize;
|
|
|
|
|
2021-05-01 17:04:24 +00:00
|
|
|
icon: editMediaButtonIconFile;
|
2019-04-04 16:31:34 +00:00
|
|
|
|
|
|
|
rippleAreaSize: editMediaButtonSize;
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
|
2021-04-23 15:54:50 +00:00
|
|
|
editMediaHintLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
minWidth: sendMediaPreviewSize;
|
|
|
|
}
|
|
|
|
|
2020-01-05 16:14:08 +00:00
|
|
|
// SendFilesBox
|
|
|
|
|
2020-10-19 08:49:31 +00:00
|
|
|
sendBoxAlbumGroupEditInternalSkip: 8px;
|
2021-04-12 16:25:58 +00:00
|
|
|
sendBoxAlbumGroupSkipRight: 5px;
|
|
|
|
sendBoxAlbumGroupSkipTop: 5px;
|
|
|
|
sendBoxAlbumGroupRadius: 4px;
|
|
|
|
sendBoxAlbumGroupSize: size(62px, 25px);
|
2021-05-01 17:04:24 +00:00
|
|
|
sendBoxAlbumSmallGroupSize: size(30px, 25px);
|
2020-01-05 16:14:08 +00:00
|
|
|
|
2020-10-16 10:38:12 +00:00
|
|
|
sendBoxFileGroupSkipTop: 2px;
|
2021-04-12 16:25:58 +00:00
|
|
|
sendBoxFileGroupSkipRight: 5px;
|
2020-10-19 10:02:39 +00:00
|
|
|
sendBoxFileGroupEditInternalSkip: -1px;
|
2020-10-16 10:38:12 +00:00
|
|
|
|
2020-01-09 15:11:51 +00:00
|
|
|
sendBoxAlbumGroupButtonFile: IconButton(editMediaButton) {
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgRipple;
|
|
|
|
}
|
2020-01-05 16:14:08 +00:00
|
|
|
}
|
2020-10-19 08:49:31 +00:00
|
|
|
sendBoxAlbumGroupEditButtonIconFile: editMediaButtonIconFile;
|
2021-04-12 16:25:58 +00:00
|
|
|
sendBoxAlbumGroupDeleteButtonIconFile: icon {{ "send_media/send_media_delete", menuIconFg }};
|
2020-01-05 16:14:08 +00:00
|
|
|
|
2021-05-01 17:04:24 +00:00
|
|
|
sendBoxAlbumButtonMediaEdit: icon {{ "send_media/send_media_replace", roundedFg }};
|
2021-04-12 16:25:58 +00:00
|
|
|
sendBoxAlbumGroupButtonMediaEdit: icon {{ "send_media/send_media_replace", roundedFg, point(4px, 1px) }};
|
|
|
|
sendBoxAlbumGroupButtonMediaDelete: icon {{ "send_media/send_media_delete", roundedFg }};
|
2020-10-19 08:49:31 +00:00
|
|
|
|
2020-01-05 16:14:08 +00:00
|
|
|
// End of SendFilesBox
|
|
|
|
|
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 }};
|
|
|
|
}
|
2018-10-06 18:51:07 +00:00
|
|
|
CalendarSizes {
|
|
|
|
width: pixels;
|
|
|
|
daysHeight: pixels;
|
|
|
|
cellSize: size;
|
|
|
|
cellInner: pixels;
|
|
|
|
padding: margins;
|
|
|
|
}
|
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;
|
2018-10-06 18:51:07 +00:00
|
|
|
defaultCalendarSizes: CalendarSizes {
|
|
|
|
width: boxWideWidth;
|
|
|
|
daysHeight: 32px;
|
|
|
|
cellSize: size(48px, 40px);
|
|
|
|
cellInner: 34px;
|
|
|
|
padding: margins(14px, 15px, 14px, 10px);
|
|
|
|
}
|
2017-03-07 14:03:07 +00:00
|
|
|
calendarDaysFont: normalFont;
|
|
|
|
calendarDaysFg: boxTitleAdditionalFg;
|
|
|
|
calendarScroll: backgroundScroll;
|
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
passcodeTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 20px;
|
|
|
|
}
|
|
|
|
|
2020-04-29 08:08:34 +00:00
|
|
|
usernamePadding: margins(22px, 6px, 21px, 12px);
|
2016-12-09 18:56:01 +00:00
|
|
|
usernameSkip: 49px;
|
2017-07-19 19:20:38 +00:00
|
|
|
usernameTextStyle: TextStyle(boxTextStyle, passcodeTextStyle) {
|
|
|
|
}
|
2016-12-21 15:05:58 +00:00
|
|
|
usernameDefaultFg: windowSubTextFg;
|
2016-12-09 18:56:01 +00:00
|
|
|
|
2021-04-23 15:54:50 +00:00
|
|
|
editMediaLabelMargins: margins(0px, 11px, 0px, 0px);
|
2019-03-27 10:44:57 +00:00
|
|
|
editMediaCheckboxMargins: margins(0px, 15px, 23px, 15px);
|
|
|
|
|
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-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) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 332px;
|
2017-03-21 11:42:04 +00:00
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
changePhoneIconTop: 20px;
|
|
|
|
changePhoneDescriptionTop: 96px;
|
|
|
|
changePhoneLabel: FlatLabel(defaultFlatLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 275px;
|
2017-03-21 11:42:04 +00:00
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
changePhoneError: FlatLabel(changePhoneLabel) {
|
|
|
|
textFg: boxTextFgError;
|
|
|
|
}
|
2017-07-04 13:31:18 +00:00
|
|
|
|
|
|
|
adminLogFilterUserpicLeft: 15px;
|
|
|
|
adminLogFilterLittleSkip: 16px;
|
|
|
|
adminLogFilterCheckbox: Checkbox(defaultBoxCheckbox) {
|
|
|
|
style: TextStyle(boxTextStyle) {
|
|
|
|
font: font(boxFontSize semibold);
|
|
|
|
linkFont: font(boxFontSize semibold);
|
|
|
|
linkFontOver: font(boxFontSize semibold underline);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
adminLogFilterSkip: 32px;
|
|
|
|
adminLogFilterUserCheckbox: Checkbox(defaultBoxCheckbox) {
|
|
|
|
margin: margins(8px, 6px, 8px, 6px);
|
2017-09-21 19:21:33 +00:00
|
|
|
checkPosition: point(8px, 6px);
|
2017-07-04 13:31:18 +00:00
|
|
|
}
|
2017-07-09 15:06:27 +00:00
|
|
|
|
2019-05-01 11:31:06 +00:00
|
|
|
rightsCheckbox: Checkbox(defaultCheckbox) {
|
|
|
|
textPosition: point(10px, 1px);
|
2017-07-09 15:06:27 +00:00
|
|
|
rippleBg: attentionButtonBgOver;
|
|
|
|
}
|
|
|
|
rightsToggle: Toggle(defaultToggle) {
|
|
|
|
toggledFg: windowBgActive;
|
|
|
|
untoggledFg: attentionButtonFg;
|
2019-01-21 10:22:18 +00:00
|
|
|
lockIcon: icon {{ "info_rights_lock", windowBgActive }};
|
2017-07-09 15:06:27 +00:00
|
|
|
xsize: 8px;
|
|
|
|
vsize: 5px;
|
|
|
|
vshift: 1px;
|
|
|
|
stroke: 2px;
|
|
|
|
duration: 120;
|
|
|
|
}
|
2019-09-18 11:19:05 +00:00
|
|
|
rightsDividerHeight: boxDividerHeight;
|
2019-01-08 10:54:18 +00:00
|
|
|
rightsDividerMargin: margins(0px, 0px, 0px, 20px);
|
2020-04-29 08:08:34 +00:00
|
|
|
rightsHeaderMargin: margins(22px, 0px, 22px, 8px);
|
|
|
|
rightsToggleMargin: margins(22px, 8px, 22px, 8px);
|
|
|
|
rightsAboutMargin: margins(22px, 8px, 22px, 8px);
|
2017-11-13 13:19:14 +00:00
|
|
|
rightsPhotoButton: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(60px, 60px);
|
2017-07-10 12:43:30 +00:00
|
|
|
photoSize: 60px;
|
|
|
|
}
|
2017-07-10 10:43:25 +00:00
|
|
|
rightsPhotoMargin: margins(20px, 0px, 15px, 18px);
|
|
|
|
rightsNameStyle: TextStyle(semiboldTextStyle) {
|
|
|
|
font: font(15px semibold);
|
|
|
|
linkFont: font(15px semibold);
|
|
|
|
linkFontOver: font(15px semibold underline);
|
|
|
|
}
|
|
|
|
rightsNameTop: 8px;
|
|
|
|
rightsStatusTop: 32px;
|
|
|
|
rightsHeaderLabel: FlatLabel(boxLabel) {
|
|
|
|
style: TextStyle(semiboldTextStyle) {
|
|
|
|
font: font(boxFontSize semibold);
|
|
|
|
linkFont: font(boxFontSize semibold);
|
|
|
|
linkFontOver: font(boxFontSize semibold underline);
|
|
|
|
}
|
|
|
|
textFg: windowActiveTextFg;
|
|
|
|
}
|
2019-01-08 10:54:18 +00:00
|
|
|
rightsUntilMargin: margins(0px, 8px, 0px, 20px);
|
2019-07-23 09:06:31 +00:00
|
|
|
rightsRankMargin: margins(0px, 16px, 0px, 20px);
|
2017-07-19 15:25:50 +00:00
|
|
|
|
2017-11-13 13:19:14 +00:00
|
|
|
mutePhotoButton: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(40px, 40px);
|
2017-07-19 15:25:50 +00:00
|
|
|
photoSize: 40px;
|
|
|
|
}
|
|
|
|
muteChatTitle: FlatLabel(boxLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 235px;
|
2017-07-19 15:25:50 +00:00
|
|
|
maxHeight: 20px; // block word wrap
|
|
|
|
style: TextStyle(boxTextStyle) {
|
|
|
|
font: font(boxFontSize semibold);
|
|
|
|
}
|
|
|
|
}
|
2017-09-20 19:44:22 +00:00
|
|
|
muteChatTitleLeft: 50px;
|
2017-08-05 20:01:20 +00:00
|
|
|
|
2020-11-29 18:26:49 +00:00
|
|
|
groupStickersRemove: defaultMultiSelectSearchCancel;
|
2017-08-05 20:01:20 +00:00
|
|
|
groupStickersRemovePosition: point(6px, 6px);
|
|
|
|
groupStickersFieldPadding: margins(8px, 6px, 8px, 6px);
|
2020-11-29 18:26:49 +00:00
|
|
|
groupStickersField: InputField(defaultMultiSelectSearchField) {
|
2017-08-05 20:01:20 +00:00
|
|
|
placeholderFont: boxTextFont;
|
|
|
|
font: boxTextFont;
|
|
|
|
placeholderMargins: margins(0px, 0px, 0px, 0px);
|
|
|
|
textMargins: margins(0px, 7px, 0px, 0px);
|
|
|
|
textBg: boxBg;
|
|
|
|
heightMin: 32px;
|
|
|
|
}
|
|
|
|
groupStickersSubTitleHeight: 36px;
|
2017-12-19 16:57:42 +00:00
|
|
|
|
2018-05-06 21:29:53 +00:00
|
|
|
proxyUsePadding: margins(22px, 6px, 22px, 5px);
|
|
|
|
proxyTryIPv6Padding: margins(22px, 8px, 22px, 5px);
|
2018-04-28 09:27:43 +00:00
|
|
|
proxyRowPadding: margins(22px, 8px, 8px, 8px);
|
2018-04-28 14:06:59 +00:00
|
|
|
proxyRowIconSkip: 32px;
|
2018-04-28 09:27:43 +00:00
|
|
|
proxyRowSkip: 2px;
|
|
|
|
proxyRowRipple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2018-05-03 15:05:18 +00:00
|
|
|
proxyRowSelectedIcon: icon {{ "passport_ready", windowActiveTextFg }};
|
2018-04-28 09:27:43 +00:00
|
|
|
proxyRowTitleFg: windowFg;
|
|
|
|
proxyRowTitlePalette: TextPalette(defaultTextPalette) {
|
|
|
|
linkFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
proxyRowTitleStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: semiboldFont;
|
|
|
|
linkFont: normalFont;
|
|
|
|
linkFontOver: normalFont;
|
|
|
|
}
|
|
|
|
proxyRowStatusFg: windowSubTextFg;
|
|
|
|
proxyRowStatusFgOnline: windowActiveTextFg;
|
2018-04-30 15:49:03 +00:00
|
|
|
proxyRowStatusFgOffline: boxTextFgError;
|
|
|
|
proxyRowStatusFgAvailable: boxTextFgGood;
|
2018-04-28 09:27:43 +00:00
|
|
|
proxyRowEdit: IconButton(defaultIconButton) {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
|
|
|
|
icon: icon {{ "settings_edit_name", menuIconFg }};
|
|
|
|
iconOver: icon {{ "settings_edit_name", menuIconFgOver }};
|
|
|
|
iconPosition: point(12px, 13px);
|
|
|
|
|
|
|
|
rippleAreaSize: 40px;
|
|
|
|
rippleAreaPosition: point(0px, 0px);
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2018-04-28 15:58:22 +00:00
|
|
|
|
|
|
|
proxyEditTitle: FlatLabel(defaultFlatLabel) {
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: autoDownloadTitleFont;
|
|
|
|
}
|
|
|
|
textFg: boxTitleFg;
|
|
|
|
}
|
|
|
|
proxyEditTitlePadding: margins(22px, 16px, 22px, 0px);
|
|
|
|
proxyEditTypePadding: margins(22px, 4px, 22px, 8px);
|
|
|
|
proxyEditInputPadding: margins(22px, 0px, 22px, 0px);
|
|
|
|
proxyEditSkip: 16px;
|
|
|
|
|
|
|
|
proxyEmptyListLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
align: align(top);
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
proxyEmptyListPadding: margins(22px, 48px, 22px, 0px);
|
2018-05-03 15:05:18 +00:00
|
|
|
proxyCheckingPosition: point(2px, 5px);
|
|
|
|
proxyCheckingSkip: 6px;
|
|
|
|
proxyCheckingAnimation: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
|
|
|
|
color: windowSubTextFg;
|
|
|
|
thickness: 1px;
|
|
|
|
size: size(8px, 8px);
|
|
|
|
}
|
2018-05-05 13:14:46 +00:00
|
|
|
proxyDropdownDownPosition: point(-2px, 35px);
|
|
|
|
proxyDropdownUpPosition: point(-2px, 20px);
|
2018-05-06 21:29:53 +00:00
|
|
|
|
|
|
|
proxyAboutPadding: margins(22px, 7px, 22px, 14px);
|
2018-05-15 17:22:28 +00:00
|
|
|
proxyAboutSponsorPadding: margins(22px, 7px, 22px, 0px);
|
2018-05-26 14:58:21 +00:00
|
|
|
|
|
|
|
markdownLinkFieldPadding: margins(22px, 0px, 22px, 10px);
|
2018-06-03 13:30:40 +00:00
|
|
|
|
|
|
|
termsContent: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 285px;
|
|
|
|
}
|
2020-04-29 08:08:34 +00:00
|
|
|
termsPadding: margins(22px, 4px, 16px, 16px);
|
|
|
|
termsAgePadding: margins(22px, 16px, 16px, 0px);
|
2018-09-11 19:00:23 +00:00
|
|
|
|
|
|
|
themesSmallSkip: 10px;
|
|
|
|
themesBackgroundSize: 120px;
|
2019-09-09 14:44:08 +00:00
|
|
|
themesMenuToggle: IconButton(defaultIconButton) {
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
|
2019-09-26 10:55:35 +00:00
|
|
|
icon: menuToggleIcon;
|
|
|
|
iconOver: menuToggleIconOver;
|
2019-09-09 14:44:08 +00:00
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(4px, 4px);
|
|
|
|
rippleAreaSize: 36px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
themesMenuPosition: point(-2px, 25px);
|
2018-12-20 16:02:44 +00:00
|
|
|
|
|
|
|
createPollField: InputField(defaultInputField) {
|
|
|
|
font: boxTextFont;
|
2020-04-06 11:54:05 +00:00
|
|
|
textMargins: margins(0px, 4px, 0px, 4px);
|
2018-12-20 16:02:44 +00:00
|
|
|
textAlign: align(left);
|
|
|
|
heightMin: 36px;
|
|
|
|
heightMax: 86px;
|
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
|
|
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
|
|
|
placeholderAlign: align(topleft);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: boxTextFont;
|
|
|
|
placeholderShift: -50px;
|
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
duration: 100;
|
|
|
|
}
|
|
|
|
createPollFieldPadding: margins(22px, 5px, 22px, 5px);
|
|
|
|
createPollOptionField: InputField(createPollField) {
|
2020-01-10 20:07:21 +00:00
|
|
|
textMargins: margins(22px, 11px, 40px, 11px);
|
2018-12-20 16:02:44 +00:00
|
|
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
2020-01-10 20:07:21 +00:00
|
|
|
heightMax: 68px;
|
2018-12-20 16:02:44 +00:00
|
|
|
}
|
2020-04-06 11:54:05 +00:00
|
|
|
createPollSolutionField: InputField(createPollField) {
|
|
|
|
textMargins: margins(0px, 4px, 0px, 4px);
|
|
|
|
border: 1px;
|
|
|
|
borderActive: 2px;
|
|
|
|
}
|
2018-12-20 16:02:44 +00:00
|
|
|
createPollLimitLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 274px;
|
|
|
|
align: align(topleft);
|
|
|
|
}
|
2020-01-10 20:07:21 +00:00
|
|
|
createPollLimitPadding: margins(22px, 10px, 22px, 16px);
|
2018-12-20 16:02:44 +00:00
|
|
|
createPollOptionRemove: CrossButton {
|
|
|
|
width: 22px;
|
|
|
|
height: 22px;
|
|
|
|
|
|
|
|
cross: CrossAnimation {
|
|
|
|
size: 22px;
|
|
|
|
skip: 6px;
|
|
|
|
stroke: 1px;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
crossFg: boxTitleCloseFg;
|
|
|
|
crossFgOver: boxTitleCloseFgOver;
|
|
|
|
crossPosition: point(0px, 0px);
|
|
|
|
|
|
|
|
duration: 150;
|
|
|
|
loadingPeriod: 1000;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2020-01-10 20:07:21 +00:00
|
|
|
createPollOptionRemovePosition: point(11px, 9px);
|
2018-12-21 11:25:49 +00:00
|
|
|
createPollWarning: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
palette: TextPalette(defaultTextPalette) {
|
|
|
|
linkFg: boxTextFgError;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
createPollWarningPosition: point(16px, 6px);
|
2020-04-29 08:08:34 +00:00
|
|
|
createPollCheckboxMargin: margins(22px, 10px, 22px, 10px);
|
2020-01-10 20:07:21 +00:00
|
|
|
createPollFieldTitlePadding: margins(22px, 7px, 10px, 6px);
|
2019-01-11 09:04:28 +00:00
|
|
|
|
|
|
|
callSettingsButton: IconButton {
|
|
|
|
width: 50px;
|
2019-11-02 17:06:47 +00:00
|
|
|
height: boxTitleHeight;
|
2019-01-11 09:04:28 +00:00
|
|
|
icon: icon {{ "menu_settings", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "menu_settings", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(8px, -1px);
|
|
|
|
rippleAreaSize: 44px;
|
|
|
|
rippleAreaPosition: point(0px, 6px);
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2019-02-07 16:36:30 +00:00
|
|
|
|
|
|
|
backgroundCheckbox: Checkbox(defaultCheckbox) {
|
|
|
|
textFg: msgServiceFg;
|
|
|
|
textFgActive: msgServiceFg;
|
|
|
|
|
|
|
|
width: -50px;
|
|
|
|
margin: margins(0px, 0px, 0px, 0px);
|
|
|
|
|
|
|
|
textPosition: point(0px, 8px);
|
|
|
|
checkPosition: point(0px, 0px);
|
|
|
|
|
|
|
|
style: semiboldTextStyle;
|
|
|
|
}
|
|
|
|
|
|
|
|
backgroundCheck: ServiceCheck {
|
|
|
|
margin: margins(12px, 8px, 8px, 8px);
|
|
|
|
diameter: 18px;
|
|
|
|
shift: 2px;
|
|
|
|
thickness: 2px;
|
2019-02-08 16:20:08 +00:00
|
|
|
tip: point(7px, 13px);
|
2019-02-07 16:36:30 +00:00
|
|
|
small: 3px;
|
|
|
|
large: 6px;
|
|
|
|
stroke: 2px;
|
|
|
|
color: msgServiceFg;
|
|
|
|
duration: 200;
|
|
|
|
}
|
2019-05-22 14:29:02 +00:00
|
|
|
|
|
|
|
urlAuthCheckbox: Checkbox(defaultBoxCheckbox) {
|
|
|
|
width: 240px;
|
|
|
|
}
|
2019-05-23 21:38:49 +00:00
|
|
|
|
|
|
|
linkedChatAbout: membersAbout;
|
2019-05-24 11:48:50 +00:00
|
|
|
linkedChatAboutPadding: margins(20px, 20px, 20px, 20px);
|
2019-06-10 15:47:22 +00:00
|
|
|
|
|
|
|
addContactFieldMargin: margins(19px, 0px, 19px, 10px);
|
|
|
|
addContactWarningMargin: margins(19px, 10px, 19px, 5px);
|
2019-06-11 14:31:52 +00:00
|
|
|
blockUserConfirmation: FlatLabel(boxLabel) {
|
|
|
|
minWidth: 240px;
|
|
|
|
}
|
2019-06-14 12:01:35 +00:00
|
|
|
|
2020-05-13 14:18:51 +00:00
|
|
|
transferCheckWidth: 320px;
|
2019-07-15 16:45:18 +00:00
|
|
|
|
|
|
|
slowmodeLabelsMargin: margins(0px, 5px, 0px, 0px);
|
|
|
|
slowmodeLabel: LabelSimple(defaultLabelSimple) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2019-07-23 09:06:31 +00:00
|
|
|
|
|
|
|
customBadgeField: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(2px, 7px, 2px, 0px);
|
|
|
|
|
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
|
|
|
placeholderMargins: margins(0px, 0px, 0px, 0px);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: normalFont;
|
|
|
|
|
|
|
|
heightMin: 32px;
|
|
|
|
}
|
2020-01-14 11:55:18 +00:00
|
|
|
|
|
|
|
pollResultsQuestion: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 320px;
|
|
|
|
textFg: windowBoldFg;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(16px semibold);
|
|
|
|
linkFont: font(16px semibold);
|
|
|
|
linkFontOver: font(16px semibold underline);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pollResultsVotesCount: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2020-01-16 12:04:21 +00:00
|
|
|
pollResultsHeaderPadding: margins(22px, 22px, 22px, 8px);
|
2020-11-29 18:26:49 +00:00
|
|
|
pollResultsShowMore: SettingsButton(defaultSettingsButton) {
|
2020-01-14 14:50:14 +00:00
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
|
|
|
textBg: windowBg;
|
|
|
|
textBgOver: windowBgOver;
|
|
|
|
|
|
|
|
font: semiboldFont;
|
|
|
|
|
|
|
|
height: 20px;
|
|
|
|
padding: margins(71px, 10px, 8px, 8px);
|
|
|
|
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
2021-01-19 07:14:50 +00:00
|
|
|
|
2021-02-01 18:30:00 +00:00
|
|
|
inviteViaLinkButton: SettingsButton(defaultSettingsButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
|
|
|
textBg: windowBg;
|
|
|
|
textBgOver: windowBgOver;
|
|
|
|
|
|
|
|
font: font(14px semibold);
|
|
|
|
|
|
|
|
height: 20px;
|
|
|
|
padding: margins(74px, 8px, 8px, 9px);
|
|
|
|
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
inviteViaLinkIcon: icon {{ "info/edit/group_manage_links", lightButtonFg }};
|
|
|
|
inviteViaLinkIconPosition: point(23px, 2px);
|
|
|
|
peerListWithInviteViaLink: PeerList(peerListBox) {
|
|
|
|
padding: margins(
|
|
|
|
0px,
|
|
|
|
0px,
|
|
|
|
0px,
|
|
|
|
membersMarginBottom);
|
|
|
|
}
|
2021-02-05 17:35:29 +00:00
|
|
|
peerListSingleRow: PeerList(peerListBox) {
|
|
|
|
padding: margins(0px, 0px, 0px, 0px);
|
|
|
|
}
|
2021-02-01 18:30:00 +00:00
|
|
|
|
2021-01-19 07:14:50 +00:00
|
|
|
scheduleHeight: 95px;
|
|
|
|
scheduleDateTop: 38px;
|
|
|
|
scheduleDateField: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(2px, 0px, 2px, 0px);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
heightMin: 30px;
|
|
|
|
textAlign: align(top);
|
|
|
|
font: font(14px);
|
|
|
|
}
|
|
|
|
scheduleTimeField: InputField(scheduleDateField) {
|
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
heightMin: 28px;
|
|
|
|
placeholderFont: font(14px);
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
}
|
|
|
|
scheduleDateWidth: 136px;
|
|
|
|
scheduleTimeWidth: 72px;
|
|
|
|
scheduleAtSkip: 24px;
|
|
|
|
scheduleAtTop: 42px;
|
|
|
|
scheduleAtLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
}
|
|
|
|
scheduleTimeSeparator: FlatLabel(defaultFlatLabel) {
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scheduleTimeSeparatorPadding: margins(2px, 0px, 2px, 0px);
|
2021-02-08 15:04:21 +00:00
|
|
|
|
|
|
|
boxAttentionDividerLabel: FlatLabel(boxDividerLabel) {
|
|
|
|
textFg: boxTextFgError;
|
|
|
|
}
|
2021-08-11 05:58:11 +00:00
|
|
|
|
|
|
|
autolockDateField: InputField(scheduleDateField) {
|
|
|
|
heightMin: 22px;
|
|
|
|
}
|
|
|
|
autolockTimeField: InputField(scheduleTimeField) {
|
|
|
|
heightMin: 20px;
|
|
|
|
}
|
|
|
|
autolockTimeWidth: 52px;
|
2021-10-07 00:06:39 +00:00
|
|
|
|
|
|
|
sponsoredUrlButtonSkip: 11px;
|
|
|
|
sponsoredUrlButton: RoundButton(defaultActiveButton) {
|
|
|
|
height: 32px;
|
|
|
|
width: -42px;
|
|
|
|
textBg: transparent;
|
|
|
|
textBgOver: transparent;
|
|
|
|
radius: roundRadiusLarge;
|
|
|
|
padding: margins(2px, 2px, 2px, 2px);
|
|
|
|
textFg: historyLinkInFg;
|
|
|
|
textFgOver: historyLinkInFg;
|
|
|
|
textTop: 7px;
|
|
|
|
font: normalFont;
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|