2016-09-09 15:52: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-09-09 15:52: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-09-09 15:52:46 +00:00
|
|
|
*/
|
|
|
|
using "basic.style";
|
|
|
|
|
2016-10-22 18:58:25 +00:00
|
|
|
using "boxes/boxes.style";
|
2016-10-27 14:10:28 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
switchPmButton: RoundButton(defaultBoxButton) {
|
|
|
|
width: 320px;
|
|
|
|
height: 34px;
|
|
|
|
textTop: 7px;
|
|
|
|
}
|
2017-06-11 18:33:20 +00:00
|
|
|
stickersRestrictedLabel: FlatLabel(defaultFlatLabel) {
|
2017-11-14 08:15:14 +00:00
|
|
|
minWidth: 200px;
|
2017-06-11 18:33:20 +00:00
|
|
|
align: align(center);
|
|
|
|
textFg: noContactsColor;
|
|
|
|
}
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2018-03-02 17:17:33 +00:00
|
|
|
stickersTrendingHeader: 56px;
|
|
|
|
stickersTrendingSkip: 4px;
|
2016-09-09 15:52:46 +00:00
|
|
|
|
2016-10-27 14:10:28 +00:00
|
|
|
stickersTrendingHeaderFont: semiboldFont;
|
2016-11-16 10:44:06 +00:00
|
|
|
stickersTrendingHeaderFg: windowFg;
|
2018-03-02 17:17:33 +00:00
|
|
|
stickersTrendingHeaderTop: 11px;
|
2016-10-27 14:10:28 +00:00
|
|
|
stickersTrendingSubheaderFont: normalFont;
|
2016-12-21 15:05:58 +00:00
|
|
|
stickersTrendingSubheaderFg: windowSubTextFg;
|
2018-03-02 17:17:33 +00:00
|
|
|
stickersTrendingSubheaderTop: 31px;
|
2016-09-09 15:52:46 +00:00
|
|
|
|
2018-03-02 17:17:33 +00:00
|
|
|
stickersTrendingAddTop: 14px;
|
2016-10-27 14:10:28 +00:00
|
|
|
stickersTrendingAdd: RoundButton(defaultActiveButton) {
|
2016-11-22 09:48:13 +00:00
|
|
|
width: -16px;
|
2016-09-09 15:52:46 +00:00
|
|
|
height: 26px;
|
|
|
|
textTop: 4px;
|
|
|
|
}
|
2016-11-22 09:48:13 +00:00
|
|
|
stickersRemove: IconButton(defaultIconButton) {
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
2016-09-10 20:54:59 +00:00
|
|
|
|
2016-11-22 09:48:13 +00:00
|
|
|
icon: icon {{ "stickers_remove", menuIconFg }};
|
|
|
|
iconOver: icon {{ "stickers_remove", menuIconFgOver }};
|
2016-09-10 20:54:59 +00:00
|
|
|
|
2016-11-22 09:48:13 +00:00
|
|
|
rippleAreaSize: 40px;
|
|
|
|
rippleAreaPosition: point(0px, 0px);
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stickersUndoRemove: RoundButton(defaultLightButton) {
|
|
|
|
width: -16px;
|
|
|
|
height: 26px;
|
|
|
|
textTop: 4px;
|
|
|
|
}
|
|
|
|
stickersRemoveSkip: 4px;
|
|
|
|
stickersReorderIcon: icon {{ "stickers_reorder", menuIconFg }};
|
|
|
|
stickersReorderSkip: 13px;
|
|
|
|
|
2017-04-08 15:20:12 +00:00
|
|
|
stickersTabs: defaultTabsSlider;
|
2016-12-13 17:07:56 +00:00
|
|
|
|
2016-11-22 09:48:13 +00:00
|
|
|
stickerEmojiSkip: 5px;
|
2016-09-10 20:54:59 +00:00
|
|
|
|
2016-11-22 09:48:13 +00:00
|
|
|
stickersFeaturedBadgeFont: font(12px bold);
|
|
|
|
stickersFeaturedBadgeSize: 15px;
|
|
|
|
stickersFeaturedBadgeTextTop: -1px;
|
|
|
|
stickersFeaturedBadgePadding: 4px;
|
|
|
|
stickersFeaturedBadgeSkip: 4px;
|
|
|
|
stickersFeaturedBadgeTop: 9px;
|
2016-11-10 18:10:31 +00:00
|
|
|
stickersFeaturedPen: lightButtonFg;
|
2016-09-10 20:54:59 +00:00
|
|
|
stickersFeaturedUnreadBg: msgFileInBg;
|
|
|
|
stickersFeaturedUnreadSize: 5px;
|
|
|
|
stickersFeaturedUnreadSkip: 5px;
|
|
|
|
stickersFeaturedUnreadTop: 7px;
|
2016-11-22 09:48:13 +00:00
|
|
|
stickersFeaturedInstalled: icon {{ "send_control_save", lightButtonFg }};
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
stickersMaxHeight: 320px;
|
|
|
|
stickersPadding: margins(19px, 13px, 19px, 13px);
|
2016-10-27 14:10:28 +00:00
|
|
|
stickersSize: size(64px, 64px);
|
2016-12-13 17:07:56 +00:00
|
|
|
stickersScroll: ScrollArea(boxLayerScroll) {
|
|
|
|
deltat: 19px;
|
2016-10-27 14:10:28 +00:00
|
|
|
deltab: 9px;
|
|
|
|
}
|
|
|
|
stickersReorderPadding: margins(0px, 12px, 0px, 12px);
|
2016-12-21 15:05:58 +00:00
|
|
|
stickersReorderFg: windowSubTextFg;
|
2016-10-27 14:10:28 +00:00
|
|
|
stickersRowDisabledOpacity: 0.4;
|
|
|
|
stickersRowDuration: 200;
|
|
|
|
|
2016-12-03 12:10:35 +00:00
|
|
|
stickersSettings: icon {{ "emoji_settings", emojiIconFg }};
|
|
|
|
stickersTrending: icon {{ "emoji_trending", emojiIconFg }};
|
2018-03-08 12:12:20 +00:00
|
|
|
stickersSearch: icon {{ "stickers_search", emojiIconFg, point(0px, 1px) }};
|
2016-10-27 14:10:28 +00:00
|
|
|
|
|
|
|
stickersSettingsUnreadSize: 17px;
|
|
|
|
stickersSettingsUnreadPosition: point(4px, 5px);
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
emojiPanMargins: margins(10px, 10px, 10px, 10px);
|
|
|
|
|
2017-04-09 18:06:06 +00:00
|
|
|
emojiTabs: SettingsSlider(defaultTabsSlider) {
|
|
|
|
height: 55px;
|
|
|
|
barTop: 52px;
|
|
|
|
labelTop: 19px;
|
|
|
|
}
|
2017-03-28 12:30:38 +00:00
|
|
|
emojiScroll: defaultSolidScroll;
|
2016-12-03 12:10:35 +00:00
|
|
|
emojiRecent: icon {{ "emoji_recent", emojiIconFg }};
|
|
|
|
emojiRecentActive: icon {{ "emoji_recent", emojiIconFgActive }};
|
|
|
|
emojiPeople: icon {{ "emoji_people", emojiIconFg }};
|
|
|
|
emojiPeopleActive: icon {{ "emoji_people", emojiIconFgActive }};
|
|
|
|
emojiNature: icon {{ "emoji_nature", emojiIconFg }};
|
|
|
|
emojiNatureActive: icon {{ "emoji_nature", emojiIconFgActive }};
|
|
|
|
emojiFood: icon {{ "emoji_food", emojiIconFg }};
|
|
|
|
emojiFoodActive: icon {{ "emoji_food", emojiIconFgActive }};
|
|
|
|
emojiActivity: icon {{ "emoji_activity", emojiIconFg }};
|
|
|
|
emojiActivityActive: icon {{ "emoji_activity", emojiIconFgActive }};
|
|
|
|
emojiTravel: icon {{ "emoji_travel", emojiIconFg }};
|
|
|
|
emojiTravelActive: icon {{ "emoji_travel", emojiIconFgActive }};
|
|
|
|
emojiObjects: icon {{ "emoji_objects", emojiIconFg }};
|
|
|
|
emojiObjectsActive: icon {{ "emoji_objects", emojiIconFgActive }};
|
|
|
|
emojiSymbols: icon {{ "emoji_symbols", emojiIconFg }};
|
|
|
|
emojiSymbolsActive: icon {{ "emoji_symbols", emojiIconFgActive }};
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2017-11-12 09:54:18 +00:00
|
|
|
emojiFooterHeight: 46px;
|
|
|
|
emojiCategorySkip: 4px;
|
2016-10-27 14:10:28 +00:00
|
|
|
emojiCategory: IconButton {
|
|
|
|
width: 42px;
|
2017-11-12 09:54:18 +00:00
|
|
|
height: emojiFooterHeight;
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2017-11-12 09:54:18 +00:00
|
|
|
iconPosition: point(-1px, 9px);
|
2016-10-27 14:10:28 +00:00
|
|
|
}
|
|
|
|
emojiCategoryRecent: IconButton(emojiCategory) { icon: emojiRecent; }
|
|
|
|
emojiCategoryPeople: IconButton(emojiCategory) { icon: emojiPeople; }
|
|
|
|
emojiCategoryNature: IconButton(emojiCategory) { icon: emojiNature; }
|
|
|
|
emojiCategoryFood: IconButton(emojiCategory) { icon: emojiFood; }
|
|
|
|
emojiCategoryActivity: IconButton(emojiCategory) { icon: emojiActivity; }
|
|
|
|
emojiCategoryTravel: IconButton(emojiCategory) { icon: emojiTravel; }
|
|
|
|
emojiCategoryObjects: IconButton(emojiCategory) { icon: emojiObjects; }
|
|
|
|
emojiCategorySymbols: IconButton(emojiCategory) { icon: emojiSymbols; }
|
|
|
|
|
2016-11-12 15:02:19 +00:00
|
|
|
emojiPanAnimation: PanelAnimation(defaultPanelAnimation) {
|
|
|
|
fadeBg: emojiPanBg;
|
|
|
|
}
|
2016-10-27 14:10:28 +00:00
|
|
|
emojiPanPadding: 12px;
|
|
|
|
emojiPanWidth: 345px;
|
2017-04-03 16:46:24 +00:00
|
|
|
emojiPanMinHeight: 278px;
|
|
|
|
emojiPanMaxHeight: 640px;
|
|
|
|
emojiPanHeightRatio: 0.75;
|
2017-03-29 15:09:16 +00:00
|
|
|
emojiPanShowDuration: 200;
|
|
|
|
emojiPanDuration: 200;
|
2016-11-19 09:22:53 +00:00
|
|
|
emojiPanHover: windowBgOver;
|
2017-03-29 15:09:16 +00:00
|
|
|
emojiPanSlideDuration: 200;
|
2017-11-14 10:26:12 +00:00
|
|
|
emojiPanDesiredSize: 45px;
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2018-11-22 12:48:50 +00:00
|
|
|
inlineResultsMinHeight: 278px;
|
|
|
|
inlineResultsMaxHeight: 640px;
|
|
|
|
|
2016-10-27 14:10:28 +00:00
|
|
|
emojiPanHeader: 42px;
|
|
|
|
emojiPanHeaderFont: semiboldFont;
|
|
|
|
emojiPanHeaderLeft: 22px;
|
|
|
|
emojiPanHeaderTop: 12px;
|
|
|
|
|
|
|
|
emojiColorsPadding: 5px;
|
|
|
|
emojiColorsSep: 1px;
|
2016-12-21 15:05:58 +00:00
|
|
|
emojiColorsSepColor: shadowFg;
|
2016-10-27 14:10:28 +00:00
|
|
|
|
|
|
|
emojiSwitchSkip: 27px;
|
|
|
|
emojiSwitchImgSkip: 21px;
|
2016-12-03 12:10:35 +00:00
|
|
|
emojiSwitchColor: windowActiveTextFg;
|
2016-11-04 11:14:47 +00:00
|
|
|
emojiSwitchStickers: icon {{ "emoji_switch", emojiSwitchColor }};
|
|
|
|
emojiSwitchEmoji: icon {{ "emoji_switch-flip_horizontal", emojiSwitchColor }};
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2016-11-01 12:46:34 +00:00
|
|
|
hashtagClose: IconButton {
|
2016-10-27 21:19:38 +00:00
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
icon: smallCloseIcon;
|
|
|
|
iconOver: smallCloseIconOver;
|
2016-10-27 21:19:38 +00:00
|
|
|
iconPosition: point(10px, 10px);
|
2016-12-05 11:01:08 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(5px, 5px);
|
|
|
|
rippleAreaSize: 20px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2016-10-27 21:19:38 +00:00
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
|
2017-11-12 09:54:18 +00:00
|
|
|
stickerPanWidthMin: 64px;
|
|
|
|
stickerPanSize: size(stickerPanWidthMin, stickerPanWidthMin);
|
2017-03-29 15:09:16 +00:00
|
|
|
stickerPanPadding: 11px;
|
2017-09-05 16:34:36 +00:00
|
|
|
stickerPanDeleteIconBg: icon {{ "emoji_delete_bg", stickerPanDeleteBg }};
|
|
|
|
stickerPanDeleteIconFg: icon {{ "emoji_delete", stickerPanDeleteFg }};
|
|
|
|
stickerPanDeleteOpacityBg: 0.3;
|
|
|
|
stickerPanDeleteOpacityBgOver: 0.5;
|
|
|
|
stickerPanDeleteOpacityFg: 0.8;
|
|
|
|
stickerPanDeleteOpacityFgOver: 1.;
|
2017-03-29 15:09:16 +00:00
|
|
|
stickerPanRemoveSet: hashtagClose;
|
2017-11-12 09:54:18 +00:00
|
|
|
stickerIconWidth: 42px;
|
|
|
|
stickerIconHeight: emojiFooterHeight;
|
2017-03-29 15:09:16 +00:00
|
|
|
stickerIconPadding: 5px;
|
|
|
|
stickerIconOpacity: 0.7;
|
|
|
|
stickerIconSel: 2px;
|
|
|
|
stickerIconSelColor: emojiIconFgActive;
|
|
|
|
stickerIconMove: 400;
|
|
|
|
stickerPreviewDuration: 150;
|
|
|
|
stickerPreviewMin: 0.1;
|
|
|
|
|
2017-08-03 12:52:56 +00:00
|
|
|
stickerGroupCategorySize: 28px;
|
|
|
|
stickerGroupCategoryAbout: defaultTextStyle;
|
|
|
|
stickerGroupCategoryAddMargin: margins(0px, 10px, 0px, 5px);
|
|
|
|
stickerGroupCategoryAdd: stickersTrendingAdd;
|
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
stickersToastMaxWidth: 340px;
|
|
|
|
stickersToastPadding: margins(16px, 13px, 16px, 12px);
|
2017-03-27 18:11:51 +00:00
|
|
|
|
2018-03-02 17:17:33 +00:00
|
|
|
stickersEmpty: icon {{ "stickers_empty", windowSubTextFg }};
|
|
|
|
|
2017-03-27 18:11:51 +00:00
|
|
|
inlineBotsScroll: ScrollArea(defaultSolidScroll) {
|
|
|
|
deltat: stickerPanPadding;
|
|
|
|
deltab: stickerPanPadding;
|
|
|
|
}
|
2017-03-31 15:50:02 +00:00
|
|
|
|
|
|
|
gifsSearchField: contactsSearchField;
|
|
|
|
gifsSearchFieldPosition: point(42px, 7px);
|
|
|
|
gifsSearchCancel: contactsSearchCancel;
|
|
|
|
gifsSearchCancelPosition: point(1px, 1px);
|
|
|
|
gifsSearchIcon: boxFieldSearchIcon;
|
|
|
|
gifsSearchIconPosition: point(6px, 7px);
|
2017-07-22 08:35:18 +00:00
|
|
|
|
|
|
|
emojiSuggestionsDropdown: InnerDropdown(defaultInnerDropdown) {
|
2019-03-30 10:00:31 +00:00
|
|
|
scrollMargin: margins(0px, emojiColorsPadding, 0px, emojiColorsPadding);
|
|
|
|
scrollPadding: margins(0px, 0px, 0px, 0px);
|
2017-07-22 08:35:18 +00:00
|
|
|
}
|
2019-03-30 10:00:31 +00:00
|
|
|
emojiSuggestionSize: 40px;
|
|
|
|
emojiSuggestionsScrolledWidth: 240px;
|
|
|
|
emojiSuggestionsPadding: margins(emojiColorsPadding, 0px, emojiColorsPadding, 0px);
|
|
|
|
emojiSuggestionsFadeAfter: 20px;
|
2017-08-01 12:01:42 +00:00
|
|
|
|
|
|
|
mentionHeight: 40px;
|
|
|
|
mentionScroll: ScrollArea(defaultScrollArea) {
|
|
|
|
topsh: 0px;
|
|
|
|
bottomsh: 0px;
|
|
|
|
}
|
|
|
|
mentionPadding: margins(8px, 5px, 8px, 5px);
|
|
|
|
mentionTop: 11px;
|
|
|
|
mentionFont: linkFont;
|
|
|
|
mentionNameFg: windowFg;
|
|
|
|
mentionNameFgOver: windowFgOver;
|
|
|
|
mentionPhotoSize: msgPhotoSize;
|
|
|
|
mentionBg: windowBg;
|
|
|
|
mentionBgOver: windowBgOver;
|
|
|
|
mentionFg: windowSubTextFg;
|
|
|
|
mentionFgOver: windowSubTextFgOver;
|
|
|
|
mentionFgActive: windowActiveTextFg;
|
|
|
|
mentionFgOverActive: windowActiveTextFg;
|
2018-10-02 20:39:54 +00:00
|
|
|
|
|
|
|
autocompleteSearchPadding: margins(16px, 5px, 16px, 5px);
|
|
|
|
autocompleteRowPadding: margins(16px, 5px, 16px, 5px);
|
|
|
|
autocompleteRowTitle: semiboldTextStyle;
|
|
|
|
autocompleteRowKeys: defaultTextStyle;
|
|
|
|
autocompleteRowAnswer: defaultTextStyle;
|
2018-12-26 14:00:08 +00:00
|
|
|
|
2019-01-02 12:11:13 +00:00
|
|
|
manageEmojiPreview: 22px;
|
|
|
|
manageEmojiPreviewWidth: 48px;
|
|
|
|
manageEmojiPreviewHeight: 48px;
|
|
|
|
manageEmojiPreviewPadding: margins(23px, 9px, 19px, 9px);
|
|
|
|
manageEmojiMarginRight: 21px;
|
|
|
|
manageEmojiNameTop: 3px;
|
|
|
|
manageEmojiStatusTop: 25px;
|