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
|
2017-01-11 18:31:31 +00:00
|
|
|
Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
2016-04-18 20:33:43 +00:00
|
|
|
*/
|
2016-10-28 12:44:28 +00:00
|
|
|
using "colors.palette";
|
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
TextPalette {
|
|
|
|
linkFg: color;
|
|
|
|
monoFg: color;
|
|
|
|
selectBg: color;
|
2017-02-09 13:46:14 +00:00
|
|
|
selectFg: color;
|
|
|
|
selectLinkFg: color;
|
|
|
|
selectMonoFg: color;
|
2016-12-23 13:21:01 +00:00
|
|
|
selectOverlay: color;
|
|
|
|
}
|
|
|
|
|
|
|
|
TextStyle {
|
|
|
|
font: font;
|
|
|
|
linkFont: font;
|
|
|
|
linkFontOver: font;
|
|
|
|
lineHeight: pixels;
|
|
|
|
}
|
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;
|
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
defaultTextPalette: TextPalette {
|
|
|
|
linkFg: windowActiveTextFg;
|
|
|
|
monoFg: windowSubTextFg;
|
|
|
|
selectBg: msgInBgSelected;
|
2017-02-16 14:07:16 +00:00
|
|
|
selectFg: transparent; // use painter current pen instead
|
2017-02-09 13:46:14 +00:00
|
|
|
selectLinkFg: historyLinkInFgSelected;
|
|
|
|
selectMonoFg: msgInMonoFgSelected;
|
2016-12-23 13:21:01 +00:00
|
|
|
selectOverlay: msgSelectOverlay;
|
|
|
|
}
|
|
|
|
defaultTextStyle: TextStyle {
|
|
|
|
font: normalFont;
|
|
|
|
linkFont: normalFont;
|
|
|
|
linkFontOver: font(fsize underline);
|
|
|
|
lineHeight: 0px;
|
|
|
|
}
|
|
|
|
semiboldTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: semiboldFont;
|
|
|
|
linkFont: semiboldFont;
|
|
|
|
linkFontOver: font(fsize semibold underline);
|
2016-04-18 20:33:43 +00:00
|
|
|
}
|
|
|
|
|
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;
|
2016-12-23 13:21:01 +00:00
|
|
|
msgNameStyle: semiboldTextStyle;
|
2016-04-18 20:33:43 +00:00
|
|
|
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-12-23 13:21:01 +00:00
|
|
|
messageTextStyle: defaultTextStyle;
|
|
|
|
msgDateTextStyle: defaultTextStyle;
|
|
|
|
serviceTextPalette: TextPalette(defaultTextPalette) {
|
2016-12-21 15:05:58 +00:00
|
|
|
linkFg: msgServiceFg;
|
|
|
|
monoFg: msgServiceFg;
|
|
|
|
selectBg: msgServiceBgSelected;
|
2017-02-09 13:46:14 +00:00
|
|
|
selectFg: msgServiceFg;
|
|
|
|
selectLinkFg: msgServiceFg;
|
|
|
|
selectMonoFg: msgServiceFg;
|
2016-12-21 15:05:58 +00:00
|
|
|
selectOverlay: msgServiceBgSelected;
|
2016-04-18 20:33:43 +00:00
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
serviceTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: msgServiceFont;
|
|
|
|
linkFont: msgServiceFont;
|
|
|
|
linkFontOver: font(fsize semibold underline);
|
|
|
|
}
|
|
|
|
inTextPalette: TextPalette(defaultTextPalette) {
|
2017-02-09 13:46:14 +00:00
|
|
|
linkFg: historyLinkInFg;
|
2016-12-21 15:05:58 +00:00
|
|
|
monoFg: msgInMonoFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
selectBg: msgInBgSelected;
|
2017-02-09 13:46:14 +00:00
|
|
|
selectFg: historyTextInFgSelected;
|
|
|
|
selectLinkFg: historyLinkInFgSelected;
|
|
|
|
selectMonoFg: msgInMonoFgSelected;
|
2016-04-18 20:33:43 +00:00
|
|
|
selectOverlay: msgSelectOverlay;
|
|
|
|
}
|
2017-02-09 13:46:14 +00:00
|
|
|
inTextPaletteSelected: TextPalette(inTextPalette) {
|
|
|
|
linkFg: historyLinkInFgSelected;
|
|
|
|
monoFg: msgInMonoFgSelected;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
outTextPalette: TextPalette(defaultTextPalette) {
|
2017-02-09 13:46:14 +00:00
|
|
|
linkFg: historyLinkOutFg;
|
2016-12-21 15:05:58 +00:00
|
|
|
monoFg: msgOutMonoFg;
|
2016-04-18 20:33:43 +00:00
|
|
|
selectBg: msgOutBgSelected;
|
2017-02-09 13:46:14 +00:00
|
|
|
selectFg: historyTextOutFgSelected;
|
|
|
|
selectLinkFg: historyLinkOutFgSelected;
|
|
|
|
selectMonoFg: msgOutMonoFgSelected;
|
2016-04-18 20:33:43 +00:00
|
|
|
selectOverlay: msgSelectOverlay;
|
|
|
|
}
|
2017-02-09 13:46:14 +00:00
|
|
|
outTextPaletteSelected: TextPalette(outTextPalette) {
|
|
|
|
linkFg: historyLinkOutFgSelected;
|
|
|
|
monoFg: msgOutMonoFgSelected;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
fwdTextStyle: TextStyle(semiboldTextStyle) {
|
|
|
|
linkFontOver: semiboldFont;
|
|
|
|
}
|
|
|
|
inFwdTextPalette: TextPalette(defaultTextPalette) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: msgInServiceFg;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
outFwdTextPalette: TextPalette(defaultTextPalette) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: msgOutServiceFg;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
inFwdTextPaletteSelected: TextPalette(defaultTextPalette) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: msgInServiceFgSelected;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
outFwdTextPaletteSelected: TextPalette(defaultTextPalette) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: msgOutServiceFgSelected;
|
|
|
|
}
|
|
|
|
|
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-12-23 13:21:01 +00:00
|
|
|
mediaInPalette: TextPalette(defaultTextPalette) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: mediaInFg;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
mediaInPaletteSelected: TextPalette(defaultTextPalette) {
|
2016-04-18 20:33:43 +00:00
|
|
|
linkFg: mediaInFgSelected;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
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-12-23 13:21:01 +00:00
|
|
|
webPageTitleStyle: semiboldTextStyle;
|
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;
|
2016-12-23 13:21:01 +00:00
|
|
|
webPageDescriptionStyle: defaultTextStyle;
|
2016-04-18 20:33:43 +00:00
|
|
|
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;
|
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
toastTextStyle: defaultTextStyle;
|
2016-04-18 20:33:43 +00:00
|
|
|
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 }};
|
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 }};
|
2017-02-03 20:07:26 +00:00
|
|
|
|
|
|
|
transparentPlaceholderSize: 4px;
|