2016-04-18 20:33:43 +00: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
|
|
|
|
*/
|
2016-10-28 12:44:28 +00:00
|
|
|
using "colors.palette";
|
|
|
|
|
2016-04-21 17:57:29 +00:00
|
|
|
using "basic_types.style";
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
semibold: "Open Sans Semibold";
|
|
|
|
|
|
|
|
fsize: 13px;
|
|
|
|
normalFont: font(fsize);
|
|
|
|
semiboldFont: font(fsize semibold);
|
2016-11-16 10:44:06 +00:00
|
|
|
boxFontSize: 14px;
|
|
|
|
boxTextFont: font(boxFontSize);
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
emojiImgSize: 18px; // exceptional value for retina
|
|
|
|
emojiSize: 18px;
|
2016-11-11 08:59:55 +00:00
|
|
|
emojiPadding: 1px;
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
lineWidth: 1px;
|
|
|
|
|
|
|
|
defaultTooltip: Tooltip {
|
2016-12-21 15:05:58 +00:00
|
|
|
textBg: tooltipBg;
|
|
|
|
textFg: tooltipFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
textFont: normalFont;
|
2016-12-21 15:05:58 +00:00
|
|
|
textBorder: tooltipBorderFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
textPadding: margins(5px, 2px, 5px, 2px);
|
|
|
|
|
|
|
|
shift: point(-20px, 20px);
|
|
|
|
skip: 10px;
|
|
|
|
|
|
|
|
widthMax: 800px;
|
|
|
|
linesMax: 12;
|
|
|
|
}
|
|
|
|
|
2016-05-19 12:03:51 +00:00
|
|
|
shadowToggleDuration: 200;
|
2016-04-18 20:33:43 +00:00
|
|
|
|
2016-10-26 12:24:21 +00:00
|
|
|
slideDuration: 240;
|
2016-05-14 16:57:06 +00:00
|
|
|
slideShift: 100px;
|
2016-12-21 15:05:58 +00:00
|
|
|
slideShadow: icon {{ "slide_shadow", slideFadeOutShadowFg }};
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
linkCropLimit: 360px;
|
|
|
|
linkFont: normalFont;
|
|
|
|
linkOverFont: font(fsize underline);
|
|
|
|
|
2016-11-18 16:27:47 +00:00
|
|
|
dateRadius: 6px;
|
2016-07-07 12:35:14 +00:00
|
|
|
buttonRadius: 3px;
|
2016-06-24 16:58:41 +00:00
|
|
|
|
2016-04-18 20:33:43 +00:00
|
|
|
setLittleSkip: 9px;
|
|
|
|
|
2016-06-07 19:59:39 +00:00
|
|
|
noContactsHeight: 100px;
|
|
|
|
noContactsFont: font(fsize);
|
2016-12-21 15:05:58 +00:00
|
|
|
noContactsColor: windowSubTextFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
activeFadeInDuration: 500;
|
|
|
|
activeFadeOutDuration: 3000;
|
|
|
|
|
|
|
|
msgMaxWidth: 430px;
|
|
|
|
msgFont: font(fsize);
|
|
|
|
msgNameFont: semiboldFont;
|
|
|
|
msgServiceFont: semiboldFont;
|
|
|
|
msgServiceNameFont: semiboldFont;
|
|
|
|
msgServicePhotoWidth: 100px;
|
|
|
|
msgDateFont: font(13px);
|
|
|
|
msgMinWidth: 190px;
|
|
|
|
msgPhotoSize: 33px;
|
|
|
|
msgPhotoSkip: 40px;
|
|
|
|
msgPadding: margins(13px, 7px, 13px, 8px);
|
2016-11-18 16:27:47 +00:00
|
|
|
msgMargin: margins(16px, 6px, 56px, 2px);
|
|
|
|
msgMarginTopAttached: 1px;
|
2016-04-18 20:33:43 +00:00
|
|
|
msgLnkPadding: 2px; // for media open / save links
|
|
|
|
msgShadow: 2px;
|
|
|
|
|
|
|
|
msgReplyPadding: margins(6px, 6px, 11px, 6px);
|
|
|
|
msgReplyBarPos: point(1px, 0px);
|
|
|
|
msgReplyBarSize: size(2px, 36px);
|
|
|
|
msgReplyBarSkip: 10px;
|
|
|
|
msgServicePadding: margins(12px, 3px, 12px, 4px);
|
|
|
|
msgServiceMargin: margins(10px, 10px, 80px, 2px);
|
|
|
|
|
2016-09-29 12:57:20 +00:00
|
|
|
msgDateSpace: 12px;
|
2016-04-18 20:33:43 +00:00
|
|
|
msgDateDelta: point(2px, 5px);
|
|
|
|
|
|
|
|
msgDateImgDelta: 4px;
|
|
|
|
msgDateImgPadding: point(8px, 2px);
|
|
|
|
msgDateImgCheckSpace: 4px;
|
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
defaultTextStyle: TextStyle {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFlags: font(fsize);
|
|
|
|
linkFlagsOver: font(fsize underline);
|
2016-12-03 12:10:35 +00:00
|
|
|
linkFg: windowActiveTextFg;
|
|
|
|
linkFgDown: windowActiveTextFg;
|
2016-12-21 15:05:58 +00:00
|
|
|
monoFg: windowSubTextFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
selectBg: msgInBgSelected;
|
|
|
|
selectOverlay: msgSelectOverlay;
|
|
|
|
lineHeight: 0px;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
serviceTextStyle: TextStyle(defaultTextStyle) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFlags: msgServiceFont;
|
|
|
|
linkFlagsOver: font(fsize semibold underline);
|
2016-12-21 15:05:58 +00:00
|
|
|
linkFg: msgServiceFg;
|
|
|
|
linkFgDown: msgServiceFg;
|
|
|
|
monoFg: msgServiceFg;
|
|
|
|
selectBg: msgServiceBgSelected;
|
|
|
|
selectOverlay: msgServiceBgSelected;
|
2016-04-18 20:33:43 +00:00
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
inTextStyle: TextStyle(defaultTextStyle) {
|
2016-12-21 15:05:58 +00:00
|
|
|
monoFg: msgInMonoFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
selectBg: msgInBgSelected;
|
|
|
|
selectOverlay: msgSelectOverlay;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
outTextStyle: TextStyle(defaultTextStyle) {
|
2016-12-21 15:05:58 +00:00
|
|
|
monoFg: msgOutMonoFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
selectBg: msgOutBgSelected;
|
|
|
|
selectOverlay: msgSelectOverlay;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
inFwdTextStyle: TextStyle(defaultTextStyle) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFlags: semiboldFont;
|
|
|
|
linkFlagsOver: semiboldFont;
|
|
|
|
linkFg: msgInServiceFg;
|
|
|
|
linkFgDown: msgInServiceFg;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
outFwdTextStyle: TextStyle(inFwdTextStyle) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: msgOutServiceFg;
|
|
|
|
linkFgDown: msgOutServiceFg;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
inFwdTextStyleSelected: TextStyle(inFwdTextStyle) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: msgInServiceFgSelected;
|
|
|
|
linkFgDown: msgInServiceFgSelected;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
outFwdTextStyleSelected: TextStyle(inFwdTextStyle) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: msgOutServiceFgSelected;
|
|
|
|
linkFgDown: msgOutServiceFgSelected;
|
|
|
|
}
|
2016-12-21 15:05:58 +00:00
|
|
|
mediaviewTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
linkFg: mediaviewTextLinkFg;
|
|
|
|
linkFgDown: mediaviewTextLinkFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
}
|
|
|
|
|
2016-12-03 12:10:35 +00:00
|
|
|
mediaPadding: margins(0px, 0px, 0px, 0px);
|
2016-04-18 20:33:43 +00:00
|
|
|
mediaCaptionSkip: 5px;
|
2016-09-28 10:15:03 +00:00
|
|
|
mediaInBubbleSkip: 5px;
|
2016-04-18 20:33:43 +00:00
|
|
|
mediaThumbSize: 48px;
|
|
|
|
mediaNameTop: 3px;
|
|
|
|
mediaDetailsShift: 3px;
|
|
|
|
mediaUnreadSize: 7px;
|
|
|
|
mediaUnreadSkip: 5px;
|
|
|
|
mediaUnreadTop: 6px;
|
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
mediaInStyle: TextStyle(defaultTextStyle) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: mediaInFg;
|
|
|
|
linkFgDown: mediaInFg;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
mediaInStyleSelected: TextStyle(defaultTextStyle) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: mediaInFgSelected;
|
|
|
|
linkFgDown: mediaInFgSelected;
|
|
|
|
}
|
|
|
|
|
|
|
|
msgFileMenuSize: size(36px, 36px);
|
|
|
|
msgFileSize: 44px;
|
|
|
|
msgFilePadding: margins(14px, 12px, 11px, 12px);
|
|
|
|
msgFileThumbSize: 72px;
|
|
|
|
msgFileThumbPadding: margins(10px, 10px, 14px, 10px);
|
|
|
|
msgFileThumbNameTop: 12px;
|
|
|
|
msgFileThumbStatusTop: 32px;
|
|
|
|
msgFileThumbLinkTop: 60px;
|
|
|
|
msgFileNameTop: 16px;
|
|
|
|
msgFileStatusTop: 37px;
|
|
|
|
msgFileMinWidth: 294px;
|
|
|
|
|
|
|
|
msgFileOverDuration: 200;
|
|
|
|
msgFileRadialLine: 3px;
|
|
|
|
|
|
|
|
msgVideoSize: size(320px, 240px);
|
|
|
|
|
|
|
|
msgWaveformBar: 2px;
|
|
|
|
msgWaveformSkip: 1px;
|
|
|
|
msgWaveformMin: 2px;
|
|
|
|
msgWaveformMax: 20px;
|
|
|
|
|
|
|
|
textRectMargins: margins(-2px, -1px, -2px, -1px);
|
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
searchedBarHeight: 32px;
|
2016-12-03 12:10:35 +00:00
|
|
|
searchedBarFont: normalFont;
|
|
|
|
searchedBarPosition: point(17px, 7px);
|
2016-04-18 20:33:43 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
smallCloseIcon: icon {{ "simple_close", smallCloseIconFg }};
|
|
|
|
smallCloseIconOver: icon {{ "simple_close", smallCloseIconFgOver }};
|
2016-11-06 17:23:13 +00:00
|
|
|
dialogsForwardCancelIcon: icon {{ "simple_close", dialogsForwardFg }};
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
emojiTextFont: font(15px);
|
|
|
|
emojiReplaceWidth: 52px;
|
|
|
|
emojiReplaceHeight: 56px;
|
|
|
|
emojiReplaceInnerHeight: 42px;
|
|
|
|
emojiReplacePadding: 14px;
|
|
|
|
|
|
|
|
connectingPadding: margins(5px, 5px, 5px, 5px);
|
|
|
|
|
|
|
|
dragFont: font(28px semibold);
|
|
|
|
dragSubfont: font(20px semibold);
|
2016-12-21 15:05:58 +00:00
|
|
|
dragColor: windowSubTextFg;
|
2016-12-03 12:10:35 +00:00
|
|
|
dragDropColor: windowActiveTextFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
dragMargin: margins(0px, 10px, 0px, 10px);
|
|
|
|
dragPadding: margins(20px, 10px, 20px, 10px);
|
|
|
|
|
|
|
|
dragHeight: 72px;
|
|
|
|
|
|
|
|
minPhotoSize: 100px;
|
|
|
|
maxMediaSize: 420px;
|
|
|
|
maxStickerSize: 256px;
|
|
|
|
maxGifSize: 320px;
|
|
|
|
maxSignatureSize: 144px;
|
|
|
|
|
|
|
|
mvThickFont: semiboldFont;
|
2016-12-21 15:05:58 +00:00
|
|
|
mvFont: normalFont;
|
2016-04-18 20:33:43 +00:00
|
|
|
|
|
|
|
mvTextLeft: 16px;
|
|
|
|
mvTextSkip: 10px;
|
|
|
|
mvHeaderTop: 48px;
|
|
|
|
mvTextTop: 24px;
|
|
|
|
mvTextOpacity: 0.5;
|
|
|
|
mvTextOverOpacity: 1;
|
|
|
|
|
|
|
|
mvIconOpacity: 0.45;
|
|
|
|
mvIconOverOpacity: 1;
|
|
|
|
mvControlBgOpacity: 0.3;
|
|
|
|
mvControlMargin: 0px;
|
|
|
|
mvControlSize: 90px;
|
|
|
|
mvIconSize: size(60px, 56px);
|
|
|
|
|
|
|
|
mvWaitHide: 2000;
|
|
|
|
mvHideDuration: 1000;
|
|
|
|
mvShowDuration: 200;
|
|
|
|
mvFadeDuration: 150;
|
|
|
|
|
|
|
|
mvDeltaFromLastAction: 5px;
|
|
|
|
mvSwipeDistance: 80px;
|
|
|
|
|
|
|
|
mvCaptionPadding: margins(18px, 10px, 18px, 10px);
|
|
|
|
mvCaptionMargin: size(11px, 11px);
|
|
|
|
mvCaptionRadius: 2px;
|
|
|
|
mvCaptionFont: font(fsize);
|
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
medviewSaveMsgCheck: icon {{ "mediaview_save_check", mediaviewSaveMsgFg }};
|
2016-04-18 20:33:43 +00:00
|
|
|
medviewSaveMsgFont: font(16px);
|
|
|
|
medviewSaveMsgPadding: margins(55px, 19px, 29px, 20px);
|
|
|
|
medviewSaveMsgCheckPos: point(23px, 21px);
|
|
|
|
medviewSaveMsgShowing: 200;
|
|
|
|
medviewSaveMsgShown: 2000;
|
|
|
|
medviewSaveMsgHiding: 2500;
|
|
|
|
|
|
|
|
radialSize: size(50px, 50px);
|
2016-06-21 18:09:48 +00:00
|
|
|
radialLine: 3px;
|
2016-04-18 20:33:43 +00:00
|
|
|
radialDuration: 350;
|
|
|
|
radialPeriod: 3000;
|
|
|
|
|
2016-10-27 21:19:38 +00:00
|
|
|
youtubeIcon: icon {
|
2016-12-21 15:05:58 +00:00
|
|
|
{ "media_youtube_play_bg", youtubePlayIconBg },
|
|
|
|
{ "media_youtube_play", youtubePlayIconFg, point(24px, 12px) },
|
2016-10-27 21:19:38 +00:00
|
|
|
};
|
|
|
|
videoIcon: icon {
|
2016-12-21 15:05:58 +00:00
|
|
|
{ "media_video_play_bg", videoPlayIconBg },
|
|
|
|
{ "media_video_play", videoPlayIconFg, point(12px, 12px) },
|
2016-10-27 21:19:38 +00:00
|
|
|
};
|
2016-04-18 20:33:43 +00:00
|
|
|
locationSize: size(320px, 240px);
|
|
|
|
|
|
|
|
webPageLeft: 10px;
|
|
|
|
webPageBar: 2px;
|
|
|
|
webPageTitleFont: semiboldFont;
|
2016-10-31 12:29:26 +00:00
|
|
|
webPageTitleOutFg: historyTextOutFg;
|
|
|
|
webPageTitleInFg: historyTextInFg;
|
|
|
|
webPageDescriptionOutFg: historyTextOutFg;
|
|
|
|
webPageDescriptionInFg: historyTextInFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
webPageDescriptionFont: normalFont;
|
|
|
|
webPagePhotoSize: 100px;
|
|
|
|
webPagePhotoDelta: 8px;
|
|
|
|
|
2016-10-04 18:18:08 +00:00
|
|
|
mediaPlayerSuppressDuration: 150;
|
|
|
|
|
2016-04-18 20:33:43 +00:00
|
|
|
botDescSkip: 8px;
|
|
|
|
|
|
|
|
suppressAll: 0.2;
|
|
|
|
suppressSong: 0.05;
|
|
|
|
|
|
|
|
inlineResultsLeft: 11px;
|
|
|
|
inlineResultsSkip: 3px;
|
|
|
|
inlineMediaHeight: 96px;
|
|
|
|
inlineThumbSize: 64px;
|
|
|
|
inlineThumbSkip: 10px;
|
2016-11-16 10:44:06 +00:00
|
|
|
inlineTitleFg: windowFg;
|
2016-05-12 16:05:20 +00:00
|
|
|
inlineDescriptionFg: windowSubTextFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
inlineRowMargin: 6px;
|
2016-04-21 17:57:29 +00:00
|
|
|
inlineRowBorder: 1px;
|
2016-12-21 15:05:58 +00:00
|
|
|
inlineRowBorderFg: shadowFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
inlineRowFileNameTop: 2px;
|
|
|
|
inlineRowFileDescriptionTop: 23px;
|
|
|
|
inlineResultsMinWidth: 64px;
|
|
|
|
inlineDurationMargin: 3px;
|
|
|
|
|
|
|
|
toastFont: normalFont;
|
|
|
|
toastMaxWidth: 480px;
|
|
|
|
toastMinMargin: 13px;
|
|
|
|
toastPadding: margins(19px, 13px, 19px, 12px);
|
|
|
|
toastFadeInDuration: 200;
|
|
|
|
toastFadeOutDuration: 1000;
|
|
|
|
|
2016-11-08 14:43:10 +00:00
|
|
|
historyReplyCancelIcon: icon {{ "box_button_close", historyReplyCancelFg }};
|
|
|
|
historyReplyCancelIconOver: icon {{ "box_button_close", historyReplyCancelFgOver }};
|
|
|
|
boxSearchCancelIcon: icon {{ "box_button_close", boxSearchCancelIconFg }};
|
|
|
|
boxSearchCancelIconOver: icon {{ "box_button_close", boxSearchCancelIconFgOver }};
|
2016-12-13 17:07:56 +00:00
|
|
|
boxTitleCloseIcon: icon {{ "box_button_close", boxTitleCloseFg }};
|
|
|
|
boxTitleCloseIconOver: icon {{ "box_button_close", boxTitleCloseFgOver }};
|
2016-10-28 08:02:45 +00:00
|
|
|
|
2016-11-04 11:14:47 +00:00
|
|
|
notifyFadeRight: icon {{ "fade_horizontal", notificationBg }};
|
2016-10-28 08:02:45 +00:00
|
|
|
|
2016-11-04 11:14:47 +00:00
|
|
|
stickerIconLeft: icon {{ "fade_horizontal-flip_horizontal", emojiPanCategories }};
|
|
|
|
stickerIconRight: icon {{ "fade_horizontal", emojiPanCategories }};
|