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;
|
|
|
|
}
|
2023-06-16 11:56:44 +00:00
|
|
|
ShortInfoBox {
|
|
|
|
label: FlatLabel;
|
|
|
|
labeled: FlatLabel;
|
|
|
|
labeledOneLine: FlatLabel;
|
|
|
|
}
|
2019-09-18 08:05:37 +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-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-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 {
|
2023-08-22 09:49:21 +00:00
|
|
|
size: size(72px, 72px);
|
|
|
|
photoSize: 72px;
|
2019-09-18 08:05:37 +00:00
|
|
|
photoPosition: point(-1px, -1px);
|
|
|
|
changeButton: defaultActiveButton;
|
|
|
|
changeIcon: defaultChangeUserpicIcon;
|
2023-08-22 09:49:21 +00:00
|
|
|
changeIconPosition: point(21px, 23px);
|
2019-09-18 08:05:37 +00:00
|
|
|
duration: 500;
|
|
|
|
uploadHeight: 24px;
|
|
|
|
uploadBg: msgDateImgBgOver;
|
|
|
|
uploadIcon: defaultUploadUserpicIcon;
|
|
|
|
uploadIconPosition: point(-1px, 1px);
|
|
|
|
}
|
2022-12-19 11:48:24 +00:00
|
|
|
uploadUserpicSize: 32px;
|
|
|
|
uploadUserpicButton: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(uploadUserpicSize, uploadUserpicSize);
|
|
|
|
photoSize: uploadUserpicSize;
|
|
|
|
changeIcon: icon {{ "settings/photo", activeButtonFg }};
|
|
|
|
changeIconPosition: point(4px, 4px);
|
|
|
|
}
|
|
|
|
uploadUserpicButtonBorder: 2px;
|
2022-12-22 13:42:44 +00:00
|
|
|
restoreUserpicIcon: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(22px, 22px);
|
|
|
|
photoSize: 22px;
|
|
|
|
}
|
2019-09-18 08:05:37 +00:00
|
|
|
|
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) {
|
2021-10-14 13:45:13 +00:00
|
|
|
font: font(18px semibold);
|
|
|
|
linkFont: font(18px semibold);
|
|
|
|
linkFontOver: font(18px semibold underline);
|
2016-12-23 13:21:01 +00:00
|
|
|
}
|
2016-07-08 16:59:46 +00:00
|
|
|
}
|
2021-10-14 13:45:13 +00:00
|
|
|
confirmInviteAbout: FlatLabel(boxLabel) {
|
2016-07-08 16:59:46 +00:00
|
|
|
align: align(center);
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 320px;
|
2021-10-14 13:45:13 +00:00
|
|
|
maxHeight: 60px;
|
|
|
|
style: TextStyle(boxLabelStyle) {
|
|
|
|
lineHeight: 19px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
confirmInviteStatus: FlatLabel(confirmInviteAbout) {
|
2016-07-08 16:59:46 +00:00
|
|
|
textFg: windowSubTextFg;
|
2021-10-14 13:45:13 +00:00
|
|
|
style: boxLabelStyle;
|
2021-11-03 12:27:51 +00:00
|
|
|
maxHeight: 0px;
|
2016-07-08 16:59:46 +00:00
|
|
|
}
|
2021-10-14 13:45:13 +00:00
|
|
|
confirmInviteAboutPadding: margins(36px, 4px, 36px, 10px);
|
|
|
|
confirmInviteAboutRequestsPadding: margins(36px, 9px, 36px, 15px);
|
|
|
|
confirmInviteTitleTop: 141px;
|
|
|
|
confirmInvitePhotoSize: 96px;
|
|
|
|
confirmInvitePhotoTop: 33px;
|
|
|
|
confirmInviteStatusTop: 164px;
|
|
|
|
confirmInviteUserHeight: 100px;
|
|
|
|
confirmInviteUserPhotoSize: 50px;
|
|
|
|
confirmInviteUserPhotoTop: 210px;
|
|
|
|
confirmInviteUsersWidth: 320px;
|
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;
|
|
|
|
}
|
2021-10-14 13:45:13 +00:00
|
|
|
confirmInviteUserNameTop: 264px;
|
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-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
|
|
|
}
|
2016-08-28 19:16:23 +00:00
|
|
|
|
2021-12-13 10:16:40 +00:00
|
|
|
contactUserIcon: icon {{ "settings/settings_name", menuIconFg }};
|
|
|
|
contactPhoneIcon: icon {{ "settings/settings_phone_number", menuIconFg }};
|
2018-09-14 19:00:33 +00:00
|
|
|
contactIconPosition: point(-5px, 23px);
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2022-02-07 15:35:32 +00:00
|
|
|
contactPadding: margins(49px, 2px, 0px, 14px);
|
|
|
|
contactSkip: 9px;
|
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-10-22 18:58:25 +00:00
|
|
|
|
2021-12-22 15:14:16 +00:00
|
|
|
contactsSortButton: IconButton(defaultIconButton) {
|
|
|
|
width: 48px;
|
|
|
|
height: 54px;
|
|
|
|
icon: icon{{ "contacts_alphabet", boxTitleCloseFg }};
|
|
|
|
iconOver: icon{{ "contacts_alphabet", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(10px, -1px);
|
|
|
|
rippleAreaPosition: point(1px, 6px);
|
|
|
|
rippleAreaSize: 42px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contactsSortOnlineIcon: icon{{ "contacts_online", boxTitleCloseFg }};
|
|
|
|
contactsSortOnlineIconOver: icon{{ "contacts_online", boxTitleCloseFgOver }};
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
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
|
|
|
|
2022-11-30 11:02:07 +00:00
|
|
|
membersAboutLimitPadding: margins(0px, 16px, 0px, 16px);
|
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
|
|
|
|
2022-12-29 07:41:49 +00:00
|
|
|
fragmentBoxButton: RoundButton(introFragmentButton) {
|
2022-12-28 18:41:38 +00:00
|
|
|
width: 256px;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
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) {
|
2021-11-03 12:01:38 +00:00
|
|
|
minWidth: 300px;
|
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-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-11-15 11:56:49 +00:00
|
|
|
confirmMaxHeight: 245px;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
editMediaHintLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
minWidth: sendMediaPreviewSize;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
|
2021-11-11 14:24:45 +00:00
|
|
|
icon: icon {{ "calendar_down-flip_vertical", boxTitleFg }};
|
|
|
|
iconPosition: point(-1px, -1px);
|
2017-03-07 14:03:07 +00:00
|
|
|
|
2022-02-27 14:34:22 +00:00
|
|
|
rippleAreaPosition: point(2px, 2px);
|
2017-03-07 14:03:07 +00:00
|
|
|
rippleAreaSize: 44px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
2021-11-11 14:24:45 +00:00
|
|
|
calendarPreviousDisabled: icon {{ "calendar_down-flip_vertical", menuIconFg }};
|
2017-03-07 16:40:17 +00:00
|
|
|
calendarNext: IconButton(calendarPrevious) {
|
2021-11-11 14:24:45 +00:00
|
|
|
icon: icon {{ "calendar_down", boxTitleFg }};
|
2017-03-07 14:03:07 +00:00
|
|
|
}
|
2018-10-06 18:51:07 +00:00
|
|
|
CalendarSizes {
|
|
|
|
width: pixels;
|
|
|
|
daysHeight: pixels;
|
|
|
|
cellSize: size;
|
|
|
|
cellInner: pixels;
|
|
|
|
padding: margins;
|
|
|
|
}
|
2021-11-11 14:24:45 +00:00
|
|
|
calendarNextDisabled: icon {{ "calendar_down", menuIconFg }};
|
2017-03-07 14:03:07 +00:00
|
|
|
calendarTitleFont: boxTitleFont;
|
2018-10-06 18:51:07 +00:00
|
|
|
defaultCalendarSizes: CalendarSizes {
|
|
|
|
width: boxWideWidth;
|
2021-11-11 11:44:12 +00:00
|
|
|
daysHeight: 40px;
|
2018-10-06 18:51:07 +00:00
|
|
|
cellSize: size(48px, 40px);
|
|
|
|
cellInner: 34px;
|
2021-11-11 13:03:06 +00:00
|
|
|
padding: margins(14px, 0px, 14px, 0px);
|
2018-10-06 18:51:07 +00:00
|
|
|
}
|
2017-03-07 14:03:07 +00:00
|
|
|
calendarDaysFont: normalFont;
|
|
|
|
calendarDaysFg: boxTitleAdditionalFg;
|
2021-11-11 11:44:12 +00:00
|
|
|
calendarScroll: ScrollArea(defaultSolidScroll) {
|
|
|
|
deltat: 3px;
|
|
|
|
deltab: 3px;
|
|
|
|
round: 1px;
|
|
|
|
width: 8px;
|
|
|
|
deltax: 3px;
|
|
|
|
hiding: 1000;
|
|
|
|
}
|
2022-03-06 11:34:33 +00:00
|
|
|
CalendarColors {
|
|
|
|
dayTextColor: color;
|
|
|
|
dayTextGrayedOutColor: color;
|
|
|
|
|
|
|
|
iconButtonNext: IconButton;
|
|
|
|
iconButtonNextDisabled: icon;
|
|
|
|
iconButtonPrevious: IconButton;
|
|
|
|
iconButtonPreviousDisabled: icon;
|
|
|
|
|
|
|
|
iconButtonRippleColorDisabled: color;
|
|
|
|
|
|
|
|
rippleColor: color;
|
|
|
|
rippleColorHighlighted: color;
|
|
|
|
rippleGrayedOutColor: color;
|
|
|
|
|
|
|
|
titleTextColor: color;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultCalendarColors: CalendarColors {
|
|
|
|
dayTextColor: boxTextFg;
|
|
|
|
dayTextGrayedOutColor: windowSubTextFg;
|
|
|
|
|
|
|
|
iconButtonNext: calendarNext;
|
|
|
|
iconButtonNextDisabled: calendarNextDisabled;
|
|
|
|
iconButtonPrevious: calendarPrevious;
|
|
|
|
iconButtonPreviousDisabled: calendarPreviousDisabled;
|
|
|
|
|
|
|
|
iconButtonRippleColorDisabled: boxBg;
|
|
|
|
|
|
|
|
rippleColor: windowBgOver;
|
|
|
|
rippleColorHighlighted: dialogsRippleBgActive;
|
|
|
|
rippleGrayedOutColor: windowBgRipple;
|
|
|
|
|
|
|
|
titleTextColor: boxTitleFg;
|
|
|
|
}
|
2017-03-07 14:03:07 +00:00
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
passcodeTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 20px;
|
|
|
|
}
|
|
|
|
|
2022-02-11 09:09:20 +00:00
|
|
|
usernamePadding: margins(24px, 2px, 24px, 10px);
|
|
|
|
usernameSkip: 44px;
|
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
|
|
|
|
2022-04-13 08:05:10 +00:00
|
|
|
changePhoneButton: RoundButton(defaultActiveButton) {
|
|
|
|
width: 256px;
|
|
|
|
}
|
|
|
|
changePhoneButtonPadding: margins(0px, 32px, 0px, 44px);
|
|
|
|
changePhoneTitle: FlatLabel(boxTitle) {
|
|
|
|
}
|
|
|
|
changePhoneTitlePadding: margins(0px, 8px, 0px, 8px);
|
|
|
|
changePhoneDescription: FlatLabel(defaultFlatLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 332px;
|
2017-03-21 11:42:04 +00:00
|
|
|
align: align(top);
|
2022-04-13 08:05:10 +00:00
|
|
|
textFg: windowSubTextFg;
|
2017-03-21 11:42:04 +00:00
|
|
|
}
|
2022-04-13 08:05:10 +00:00
|
|
|
changePhoneDescriptionPadding: margins(0px, 1px, 0px, 8px);
|
|
|
|
changePhoneIconPadding: margins(0px, 39px, 0px, 5px);
|
|
|
|
changePhoneIconSize: 120px;
|
2017-03-21 11:42:04 +00:00
|
|
|
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
|
|
|
}
|
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;
|
2022-02-25 13:11:49 +00:00
|
|
|
lockIcon: icon {{ "info/info_rights_lock", windowBgActive }};
|
2017-07-09 15:06:27 +00:00
|
|
|
xsize: 8px;
|
|
|
|
vsize: 5px;
|
|
|
|
vshift: 1px;
|
|
|
|
stroke: 2px;
|
|
|
|
duration: 120;
|
|
|
|
}
|
2023-01-29 18:47:22 +00:00
|
|
|
|
|
|
|
rightsButton: SettingsButton(defaultSettingsButton) {
|
|
|
|
padding: margins(22px, 8px, 22px, 8px);
|
|
|
|
|
|
|
|
toggle: rightsToggle;
|
|
|
|
toggleOver: rightsToggle;
|
2023-02-01 16:34:50 +00:00
|
|
|
toggleSkip: 20px;
|
2023-01-29 18:47:22 +00:00
|
|
|
}
|
2023-01-30 01:24:12 +00:00
|
|
|
rightsButtonToggleWidth: 70px;
|
2019-01-08 10:54:18 +00:00
|
|
|
rightsDividerMargin: margins(0px, 0px, 0px, 20px);
|
2023-01-30 01:24:12 +00:00
|
|
|
rightsHeaderMargin: margins(22px, 13px, 22px, 7px);
|
2020-04-29 08:08:34 +00:00
|
|
|
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);
|
2022-10-24 09:13:21 +00:00
|
|
|
rightsRankMargin: margins(0px, 7px, 0px, 20px);
|
2017-07-19 15:25:50 +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;
|
|
|
|
}
|
2023-08-09 10:46:30 +00:00
|
|
|
groupStickersSubTitleHeight: 48px;
|
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;
|
|
|
|
}
|
|
|
|
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 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;
|
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;
|
|
|
|
}
|
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;
|
2022-02-25 13:11:49 +00:00
|
|
|
stroke: 1.;
|
2018-12-20 16:02:44 +00:00
|
|
|
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
|
|
|
|
2019-02-07 16:36:30 +00:00
|
|
|
backgroundCheckbox: Checkbox(defaultCheckbox) {
|
|
|
|
textFg: msgServiceFg;
|
|
|
|
textFgActive: msgServiceFg;
|
|
|
|
|
|
|
|
width: -50px;
|
|
|
|
margin: margins(0px, 0px, 0px, 0px);
|
|
|
|
|
2022-03-08 11:23:21 +00:00
|
|
|
textPosition: point(0px, 6px);
|
2019-02-07 16:36:30 +00:00
|
|
|
checkPosition: point(0px, 0px);
|
|
|
|
|
|
|
|
style: semiboldTextStyle;
|
|
|
|
}
|
|
|
|
|
|
|
|
backgroundCheck: ServiceCheck {
|
2022-03-08 11:23:21 +00:00
|
|
|
margin: margins(10px, 6px, 8px, 6px);
|
2019-02-07 16:36:30 +00:00
|
|
|
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
|
|
|
|
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;
|
|
|
|
|
2022-03-01 09:51:22 +00:00
|
|
|
style: semiboldTextStyle;
|
2020-01-14 14:50:14 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2022-03-01 09:51:22 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px semibold);
|
|
|
|
linkFont: font(14px semibold);
|
|
|
|
linkFontOver: font(14px semibold underline);
|
|
|
|
}
|
2021-02-01 18:30:00 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2022-03-28 11:22:11 +00:00
|
|
|
muteBoxTimeField: InputField(scheduleDateField) {
|
|
|
|
textMargins: margins(0px, 0px, 0px, 0px);
|
|
|
|
placeholderMargins: margins(0px, 0px, 0px, 0px);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
heightMin: 30px;
|
|
|
|
textAlign: align(left);
|
|
|
|
font: font(14px);
|
|
|
|
}
|
|
|
|
muteBoxTimeFieldPadding: margins(5px, 0px, 5px, 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;
|
|
|
|
}
|
|
|
|
}
|
2021-10-13 14:29:10 +00:00
|
|
|
|
|
|
|
requestsBoxItem: PeerListItem(peerListBoxItem) {
|
|
|
|
height: 99px;
|
2021-10-13 20:08:13 +00:00
|
|
|
button: OutlineButton(defaultPeerListButton) {
|
|
|
|
textBg: contactsBg;
|
|
|
|
textBgOver: contactsBg;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: contactsBgOver;
|
|
|
|
}
|
|
|
|
}
|
2021-10-13 14:29:10 +00:00
|
|
|
}
|
|
|
|
requestsBoxList: PeerList(peerListBox) {
|
2021-10-13 20:08:13 +00:00
|
|
|
padding: margins(0px, 12px, 0px, 12px);
|
2021-10-13 14:29:10 +00:00
|
|
|
item: requestsBoxItem;
|
|
|
|
}
|
2023-07-03 20:05:11 +00:00
|
|
|
contactsWithStories: PeerList(peerListBox) {
|
2023-07-05 08:55:22 +00:00
|
|
|
padding: margins(0px, 0px, 0px, 0px);
|
2023-07-03 20:05:11 +00:00
|
|
|
item: PeerListItem(peerListBoxItem) {
|
2023-07-05 08:55:22 +00:00
|
|
|
height: 52px;
|
|
|
|
photoPosition: point(18px, 5px);
|
|
|
|
namePosition: point(70px, 7px);
|
|
|
|
statusPosition: point(70px, 27px);
|
|
|
|
|
2023-07-03 20:05:11 +00:00
|
|
|
checkbox: RoundImageCheckbox(defaultPeerListCheckbox) {
|
2023-07-05 08:55:22 +00:00
|
|
|
selectExtendTwice: 1px;
|
|
|
|
imageRadius: 21px;
|
|
|
|
imageSmallRadius: 19px;
|
2023-07-03 20:05:11 +00:00
|
|
|
check: RoundCheckbox(defaultPeerListCheck) {
|
|
|
|
size: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
nameFgChecked: contactsNameFg;
|
|
|
|
}
|
|
|
|
}
|
2023-07-05 08:55:22 +00:00
|
|
|
storiesReadLineTwice: 2px;
|
|
|
|
storiesUnreadLineTwice: 4px;
|
2021-10-13 14:29:10 +00:00
|
|
|
requestsAcceptButton: RoundButton(defaultActiveButton) {
|
2021-10-13 20:08:13 +00:00
|
|
|
width: -28px;
|
|
|
|
height: 30px;
|
|
|
|
textTop: 6px;
|
2021-10-13 14:29:10 +00:00
|
|
|
}
|
|
|
|
requestsRejectButton: RoundButton(defaultLightButton) {
|
2021-10-13 20:08:13 +00:00
|
|
|
width: -28px;
|
|
|
|
height: 30px;
|
|
|
|
textTop: 6px;
|
2021-10-13 14:29:10 +00:00
|
|
|
}
|
|
|
|
requestAcceptPosition: point(71px, 58px);
|
|
|
|
requestButtonsSkip: 9px;
|
2022-04-04 21:00:58 +00:00
|
|
|
|
|
|
|
ringtonesBoxButton: SettingsButton(defaultSettingsButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
|
|
|
padding: margins(56px, 10px, 22px, 8px);
|
|
|
|
iconLeft: 25px;
|
|
|
|
}
|
|
|
|
ringtonesBoxSkip: 7px;
|
2022-05-17 00:04:44 +00:00
|
|
|
|
2022-06-12 05:23:23 +00:00
|
|
|
gradientButtonGlareDuration: 700;
|
|
|
|
gradientButtonGlareTimeout: 2000;
|
|
|
|
gradientButtonGlareWidth: 100px;
|
2023-06-16 11:56:44 +00:00
|
|
|
|
|
|
|
infoLabeledOneLine: FlatLabel(defaultFlatLabel) {
|
|
|
|
maxHeight: 20px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
lineHeight: 19px;
|
|
|
|
}
|
|
|
|
margin: margins(5px, 5px, 5px, 5px);
|
|
|
|
}
|
|
|
|
infoLabelSkip: 2px;
|
|
|
|
infoLabeled: FlatLabel(infoLabeledOneLine) {
|
|
|
|
minWidth: 180px;
|
|
|
|
maxHeight: 0px;
|
|
|
|
margin: margins(5px, 5px, 5px, 5px);
|
|
|
|
}
|
|
|
|
infoLabel: FlatLabel(infoLabeled) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
|
|
|
|
shortInfoBox: ShortInfoBox {
|
|
|
|
label: infoLabel;
|
|
|
|
labeled: infoLabeled;
|
|
|
|
labeledOneLine: infoLabeledOneLine;
|
|
|
|
}
|