2016-07-08 19:59:46 +03:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop version of Telegram messaging app, see https://telegram.org
|
|
|
|
|
|
|
|
Telegram Desktop is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
It is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
In addition, as a special exception, the copyright holders give permission
|
|
|
|
to link the code of portions of this program with the OpenSSL library.
|
|
|
|
|
|
|
|
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
|
|
|
Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
|
|
|
*/
|
|
|
|
using "basic.style";
|
2016-11-04 14:14:47 +03:00
|
|
|
|
2016-10-20 14:34:48 +03:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-10-31 15:29:26 +03:00
|
|
|
using "intro/intro.style";
|
2016-07-08 19:59:46 +03:00
|
|
|
|
2016-10-22 21:58:25 +03:00
|
|
|
boxBlueTitleBg: #6393b5;
|
2016-10-31 15:29:26 +03:00
|
|
|
boxBlueTitleFg: #ffffff;
|
2016-10-22 21:58:25 +03:00
|
|
|
boxBlueTitleAdditionalFg: #dae9f5;
|
|
|
|
boxBlueTitleAdditionalSkip: 12px;
|
|
|
|
boxBlueTitlePosition: point(23px, 18px);
|
|
|
|
boxBlueTitleShadow: icon {{ "box_title_shadow", windowShadowFg }};
|
2016-10-31 15:29:26 +03:00
|
|
|
|
|
|
|
boxBlueClose: MaskButton(defaultMaskButton) {
|
|
|
|
width: boxTitleHeight;
|
|
|
|
height: boxTitleHeight;
|
|
|
|
|
|
|
|
bg: boxBlueTitleBg;
|
|
|
|
iconBg: #c8e1f0;
|
|
|
|
iconBgOver: #ffffff;
|
|
|
|
|
2016-11-04 11:23:50 +03:00
|
|
|
icon: icon {{ "box_button_close-invert", boxBlueTitleBg }};
|
2016-10-31 15:29:26 +03:00
|
|
|
}
|
2016-10-22 21:58:25 +03:00
|
|
|
|
2016-07-08 19:59:46 +03:00
|
|
|
confirmInviteTitle: flatLabel(labelDefFlat) {
|
|
|
|
font: font(16px semibold);
|
|
|
|
align: align(center);
|
|
|
|
width: 320px;
|
|
|
|
maxHeight: 24px;
|
|
|
|
textFg: #333333;
|
|
|
|
}
|
|
|
|
confirmInviteStatus: flatLabel(labelDefFlat) {
|
|
|
|
font: font(boxFontSize);
|
|
|
|
align: align(center);
|
|
|
|
width: 320px;
|
|
|
|
maxHeight: 20px;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
confirmInviteTitleTop: 106px;
|
|
|
|
confirmInvitePhotoSize: 76px;
|
|
|
|
confirmInvitePhotoTop: 20px;
|
|
|
|
confirmInviteStatusTop: 136px;
|
|
|
|
confirmInviteUserHeight: 80px;
|
|
|
|
confirmInviteUserPhotoSize: 56px;
|
|
|
|
confirmInviteUserPhotoTop: 166px;
|
|
|
|
confirmInviteUserName: flatLabel(labelDefFlat) {
|
|
|
|
font: normalFont;
|
|
|
|
align: align(center);
|
|
|
|
width: 66px;
|
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
|
|
|
confirmInviteUserNameTop: 227px;
|
2016-07-18 18:39:10 +03:00
|
|
|
|
2016-07-28 20:01:08 +03:00
|
|
|
confirmPhoneAboutLabel: flatLabel(labelDefFlat) {
|
|
|
|
width: 282px;
|
|
|
|
}
|
|
|
|
confirmPhoneCodeField: InputField(defaultInputField) {
|
|
|
|
}
|
2016-08-12 18:22:11 +03:00
|
|
|
|
|
|
|
revokePublicLinkStatusStyle: textStyle(defaultTextStyle) {
|
|
|
|
linkFg: contactsStatusFgOnline;
|
|
|
|
linkFgDown: contactsStatusFgOnline;
|
|
|
|
linkFlagsOver: font(fsize);
|
|
|
|
}
|
|
|
|
aboutRevokePublicLabel: flatLabel(labelDefFlat) {
|
|
|
|
font: normalFont;
|
|
|
|
align: align(topleft);
|
|
|
|
width: 320px;
|
|
|
|
textFg: windowTextFg;
|
|
|
|
}
|
2016-08-28 13:16:23 -06:00
|
|
|
|
2016-10-22 21:58:25 +03:00
|
|
|
contactUserIcon: icon {{ "add_contact_user", #999999 }};
|
|
|
|
contactPhoneIcon: icon {{ "add_contact_phone", #999999 }};
|
|
|
|
contactIconTop: 10px;
|
|
|
|
|
|
|
|
contactsNewItemHeight: 53px;
|
|
|
|
contactsNewItemIcon: icon {{ "contacts_add", #749fc2, point(29px, 19px) }};
|
|
|
|
contactsNewItemTop: 18px;
|
|
|
|
contactsNewItemFg: #4b82af;
|
|
|
|
|
2016-10-20 22:48:35 +03:00
|
|
|
contactsMultiSelect: MultiSelect {
|
2016-10-31 15:29:26 +03:00
|
|
|
bg: boxSearchBg;
|
2016-10-21 15:28:26 +03:00
|
|
|
padding: margins(8px, 8px, 8px, 8px);
|
2016-10-20 22:48:35 +03:00
|
|
|
maxHeight: 104px;
|
2016-10-21 15:28:26 +03:00
|
|
|
scroll: flatScroll(solidScroll) {
|
|
|
|
deltat: 3px;
|
|
|
|
deltab: 3px;
|
|
|
|
round: 1px;
|
|
|
|
width: 8px;
|
|
|
|
deltax: 3px;
|
|
|
|
hiding: 1000;
|
|
|
|
}
|
|
|
|
|
|
|
|
item: MultiSelectItem {
|
|
|
|
padding: margins(6px, 7px, 12px, 0px);
|
|
|
|
maxWidth: 128px;
|
|
|
|
height: 32px;
|
|
|
|
font: normalFont;
|
|
|
|
textBg: contactsBgOver;
|
|
|
|
textFg: windowTextFg;
|
2016-10-31 15:29:26 +03:00
|
|
|
textActiveBg: activeButtonBg;
|
|
|
|
textActiveFg: activeButtonFg;
|
|
|
|
deleteFg: activeButtonFg;
|
2016-10-24 00:25:29 +03:00
|
|
|
deleteLeft: 10px;
|
|
|
|
deleteStroke: 2px;
|
2016-10-21 15:28:26 +03:00
|
|
|
duration: 150;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
itemSkip: 8px;
|
|
|
|
|
2016-10-22 16:03:20 +03:00
|
|
|
field: InputField(defaultInputField) {
|
|
|
|
textBg: transparent;
|
|
|
|
textMargins: margins(2px, 7px, 2px, 0px);
|
|
|
|
|
2016-10-28 12:20:24 +03:00
|
|
|
placeholderFg: #999999;
|
|
|
|
placeholderFgActive: #aaaaaa;
|
2016-10-22 16:03:20 +03:00
|
|
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
|
|
|
|
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
borderError: 0px;
|
|
|
|
|
|
|
|
height: 32px;
|
|
|
|
|
|
|
|
font: normalFont;
|
|
|
|
}
|
|
|
|
fieldMinWidth: 42px;
|
2016-11-04 14:14:47 +03:00
|
|
|
fieldIcon: boxFieldSearchIcon;
|
2016-10-21 15:28:26 +03:00
|
|
|
fieldIconSkip: 36px;
|
2016-10-22 16:03:20 +03:00
|
|
|
|
2016-10-31 15:29:26 +03:00
|
|
|
fieldCancel: MaskButton(defaultMaskButton) {
|
2016-10-22 16:03:20 +03:00
|
|
|
width: 41px;
|
|
|
|
height: 48px;
|
|
|
|
|
2016-10-31 15:29:26 +03:00
|
|
|
bg: boxSearchBg;
|
|
|
|
icon: boxSearchCancelIcon;
|
|
|
|
|
|
|
|
iconBg: boxSearchCancelIconFg;
|
|
|
|
iconBgOver: boxSearchCancelIconFgOver;
|
2016-10-22 16:03:20 +03:00
|
|
|
|
|
|
|
iconPosition: point(8px, 18px);
|
2016-11-01 15:46:34 +03:00
|
|
|
iconPositionDown: point(8px, 18px);
|
2016-10-22 16:03:20 +03:00
|
|
|
}
|
2016-10-21 15:28:26 +03:00
|
|
|
fieldCancelSkip: 34px;
|
2016-10-20 22:48:35 +03:00
|
|
|
}
|
2016-10-20 16:41:46 +03:00
|
|
|
contactsPhotoCheckbox: RoundImageCheckbox {
|
|
|
|
imageRadius: 21px;
|
|
|
|
imageSmallRadius: 18px;
|
2016-10-20 14:34:48 +03:00
|
|
|
selectWidth: 2px;
|
2016-11-07 18:24:28 +03:00
|
|
|
selectFg: windowActiveBg;
|
2016-10-20 14:34:48 +03:00
|
|
|
selectDuration: 150;
|
|
|
|
checkBorder: windowBg;
|
2016-11-07 18:24:28 +03:00
|
|
|
checkBg: windowActiveBg;
|
2016-10-20 14:34:48 +03:00
|
|
|
checkRadius: 10px;
|
|
|
|
checkSmallRadius: 3px;
|
2016-11-07 18:24:28 +03:00
|
|
|
checkIcon: icon {{ "default_checkbox_check", windowActiveFg, point(3px, 6px) }};
|
2016-10-20 14:34:48 +03:00
|
|
|
}
|
2016-10-20 16:41:46 +03:00
|
|
|
contactsPhotoDisabledCheckFg: #bbbbbb;
|
|
|
|
contactsNameCheckedFg: #2b88b8;
|
|
|
|
|
|
|
|
localStorageBoxSkip: 10px;
|
|
|
|
|
|
|
|
shareRowsTop: 12px;
|
|
|
|
shareRowHeight: 108px;
|
|
|
|
sharePhotoTop: 6px;
|
|
|
|
sharePhotoCheckbox: RoundImageCheckbox(contactsPhotoCheckbox) {
|
|
|
|
imageRadius: 28px;
|
|
|
|
imageSmallRadius: 24px;
|
|
|
|
}
|
2016-09-06 15:28:37 +03:00
|
|
|
shareNameFont: font(11px);
|
|
|
|
shareNameFg: windowTextFg;
|
|
|
|
shareNameActiveFg: btnYesColor;
|
|
|
|
shareNameTop: 6px;
|
|
|
|
shareColumnSkip: 6px;
|
|
|
|
shareActivateDuration: 150;
|
2016-09-06 17:45:10 +03:00
|
|
|
shareScrollDuration: 300;
|
2016-10-05 21:37:48 +03:00
|
|
|
|
|
|
|
notificationsBoxHeight: 450px;
|
|
|
|
notificationsBoxMonitorTop: 63px;
|
2016-10-31 15:29:26 +03:00
|
|
|
notificationsBoxMonitor: icon {{ "monitor", notificationsBoxMonitorFg }};
|
2016-10-05 21:37:48 +03:00
|
|
|
notificationsBoxScreenTop: 10px;
|
|
|
|
notificationsBoxScreenSize: size(280px, 160px);
|
2016-11-04 11:23:50 +03:00
|
|
|
notificationsBoxScreenBg: #6389a8;
|
2016-10-05 21:37:48 +03:00
|
|
|
notificationsBoxCountLabelTop: 80px;
|
|
|
|
notificationsBoxCountTop: 30px;
|
2016-10-06 19:41:09 +03:00
|
|
|
|
|
|
|
notificationsSampleSkip: 5px;
|
|
|
|
notificationsSampleTopSkip: 5px;
|
|
|
|
notificationsSampleBottomSkip: 5px;
|
|
|
|
notificationsSampleMargin: 2px;
|
|
|
|
|
|
|
|
notificationSampleOpacity: 0.5;
|
|
|
|
notificationSampleSize: size(64px, 16px);
|
2016-10-27 17:10:28 +03:00
|
|
|
|
2016-10-31 15:29:26 +03:00
|
|
|
membersAboutLimitPadding: margins(0px, 12px, 0px, 12px);
|
2016-10-28 00:19:38 +03:00
|
|
|
|
|
|
|
sessionsScroll: flatScroll(boxScroll) {
|
|
|
|
round: 2px;
|
|
|
|
deltax: 5px;
|
|
|
|
width: 14px;
|
|
|
|
}
|
|
|
|
sessionsHeight: 440px;
|
|
|
|
sessionHeight: 70px;
|
|
|
|
sessionCurrentPadding: margins(0px, 7px, 0px, 4px);
|
|
|
|
sessionCurrentHeight: 118px;
|
|
|
|
sessionPadding: margins(21px, 10px, 21px, 0px);
|
|
|
|
sessionNameFont: msgNameFont;
|
2016-10-31 15:29:26 +03:00
|
|
|
sessionNameFg: boxTextFg;
|
|
|
|
sessionWhenFont: msgDateFont;
|
|
|
|
sessionWhenFg: #aaaaaa;
|
2016-10-28 00:19:38 +03:00
|
|
|
sessionInfoFont: msgFont;
|
2016-10-31 15:29:26 +03:00
|
|
|
sessionInfoFg: #888888;
|
2016-10-28 00:19:38 +03:00
|
|
|
sessionTerminateTop: 30px;
|
|
|
|
sessionTerminateSkip: 18px;
|
2016-11-01 15:46:34 +03:00
|
|
|
sessionTerminate: IconButton {
|
2016-10-28 00:19:38 +03:00
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
|
|
|
|
icon: simpleCloseIcon;
|
2016-11-01 15:46:34 +03:00
|
|
|
iconOver: simpleCloseIconOver;
|
|
|
|
|
2016-10-28 00:19:38 +03:00
|
|
|
iconPosition: point(3px, 3px);
|
2016-11-01 15:46:34 +03:00
|
|
|
iconPositionDown: point(3px, 4px);
|
2016-10-28 00:19:38 +03:00
|
|
|
}
|
2016-10-31 15:29:26 +03:00
|
|
|
|
|
|
|
passcodeHeaderFont: font(19px);
|
|
|
|
passcodeHeaderHeight: 80px;
|
|
|
|
passcodeInput: flatInput(inpIntroPhone) {
|
|
|
|
}
|
2016-11-04 22:50:35 +03:00
|
|
|
passcodeSubmit: RoundButton(introNextButton) {
|
2016-10-31 15:29:26 +03:00
|
|
|
width: 225px;
|
|
|
|
}
|
|
|
|
passcodeSubmitSkip: 40px;
|
|
|
|
passcodePadding: margins(0px, 22px, 0px, 3px);
|
|
|
|
passcodeSkip: 31px;
|
|
|
|
|
|
|
|
newGroupAboutFg: #808080;
|
|
|
|
newGroupPadding: margins(4px, 6px, 4px, 3px);
|
|
|
|
newGroupSkip: 17px;
|
|
|
|
newGroupInfoPadding: margins(0px, -4px, 0px, 1px);
|
|
|
|
|
|
|
|
newGroupLinkPadding: margins(4px, 27px, 4px, 12px);
|
|
|
|
newGroupLinkTop: 3px;
|
|
|
|
newGroupLinkFont: font(16px);
|
|
|
|
|
|
|
|
newGroupPhotoSize: 76px;
|
|
|
|
newGroupPhotoBg: #4eb5f0;
|
|
|
|
newGroupPhotoBgOver: #3fa9e7;
|
|
|
|
newGroupPhotoIcon: icon {{ "new_chat_photo", #ffffff }};
|
|
|
|
newGroupPhotoIconPosition: point(23px, 25px);
|
|
|
|
newGroupPhotoDuration: 150;
|
|
|
|
|
|
|
|
newGroupNamePosition: point(27px, 20px);
|
|
|
|
|
|
|
|
newGroupDescriptionPadding: margins(0px, 23px, 0px, 14px);
|
|
|
|
newGroupDescription: InputArea(defaultInputArea) {
|
|
|
|
textMargins: margins(1px, 6px, 1px, 4px);
|
|
|
|
heightMax: 115px;
|
|
|
|
}
|
|
|
|
|
|
|
|
newGroupPublicLinkPadding: margins(0px, 20px, 0px, 5px);
|
|
|
|
newGroupLinkFadeDuration: 5000;
|
2016-11-02 17:44:33 +03:00
|
|
|
|
|
|
|
themeWarningWidth: boxWideWidth;
|
|
|
|
themeWarningHeight: 150px;
|
|
|
|
themeWarningShadow: boxShadow;
|
|
|
|
themeWarningShadowShift: boxShadowShift;
|
|
|
|
themeWarningTextTop: 60px;
|