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
|
|
|
*/
|
2019-09-17 16:13:12 +00:00
|
|
|
using "ui/basic.style";
|
2016-09-09 15:52:46 +00:00
|
|
|
|
2016-10-22 18:58:25 +00:00
|
|
|
using "boxes/boxes.style";
|
2023-01-23 18:56:25 +00:00
|
|
|
using "ui/layers/layers.style";
|
2016-10-27 14:10:28 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2023-05-17 11:51:04 +00:00
|
|
|
using "ui/menu_icons.style";
|
2023-05-18 13:46:24 +00:00
|
|
|
using "ui/effects/premium.style";
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2023-05-16 15:48:49 +00:00
|
|
|
GroupCallUserpics {
|
|
|
|
size: pixels;
|
|
|
|
shift: pixels;
|
|
|
|
stroke: pixels;
|
|
|
|
align: align;
|
|
|
|
}
|
|
|
|
|
2023-01-20 16:44:08 +00:00
|
|
|
TabbedSearch {
|
|
|
|
outer: color;
|
|
|
|
bg: color;
|
2023-05-16 15:48:49 +00:00
|
|
|
bgActive: color;
|
2023-01-20 16:44:08 +00:00
|
|
|
fg: color;
|
|
|
|
fgActive: color;
|
|
|
|
fadeLeft: icon;
|
|
|
|
fadeRight: icon;
|
|
|
|
field: InputField;
|
|
|
|
search: IconButton;
|
|
|
|
back: IconButton;
|
|
|
|
cancel: CrossButton;
|
|
|
|
defaultFieldWidth: pixels;
|
|
|
|
groupWidth: pixels;
|
2023-01-24 08:11:09 +00:00
|
|
|
groupSkip: pixels;
|
2023-01-20 16:44:08 +00:00
|
|
|
height: pixels;
|
|
|
|
}
|
|
|
|
|
2023-05-17 11:51:04 +00:00
|
|
|
ComposeIcons {
|
|
|
|
settings: icon;
|
|
|
|
|
|
|
|
recent: icon;
|
|
|
|
recentActive: icon;
|
|
|
|
people: icon;
|
|
|
|
peopleActive: icon;
|
|
|
|
nature: icon;
|
|
|
|
natureActive: icon;
|
|
|
|
food: icon;
|
|
|
|
foodActive: icon;
|
|
|
|
activity: icon;
|
|
|
|
activityActive: icon;
|
|
|
|
travel: icon;
|
|
|
|
travelActive: icon;
|
|
|
|
objects: icon;
|
|
|
|
objectsActive: icon;
|
|
|
|
symbols: icon;
|
|
|
|
symbolsActive: icon;
|
|
|
|
|
|
|
|
menuFave: icon;
|
|
|
|
menuUnfave: icon;
|
|
|
|
menuStickerSet: icon;
|
|
|
|
menuRecentRemove: icon;
|
|
|
|
menuGifAdd: icon;
|
|
|
|
menuGifRemove: icon;
|
|
|
|
menuMute: icon;
|
|
|
|
menuSchedule: icon;
|
|
|
|
menuWhenOnline: icon;
|
2023-05-18 13:46:24 +00:00
|
|
|
menuSpoiler: icon;
|
|
|
|
menuSpoilerOff: icon;
|
2023-05-17 11:51:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EmojiSuggestions {
|
|
|
|
dropdown: InnerDropdown;
|
|
|
|
bg: color;
|
|
|
|
overBg: color;
|
|
|
|
textFg: color;
|
|
|
|
fadeLeft: icon;
|
|
|
|
fadeRight: icon;
|
|
|
|
}
|
|
|
|
|
2022-08-22 16:41:23 +00:00
|
|
|
EmojiPan {
|
|
|
|
margin: margins;
|
|
|
|
padding: margins;
|
2023-05-17 11:51:04 +00:00
|
|
|
showAnimation: PanelAnimation;
|
2022-08-22 16:41:23 +00:00
|
|
|
desiredSize: pixels;
|
|
|
|
verticalSizeSub: pixels;
|
|
|
|
header: pixels;
|
|
|
|
headerLeft: pixels;
|
|
|
|
headerLockLeft: pixels;
|
|
|
|
headerLockedLeft: pixels;
|
|
|
|
headerTop: pixels;
|
|
|
|
footer: pixels;
|
|
|
|
iconSkip: pixels;
|
|
|
|
iconWidth: pixels;
|
|
|
|
iconArea: pixels;
|
2022-08-23 18:34:51 +00:00
|
|
|
bg: color;
|
2023-05-17 11:51:04 +00:00
|
|
|
headerFg: color;
|
|
|
|
trendingHeaderFg: color;
|
|
|
|
trendingSubheaderFg: color;
|
|
|
|
trendingUnreadFg: color;
|
|
|
|
trendingInstalled: icon;
|
2022-08-22 16:41:23 +00:00
|
|
|
overBg: color;
|
2023-05-16 15:48:49 +00:00
|
|
|
pathBg: color;
|
|
|
|
pathFg: color;
|
|
|
|
textFg: color;
|
2023-01-23 18:56:25 +00:00
|
|
|
categoriesBg: color;
|
2023-02-01 17:29:50 +00:00
|
|
|
categoriesBgOver: color;
|
2022-08-22 16:41:23 +00:00
|
|
|
fadeLeft: icon;
|
|
|
|
fadeRight: icon;
|
2023-05-17 11:51:04 +00:00
|
|
|
menu: PopupMenu;
|
2023-05-18 13:46:24 +00:00
|
|
|
expandedSeparator: MenuSeparator;
|
2023-05-16 15:48:49 +00:00
|
|
|
tabs: SettingsSlider;
|
2023-01-20 16:44:08 +00:00
|
|
|
search: TabbedSearch;
|
|
|
|
searchMargin: margins;
|
2023-05-17 11:51:04 +00:00
|
|
|
removeSet: IconButton;
|
|
|
|
boxLabel: FlatLabel;
|
|
|
|
icons: ComposeIcons;
|
|
|
|
autocompleteBottomSkip: pixels;
|
2022-08-22 16:41:23 +00:00
|
|
|
}
|
|
|
|
|
2023-05-16 15:48:49 +00:00
|
|
|
MessageBar {
|
|
|
|
title: TextStyle;
|
|
|
|
titleFg: color;
|
|
|
|
text: TextStyle;
|
|
|
|
textFg: color;
|
|
|
|
textPalette: TextPalette;
|
|
|
|
duration: int;
|
|
|
|
}
|
|
|
|
|
|
|
|
EmojiButton {
|
|
|
|
inner: IconButton;
|
|
|
|
bg: color;
|
|
|
|
lineFg: color;
|
|
|
|
lineFgOver: color;
|
|
|
|
}
|
|
|
|
|
|
|
|
SendButton {
|
|
|
|
inner: IconButton;
|
|
|
|
record: icon;
|
|
|
|
recordOver: icon;
|
|
|
|
sendDisabledFg: color;
|
|
|
|
}
|
|
|
|
|
2023-05-18 08:56:15 +00:00
|
|
|
RecordBarLock {
|
|
|
|
ripple: RippleAnimation;
|
|
|
|
originTop: icon;
|
|
|
|
originBottom: icon;
|
|
|
|
originBody: icon;
|
|
|
|
shadowTop: icon;
|
|
|
|
shadowBottom: icon;
|
|
|
|
shadowBody: icon;
|
|
|
|
arrow: icon;
|
|
|
|
fg: color;
|
|
|
|
}
|
|
|
|
|
|
|
|
RecordBar {
|
|
|
|
radius: pixels;
|
|
|
|
bg: color;
|
|
|
|
durationFg: color;
|
|
|
|
cancel: color;
|
|
|
|
cancelActive: color;
|
|
|
|
cancelRipple: RippleAnimation;
|
|
|
|
lock: RecordBarLock;
|
|
|
|
remove: IconButton;
|
|
|
|
}
|
|
|
|
|
2023-05-18 13:46:24 +00:00
|
|
|
ComposeFiles {
|
|
|
|
check: Check;
|
|
|
|
checkbox: Checkbox;
|
|
|
|
menu: IconButton;
|
|
|
|
caption: InputField;
|
|
|
|
emoji: EmojiButton;
|
|
|
|
confirmBg: color;
|
|
|
|
buttonFile: IconButton;
|
|
|
|
buttonFileEdit: icon;
|
|
|
|
buttonFileDelete: icon;
|
|
|
|
iconBg: color;
|
|
|
|
iconPlay: icon;
|
|
|
|
iconImage: icon;
|
|
|
|
iconDocument: icon;
|
|
|
|
nameFg: color;
|
|
|
|
statusFg: color;
|
|
|
|
}
|
|
|
|
|
2023-05-16 15:48:49 +00:00
|
|
|
ComposeControls {
|
|
|
|
bg: color;
|
|
|
|
radius: pixels;
|
|
|
|
|
|
|
|
field: InputField;
|
|
|
|
send: SendButton;
|
|
|
|
attach: IconButton;
|
|
|
|
emoji: EmojiButton;
|
2023-05-17 11:51:04 +00:00
|
|
|
suggestions: EmojiSuggestions;
|
2023-05-16 15:48:49 +00:00
|
|
|
tabbed: EmojiPan;
|
2023-05-18 10:04:14 +00:00
|
|
|
tabbedHeightMin: pixels;
|
|
|
|
tabbedHeightMax: pixels;
|
2023-05-18 08:56:15 +00:00
|
|
|
record: RecordBar;
|
2023-05-18 13:46:24 +00:00
|
|
|
files: ComposeFiles;
|
|
|
|
premium: PremiumLimits;
|
2023-05-16 15:48:49 +00:00
|
|
|
}
|
|
|
|
|
2023-06-01 16:01:29 +00:00
|
|
|
WhoRead {
|
|
|
|
userpics: GroupCallUserpics;
|
|
|
|
photoLeft: pixels;
|
|
|
|
photoSize: pixels;
|
|
|
|
photoSkip: pixels;
|
|
|
|
nameLeft: pixels;
|
|
|
|
iconPosition: point;
|
|
|
|
itemPadding: margins;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultWhoRead: WhoRead {
|
|
|
|
userpics: GroupCallUserpics {
|
|
|
|
size: 22px;
|
|
|
|
shift: 8px;
|
|
|
|
stroke: 4px;
|
|
|
|
align: align(right);
|
|
|
|
}
|
|
|
|
photoLeft: 13px;
|
|
|
|
photoSize: 30px;
|
|
|
|
photoSkip: 5px;
|
|
|
|
nameLeft: 57px;
|
|
|
|
iconPosition: point(15px, 7px);
|
|
|
|
itemPadding: margins(44px, 9px, 17px, 7px);
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2022-07-22 16:00:06 +00:00
|
|
|
emojiPanButtonRight: 7px;
|
2023-01-25 06:43:34 +00:00
|
|
|
emojiPanButtonTop: 8px;
|
2022-07-22 16:00:06 +00:00
|
|
|
emojiPanButton: RoundButton(defaultActiveButton) {
|
|
|
|
width: -24px;
|
|
|
|
height: 23px;
|
|
|
|
textTop: 2px;
|
|
|
|
}
|
2022-07-22 17:01:03 +00:00
|
|
|
emojiPanExpand: RoundButton(defaultActiveButton) {
|
|
|
|
font: font(12px bold);
|
|
|
|
width: -8px;
|
|
|
|
height: 19px;
|
|
|
|
textTop: 1px;
|
|
|
|
}
|
2022-07-22 16:00:06 +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
|
|
|
|
2022-02-25 13:11:49 +00:00
|
|
|
icon: icon {{ "info/info_media_delete", menuIconFg }};
|
|
|
|
iconOver: icon {{ "info/info_media_delete", 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-09-10 20:54:59 +00:00
|
|
|
stickersFeaturedUnreadBg: msgFileInBg;
|
|
|
|
stickersFeaturedUnreadSize: 5px;
|
|
|
|
stickersFeaturedUnreadSkip: 5px;
|
|
|
|
stickersFeaturedUnreadTop: 7px;
|
2021-02-12 12:40:36 +00:00
|
|
|
stickersFeaturedInstalled: icon {{ "chat/input_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);
|
2022-07-22 11:39:28 +00:00
|
|
|
emojiSetPadding: margins(12px, 0px, 12px, 0px);
|
|
|
|
emojiSetMaxHeight: 197px;
|
|
|
|
emojiSetSize: size(42px, 39px);
|
2019-11-02 17:06:47 +00:00
|
|
|
stickersScroll: ScrollArea(boxScroll) {
|
2016-12-13 17:07:56 +00:00
|
|
|
deltat: 19px;
|
2016-10-27 14:10:28 +00:00
|
|
|
deltab: 9px;
|
|
|
|
}
|
|
|
|
stickersRowDisabledOpacity: 0.4;
|
|
|
|
stickersRowDuration: 200;
|
|
|
|
|
2023-01-20 16:44:08 +00:00
|
|
|
emojiStatusDefault: icon {{ "emoji/stickers_premium", emojiIconFg }};
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2020-03-10 12:41:12 +00:00
|
|
|
filtersRemove: IconButton(stickersRemove) {
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
|
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) {
|
2023-01-23 18:56:25 +00:00
|
|
|
height: 43px;
|
|
|
|
barTop: 40px;
|
|
|
|
labelTop: 12px;
|
2017-04-09 18:06:06 +00:00
|
|
|
}
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2022-08-22 16:41:23 +00:00
|
|
|
emojiCategoryIconTop: 6px;
|
2016-11-12 15:02:19 +00:00
|
|
|
emojiPanAnimation: PanelAnimation(defaultPanelAnimation) {
|
|
|
|
fadeBg: emojiPanBg;
|
2023-01-23 18:56:25 +00:00
|
|
|
shadow: boxRoundShadow;
|
2016-11-12 15:02:19 +00:00
|
|
|
}
|
2016-10-27 14:10:28 +00:00
|
|
|
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;
|
2022-07-21 17:09:30 +00:00
|
|
|
emojiPanArea: size(34px, 32px);
|
|
|
|
emojiPanRadius: 8px;
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2023-05-16 15:48:49 +00:00
|
|
|
defaultTabbedSearchCancel: CrossButton {
|
|
|
|
width: 33px;
|
|
|
|
height: 33px;
|
|
|
|
|
|
|
|
cross: CrossAnimation {
|
|
|
|
size: 27px;
|
|
|
|
skip: 8px;
|
|
|
|
stroke: 1.;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
crossFg: menuIconFg;
|
|
|
|
crossFgOver: menuIconFg;
|
|
|
|
crossPosition: point(1px, 3px);
|
|
|
|
|
|
|
|
duration: 150;
|
|
|
|
loadingPeriod: 1000;
|
|
|
|
ripple: emptyRippleAnimation;
|
|
|
|
}
|
|
|
|
defaultTabbedSearchField: InputField(defaultMultiSelectSearchField) {
|
|
|
|
textMargins: margins(2px, 7px, 2px, 0px);
|
|
|
|
}
|
|
|
|
defaultTabbedSearchButton: IconButton(defaultIconButton) {
|
|
|
|
width: 33px;
|
|
|
|
height: 33px;
|
|
|
|
icon: icon{{ "emoji/emoji_search_input", emojiIconFg }};
|
|
|
|
iconOver: icon{{ "emoji/emoji_search_input", emojiIconFg }};
|
|
|
|
iconPosition: point(7px, -1px);
|
|
|
|
ripple: emptyRippleAnimation;
|
|
|
|
}
|
|
|
|
defaultTabbedSearchBack: IconButton(defaultIconButton) {
|
|
|
|
width: 33px;
|
|
|
|
height: 33px;
|
|
|
|
icon: icon{{ "emoji/emoji_back", menuIconFg }};
|
|
|
|
iconOver: icon{{ "emoji/emoji_back", menuIconFg }};
|
|
|
|
iconPosition: point(7px, -1px);
|
|
|
|
ripple: emptyRippleAnimation;
|
|
|
|
}
|
2023-01-20 16:44:08 +00:00
|
|
|
defaultTabbedSearch: TabbedSearch {
|
|
|
|
outer: emojiPanBg;
|
2023-02-03 16:51:13 +00:00
|
|
|
bg: emojiPanHover;
|
2023-05-16 15:48:49 +00:00
|
|
|
bgActive: windowBgRipple;
|
2023-01-20 16:44:08 +00:00
|
|
|
fg: emojiIconFg;
|
|
|
|
fgActive: emojiSubIconFgActive;
|
2023-02-03 16:51:13 +00:00
|
|
|
fadeLeft: icon {{ "fade_horizontal-flip_horizontal", emojiPanHover }};
|
|
|
|
fadeRight: icon {{ "fade_horizontal", emojiPanHover }};
|
2023-05-16 15:48:49 +00:00
|
|
|
field: defaultTabbedSearchField;
|
|
|
|
search: defaultTabbedSearchButton;
|
|
|
|
back: defaultTabbedSearchBack;
|
|
|
|
cancel: defaultTabbedSearchCancel;
|
2023-01-24 08:11:09 +00:00
|
|
|
defaultFieldWidth: 103px;
|
2023-01-20 16:44:08 +00:00
|
|
|
groupWidth: 30px;
|
2023-01-24 08:11:09 +00:00
|
|
|
groupSkip: 2px;
|
2023-01-20 16:44:08 +00:00
|
|
|
height: 33px;
|
|
|
|
}
|
2022-08-22 16:41:23 +00:00
|
|
|
|
2018-11-22 12:48:50 +00:00
|
|
|
inlineResultsMinHeight: 278px;
|
|
|
|
inlineResultsMaxHeight: 640px;
|
|
|
|
|
2016-10-27 14:10:28 +00:00
|
|
|
emojiPanHeaderFont: semiboldFont;
|
2022-07-21 17:09:30 +00:00
|
|
|
emojiPanRemoveSkip: 10px;
|
2023-01-25 06:43:34 +00:00
|
|
|
emojiPanRemoveTop: 10px;
|
2016-10-27 14:10:28 +00:00
|
|
|
|
|
|
|
emojiColorsPadding: 5px;
|
|
|
|
emojiColorsSep: 1px;
|
2016-12-21 15:05:58 +00:00
|
|
|
emojiColorsSepColor: shadowFg;
|
2016-10-27 14:10:28 +00:00
|
|
|
|
2022-07-15 08:09:50 +00:00
|
|
|
emojiIconSelectSkip: 3px;
|
2022-07-15 11:21:42 +00:00
|
|
|
emojiPremiumRequired: icon{{ "emoji/premium_lock", windowSubTextFg }};
|
2022-07-12 16:10:40 +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;
|
2022-02-25 13:11:49 +00:00
|
|
|
stickerPanDeleteIconBg: icon {{ "emoji/emoji_delete_bg", stickerPanDeleteBg }};
|
|
|
|
stickerPanDeleteIconFg: icon {{ "emoji/emoji_delete", stickerPanDeleteFg }};
|
2017-09-05 16:34:36 +00:00
|
|
|
stickerPanDeleteOpacityBg: 0.3;
|
|
|
|
stickerPanDeleteOpacityBgOver: 0.5;
|
|
|
|
stickerPanDeleteOpacityFg: 0.8;
|
|
|
|
stickerPanDeleteOpacityFgOver: 1.;
|
2023-01-24 05:32:27 +00:00
|
|
|
stickerPanRemoveSet: IconButton(hashtagClose) {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
rippleAreaPosition: point(0px, 0px);
|
|
|
|
}
|
2017-03-29 15:09:16 +00:00
|
|
|
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;
|
|
|
|
|
2020-04-29 14:52:40 +00:00
|
|
|
stickersToast: Toast(defaultToast) {
|
|
|
|
minWidth: 340px;
|
|
|
|
maxWidth: 340px;
|
|
|
|
padding: 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 }};
|
2023-02-10 16:12:28 +00:00
|
|
|
emojiEmpty: icon {{ "emoji_empty", windowSubTextFg }};
|
2018-03-02 17:17:33 +00:00
|
|
|
|
2023-05-18 13:46:24 +00:00
|
|
|
editMediaButtonSize: 32px;
|
|
|
|
|
|
|
|
editMediaButtonIconFile: icon {{ "send_media/send_media_replace", menuIconFg }};
|
|
|
|
editMediaButton: IconButton(defaultIconButton) {
|
|
|
|
width: editMediaButtonSize;
|
|
|
|
height: editMediaButtonSize;
|
|
|
|
|
|
|
|
icon: editMediaButtonIconFile;
|
|
|
|
|
|
|
|
rippleAreaSize: editMediaButtonSize;
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
|
|
|
|
sendBoxAlbumGroupEditInternalSkip: 8px;
|
|
|
|
sendBoxAlbumGroupSkipRight: 5px;
|
|
|
|
sendBoxAlbumGroupSkipTop: 5px;
|
|
|
|
sendBoxAlbumGroupRadius: 4px;
|
|
|
|
sendBoxAlbumGroupSize: size(62px, 25px);
|
|
|
|
sendBoxAlbumSmallGroupSize: size(30px, 25px);
|
|
|
|
|
|
|
|
sendBoxFileGroupSkipTop: 2px;
|
|
|
|
sendBoxFileGroupSkipRight: 5px;
|
|
|
|
sendBoxFileGroupEditInternalSkip: -1px;
|
|
|
|
|
|
|
|
sendBoxAlbumGroupButtonFile: IconButton(editMediaButton) {
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sendBoxAlbumGroupEditButtonIconFile: editMediaButtonIconFile;
|
|
|
|
sendBoxAlbumGroupDeleteButtonIconFile: icon {{ "send_media/send_media_delete", menuIconFg }};
|
|
|
|
|
|
|
|
sendBoxAlbumButtonMediaEdit: icon {{ "send_media/send_media_replace", roundedFg }};
|
|
|
|
sendBoxAlbumGroupButtonMediaEdit: icon {{ "send_media/send_media_replace", roundedFg, point(4px, 1px) }};
|
|
|
|
sendBoxAlbumGroupButtonMediaDelete: icon {{ "send_media/send_media_delete", roundedFg }};
|
|
|
|
|
2023-05-17 11:51:04 +00:00
|
|
|
defaultComposeIcons: ComposeIcons {
|
|
|
|
settings: icon {{ "emoji/emoji_settings", emojiIconFg }};
|
|
|
|
|
|
|
|
recent: icon {{ "emoji/emoji_recent", emojiIconFg }};
|
|
|
|
recentActive: icon {{ "emoji/emoji_recent", emojiSubIconFgActive }};
|
|
|
|
people: icon {{ "emoji/emoji_smile", emojiIconFg }};
|
|
|
|
peopleActive: icon {{ "emoji/emoji_smile", emojiSubIconFgActive }};
|
|
|
|
nature: icon {{ "emoji/emoji_nature", emojiIconFg }};
|
|
|
|
natureActive: icon {{ "emoji/emoji_nature", emojiSubIconFgActive }};
|
|
|
|
food: icon {{ "emoji/emoji_food", emojiIconFg }};
|
|
|
|
foodActive: icon {{ "emoji/emoji_food", emojiSubIconFgActive }};
|
|
|
|
activity: icon {{ "emoji/emoji_activities", emojiIconFg }};
|
|
|
|
activityActive: icon {{ "emoji/emoji_activities", emojiSubIconFgActive }};
|
|
|
|
travel: icon {{ "emoji/emoji_travel", emojiIconFg }};
|
|
|
|
travelActive: icon {{ "emoji/emoji_travel", emojiSubIconFgActive }};
|
|
|
|
objects: icon {{ "emoji/emoji_objects", emojiIconFg }};
|
|
|
|
objectsActive: icon {{ "emoji/emoji_objects", emojiSubIconFgActive }};
|
|
|
|
symbols: icon {{ "emoji/emoji_love", emojiIconFg }};
|
|
|
|
symbolsActive: icon {{ "emoji/emoji_love", emojiSubIconFgActive }};
|
|
|
|
|
|
|
|
menuFave: menuIconFave;
|
|
|
|
menuUnfave: menuIconUnfave;
|
|
|
|
menuStickerSet: menuIconStickers;
|
|
|
|
menuRecentRemove: menuIconDelete;
|
|
|
|
menuGifAdd: menuIconGif;
|
|
|
|
menuGifRemove: menuIconDelete;
|
|
|
|
menuMute: menuIconMute;
|
|
|
|
menuSchedule: menuIconSchedule;
|
|
|
|
menuWhenOnline: menuIconWhenOnline;
|
2023-05-18 13:46:24 +00:00
|
|
|
menuSpoiler: menuIconSpoiler;
|
|
|
|
menuSpoilerOff: menuIconSpoilerOff;
|
2023-05-17 11:51:04 +00:00
|
|
|
}
|
|
|
|
defaultEmojiPan: EmojiPan {
|
|
|
|
margin: margins(7px, 0px, 7px, 0px);
|
|
|
|
padding: margins(7px, 0px, 4px, 7px);
|
|
|
|
showAnimation: emojiPanAnimation;
|
|
|
|
desiredSize: 37px;
|
|
|
|
verticalSizeSub: 1px;
|
|
|
|
header: 33px;
|
|
|
|
headerLeft: 14px;
|
|
|
|
headerLockLeft: 7px;
|
|
|
|
headerLockedLeft: 26px;
|
|
|
|
headerTop: 10px;
|
|
|
|
footer: 36px;
|
|
|
|
iconSkip: 3px;
|
|
|
|
iconWidth: 30px;
|
|
|
|
iconArea: 28px;
|
|
|
|
bg: emojiPanBg;
|
|
|
|
headerFg: emojiPanHeaderFg;
|
|
|
|
trendingHeaderFg: stickersTrendingHeaderFg;
|
|
|
|
trendingSubheaderFg: stickersTrendingSubheaderFg;
|
|
|
|
trendingUnreadFg: stickersFeaturedUnreadBg;
|
|
|
|
trendingInstalled: stickersFeaturedInstalled;
|
|
|
|
overBg: emojiPanHover;
|
|
|
|
pathBg: windowBgRipple;
|
|
|
|
pathFg: windowBgOver;
|
|
|
|
textFg: windowFg;
|
|
|
|
categoriesBg: emojiPanCategories;
|
|
|
|
categoriesBgOver: windowBgRipple;
|
|
|
|
fadeLeft: icon {{ "fade_horizontal-flip_horizontal", emojiPanCategories }};
|
|
|
|
fadeRight: icon {{ "fade_horizontal", emojiPanCategories }};
|
|
|
|
menu: popupMenuWithIcons;
|
2023-05-18 13:46:24 +00:00
|
|
|
expandedSeparator: MenuSeparator(defaultMenuSeparator) {
|
|
|
|
padding: margins(0px, 4px, 0px, 4px);
|
|
|
|
width: 6px;
|
|
|
|
}
|
2023-05-17 11:51:04 +00:00
|
|
|
tabs: emojiTabs;
|
|
|
|
search: defaultTabbedSearch;
|
|
|
|
searchMargin: margins(1px, 11px, 2px, 5px);
|
|
|
|
removeSet: stickerPanRemoveSet;
|
|
|
|
boxLabel: boxLabel;
|
|
|
|
icons: defaultComposeIcons;
|
|
|
|
autocompleteBottomSkip: 0px;
|
|
|
|
}
|
|
|
|
statusEmojiPan: EmojiPan(defaultEmojiPan) {
|
|
|
|
categoriesBg: windowBg;
|
|
|
|
categoriesBgOver: windowBgOver;
|
|
|
|
fadeLeft: icon {{ "fade_horizontal-flip_horizontal", windowBg }};
|
|
|
|
fadeRight: icon {{ "fade_horizontal", windowBg }};
|
|
|
|
}
|
|
|
|
|
2017-03-27 18:11:51 +00:00
|
|
|
inlineBotsScroll: ScrollArea(defaultSolidScroll) {
|
|
|
|
deltat: stickerPanPadding;
|
|
|
|
deltab: stickerPanPadding;
|
|
|
|
}
|
2017-03-31 15:50:02 +00:00
|
|
|
|
2023-01-24 09:20:57 +00:00
|
|
|
gifsPadding: margins(9px, 5px, 3px, 9px);
|
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
|
|
|
|
2023-05-17 11:51:04 +00:00
|
|
|
defaultEmojiSuggestions: EmojiSuggestions {
|
|
|
|
dropdown: emojiSuggestionsDropdown;
|
|
|
|
bg: menuBg;
|
|
|
|
overBg: emojiPanHover;
|
|
|
|
textFg: windowFg;
|
|
|
|
fadeLeft: icon {{ "fade_horizontal-flip_horizontal", boxBg }};
|
|
|
|
fadeRight: icon {{ "fade_horizontal", boxBg }};
|
|
|
|
}
|
|
|
|
|
2017-08-01 12:01:42 +00:00
|
|
|
mentionHeight: 40px;
|
|
|
|
mentionPadding: margins(8px, 5px, 8px, 5px);
|
|
|
|
mentionTop: 11px;
|
|
|
|
mentionFont: linkFont;
|
|
|
|
mentionNameFg: windowFg;
|
|
|
|
mentionNameFgOver: windowFgOver;
|
2022-09-30 07:25:02 +00:00
|
|
|
mentionPhotoSize: 33px;
|
2017-08-01 12:01:42 +00:00
|
|
|
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;
|
2020-04-29 08:08:34 +00:00
|
|
|
manageEmojiPreviewPadding: margins(22px, 9px, 19px, 9px);
|
2019-01-02 12:11:13 +00:00
|
|
|
manageEmojiMarginRight: 21px;
|
|
|
|
manageEmojiNameTop: 3px;
|
|
|
|
manageEmojiStatusTop: 25px;
|
2020-10-19 15:37:59 +00:00
|
|
|
|
|
|
|
inlineRadialSize: 44px;
|
|
|
|
inlineFileSize: 44px;
|
2022-05-18 10:18:17 +00:00
|
|
|
|
2022-05-20 14:57:01 +00:00
|
|
|
stickersPremiumLock: icon{{ "emoji/premium_lock", premiumButtonFg }};
|
2022-08-17 18:03:57 +00:00
|
|
|
|
|
|
|
reactStripExtend: margins(21px, 49px, 39px, 0px);
|
|
|
|
reactStripHeight: 40px;
|
2022-08-18 14:31:38 +00:00
|
|
|
reactStripSize: 32px;
|
2022-08-23 15:09:40 +00:00
|
|
|
reactStripMinWidth: 60px;
|
2022-08-22 16:41:23 +00:00
|
|
|
reactStripImage: 26px;
|
2022-08-18 14:31:38 +00:00
|
|
|
reactStripSkip: 7px;
|
2022-08-19 12:08:11 +00:00
|
|
|
reactStripBubble: icon{
|
|
|
|
{ "chat/reactions_bubble_shadow", windowShadowFg },
|
|
|
|
{ "chat/reactions_bubble", windowBg },
|
|
|
|
};
|
|
|
|
reactStripBubbleRight: 20px;
|
2023-02-09 08:55:44 +00:00
|
|
|
userpicBuilderEmojiPan: EmojiPan(statusEmojiPan) {
|
2022-08-22 16:41:23 +00:00
|
|
|
margin: margins(reactStripSkip, 0px, reactStripSkip, 0px);
|
|
|
|
padding: margins(reactStripSkip, 0px, reactStripSkip, reactStripSkip);
|
|
|
|
desiredSize: reactStripSize;
|
|
|
|
verticalSizeSub: 0px;
|
|
|
|
overBg: transparent;
|
2023-01-25 07:54:01 +00:00
|
|
|
search: TabbedSearch(defaultTabbedSearch) {
|
|
|
|
defaultFieldWidth: 88px;
|
|
|
|
}
|
2023-02-09 08:55:44 +00:00
|
|
|
}
|
|
|
|
reactPanelEmojiPan: EmojiPan(userpicBuilderEmojiPan) {
|
2023-01-25 07:54:01 +00:00
|
|
|
searchMargin: margins(1px, 10px, 2px, 6px);
|
2022-08-22 16:41:23 +00:00
|
|
|
}
|
2023-01-25 06:43:34 +00:00
|
|
|
emojiScroll: ScrollArea(defaultSolidScroll) {
|
2022-08-22 16:41:23 +00:00
|
|
|
deltat: 3px;
|
|
|
|
deltab: 3px;
|
2023-01-25 06:43:34 +00:00
|
|
|
round: -1px;
|
2022-08-22 16:41:23 +00:00
|
|
|
width: 7px;
|
|
|
|
deltax: 2px;
|
|
|
|
hiding: 0;
|
|
|
|
}
|
2023-01-25 06:43:34 +00:00
|
|
|
reactPanelScroll: ScrollArea(emojiScroll) {
|
|
|
|
deltab: 7px;
|
|
|
|
}
|
2022-08-22 16:41:23 +00:00
|
|
|
|
2023-02-01 12:41:49 +00:00
|
|
|
choosePeerGroupIcon: icon {{ "info/edit/create_group", lightButtonFg }};
|
|
|
|
choosePeerChannelIcon: icon {{ "info/edit/create_channel", lightButtonFg }};
|
|
|
|
choosePeerCreateIconLeft: 25px;
|
2023-05-16 15:48:49 +00:00
|
|
|
|
|
|
|
historyRequestsUserpics: GroupCallUserpics {
|
|
|
|
size: 22px;
|
|
|
|
shift: 8px;
|
|
|
|
stroke: 4px;
|
|
|
|
align: align(left);
|
|
|
|
}
|
|
|
|
historyRequestsHeight: 33px;
|
|
|
|
|
|
|
|
historySlowmodeCounterMargins: margins(0px, 0px, 10px, 0px);
|
|
|
|
|
|
|
|
historyComposeAreaPalette: TextPalette(defaultTextPalette) {
|
|
|
|
linkFg: historyComposeAreaFgService;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultMessageBar: MessageBar {
|
|
|
|
title: semiboldTextStyle;
|
|
|
|
titleFg: windowActiveTextFg;
|
|
|
|
text: defaultTextStyle;
|
|
|
|
textFg: historyComposeAreaFg;
|
|
|
|
textPalette: historyComposeAreaPalette;
|
|
|
|
duration: 160;
|
|
|
|
}
|
|
|
|
|
|
|
|
historyComposeButton: FlatButton {
|
|
|
|
color: windowActiveTextFg;
|
|
|
|
overColor: windowActiveTextFg;
|
|
|
|
|
|
|
|
bgColor: historyComposeButtonBg;
|
|
|
|
overBgColor: historyComposeButtonBgOver;
|
|
|
|
|
|
|
|
width: -32px;
|
|
|
|
height: 46px;
|
|
|
|
|
|
|
|
textTop: 14px;
|
|
|
|
|
|
|
|
font: semiboldFont;
|
|
|
|
overFont: semiboldFont;
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: historyComposeButtonBgRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
historyUnblock: FlatButton(historyComposeButton) {
|
|
|
|
color: attentionButtonFg;
|
|
|
|
overColor: attentionButtonFgOver;
|
|
|
|
}
|
|
|
|
historyContactStatusButton: FlatButton(historyComposeButton) {
|
|
|
|
height: 49px;
|
|
|
|
textTop: 16px;
|
|
|
|
overBgColor: historyComposeButtonBg;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: historyComposeButtonBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
historyContactStatusBlock: FlatButton(historyContactStatusButton) {
|
|
|
|
color: attentionButtonFg;
|
|
|
|
overColor: attentionButtonFg;
|
|
|
|
}
|
|
|
|
historyContactStatusLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 240px;
|
|
|
|
}
|
|
|
|
historyEmojiStatusInfoLabel: FlatLabel(historyContactStatusLabel) {
|
|
|
|
align: align(top);
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
historyContactStatusMinSkip: 16px;
|
|
|
|
|
|
|
|
historyReplySkip: 51px;
|
|
|
|
historyReplyNameFg: windowActiveTextFg;
|
|
|
|
historyReplyHeight: 49px;
|
|
|
|
historyReplyIconPosition: point(5px, 5px);
|
|
|
|
historyReplyIcon: icon {{ "chat/input_reply", historyReplyIconFg }};
|
|
|
|
historyForwardIcon: icon {{ "chat/input_forward", historyReplyIconFg }};
|
|
|
|
historyEditIcon: icon {{ "chat/input_edit", historyReplyIconFg }};
|
|
|
|
historyReplyCancel: IconButton {
|
|
|
|
width: 49px;
|
|
|
|
height: 49px;
|
|
|
|
|
|
|
|
icon: historyReplyCancelIcon;
|
|
|
|
iconOver: historyReplyCancelIconOver;
|
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(4px, 4px);
|
|
|
|
rippleAreaSize: 40px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
historyPinnedShowAll: IconButton(historyReplyCancel) {
|
|
|
|
icon: icon {{ "pinned_show_all", historyReplyCancelFg }};
|
|
|
|
iconOver: icon {{ "pinned_show_all", historyReplyCancelFgOver }};
|
|
|
|
}
|
|
|
|
historyPinnedBotButton: RoundButton(defaultActiveButton) {
|
|
|
|
width: -34px;
|
|
|
|
height: 30px;
|
|
|
|
textTop: 6px;
|
|
|
|
padding: margins(2px, 10px, 10px, 9px);
|
|
|
|
}
|
|
|
|
historyPinnedBotButtonMaxWidth: 150px;
|
|
|
|
|
|
|
|
historyToDownPosition: point(12px, 10px);
|
|
|
|
historyToDownAbove: icon {{ "history_down_arrow", historyToDownFg }};
|
|
|
|
historyToDownAboveOver: icon {{ "history_down_arrow", historyToDownFgOver }};
|
|
|
|
historyToDownPaddingTop: 10px;
|
|
|
|
historyToDownBelow: icon {
|
|
|
|
{ "history_down_shadow", historyToDownShadow },
|
|
|
|
{ "history_down_circle", historyToDownBg },
|
|
|
|
};
|
|
|
|
historyToDownBelowOver: icon {
|
|
|
|
{ "history_down_shadow", historyToDownShadow },
|
|
|
|
{ "history_down_circle", historyToDownBgOver },
|
|
|
|
};
|
|
|
|
historyToDown: TwoIconButton {
|
|
|
|
width: 52px;
|
|
|
|
height: 62px;
|
|
|
|
|
|
|
|
iconBelow: historyToDownBelow;
|
|
|
|
iconBelowOver: historyToDownBelowOver;
|
|
|
|
iconAbove: historyToDownAbove;
|
|
|
|
iconAboveOver: historyToDownAboveOver;
|
|
|
|
iconPosition: point(0px, historyToDownPaddingTop);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(5px, 15px);
|
|
|
|
rippleAreaSize: 42px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: historyToDownBgRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
historyToDownBadgeFont: semiboldFont;
|
|
|
|
historyToDownBadgeSize: 22px;
|
|
|
|
|
|
|
|
historyToDownShownAfter: 480px;
|
|
|
|
historyToDownDuration: 150;
|
|
|
|
|
|
|
|
dialogsToUpAbove: icon {{ "history_down_arrow-flip_vertical", historyToDownFg, point(0px, 1px) }};
|
|
|
|
dialogsToUpAboveOver: icon {{ "history_down_arrow-flip_vertical", historyToDownFgOver, point(0px, 1px) }};
|
|
|
|
|
|
|
|
dialogsToUp: TwoIconButton(historyToDown) {
|
|
|
|
iconAbove: dialogsToUpAbove;
|
|
|
|
iconAboveOver: dialogsToUpAboveOver;
|
|
|
|
}
|
|
|
|
|
|
|
|
historyUnreadMentions: TwoIconButton(historyToDown) {
|
|
|
|
iconAbove: icon {{ "history_unread_mention", historyToDownFg }};
|
|
|
|
iconAboveOver: icon {{ "history_unread_mention", historyToDownFgOver }};
|
|
|
|
}
|
|
|
|
historyUnreadReactions: TwoIconButton(historyToDown) {
|
|
|
|
iconAbove: icon {{ "history_unread_reaction", historyToDownFg }};
|
|
|
|
iconAboveOver: icon {{ "history_unread_reaction", historyToDownFgOver }};
|
|
|
|
}
|
|
|
|
historyUnreadThingsSkip: 4px;
|
|
|
|
|
|
|
|
historyComposeField: InputField(defaultInputField) {
|
|
|
|
font: normalFont;
|
|
|
|
textMargins: margins(0px, 0px, 0px, 0px);
|
|
|
|
textAlign: align(left);
|
|
|
|
textFg: historyComposeAreaFg;
|
|
|
|
textBg: historyComposeAreaBg;
|
|
|
|
heightMin: 36px;
|
|
|
|
heightMax: 72px;
|
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
|
|
|
placeholderMargins: margins(7px, 5px, 7px, 5px);
|
|
|
|
placeholderAlign: align(topleft);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: normalFont;
|
|
|
|
placeholderShift: -50px;
|
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
duration: 100;
|
|
|
|
}
|
|
|
|
historyComposeFieldMaxHeight: 224px;
|
|
|
|
// historyMinHeight: 56px;
|
|
|
|
|
|
|
|
historyAttach: IconButton(defaultIconButton) {
|
|
|
|
width: 44px;
|
|
|
|
height: 46px;
|
|
|
|
|
|
|
|
icon: icon {{ "chat/input_attach", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "chat/input_attach", historyComposeIconFgOver }};
|
|
|
|
|
|
|
|
rippleAreaPosition: point(2px, 3px);
|
|
|
|
rippleAreaSize: 40px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
historyMessagesTTL: IconButtonWithText {
|
|
|
|
iconButton: IconButton(historyAttach) {
|
|
|
|
icon: icon {{ "chat/input_autodelete", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "chat/input_autodelete", historyComposeIconFgOver }};
|
|
|
|
}
|
|
|
|
textFg: historyComposeIconFg;
|
|
|
|
textFgOver: historyComposeIconFgOver;
|
|
|
|
textPadding: margins(21px, 20px, 3px, 7px);
|
|
|
|
textAlign: align(left);
|
|
|
|
|
|
|
|
font: font(10px semibold);
|
|
|
|
}
|
|
|
|
historyReplaceMedia: IconButton(historyAttach) {
|
|
|
|
icon: icon {{ "chat/input_replace", windowBgActive }};
|
|
|
|
iconOver: icon {{ "chat/input_replace", windowBgActive }};
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
historyAttachEmojiActive: icon {{ "chat/input_smile_face", windowBgActive }};
|
|
|
|
historyEmojiCircle: size(20px, 20px);
|
|
|
|
historyEmojiCircleLine: 1.5;
|
|
|
|
historyEmojiCircleFg: historyComposeIconFg;
|
|
|
|
historyEmojiCircleFgOver: historyComposeIconFgOver;
|
|
|
|
historyBotKeyboardShow: IconButton(historyAttach) {
|
|
|
|
icon: icon {{ "chat/input_bot_keyboard", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "chat/input_bot_keyboard", historyComposeIconFgOver }};
|
|
|
|
}
|
|
|
|
historyBotKeyboardHide: IconButton(historyAttach) {
|
|
|
|
icon: icon {{ "chat/input_bot_keyboard_hide", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "chat/input_bot_keyboard_hide", historyComposeIconFgOver }};
|
|
|
|
}
|
|
|
|
historyBotCommandStart: IconButton(historyAttach) {
|
|
|
|
icon: icon {{ "chat/input_bot_command", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "chat/input_bot_command", historyComposeIconFgOver }};
|
|
|
|
}
|
|
|
|
historyScheduledToggle: IconButton(historyAttach) {
|
|
|
|
icon: icon {
|
|
|
|
{ "chat/input_scheduled", historyComposeIconFg },
|
|
|
|
{ "chat/input_scheduled_dot", attentionButtonFg }
|
|
|
|
};
|
|
|
|
iconOver: icon {
|
|
|
|
{ "chat/input_scheduled", historyComposeIconFgOver },
|
|
|
|
{ "chat/input_scheduled_dot", attentionButtonFg }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
historyAttachEmojiInner: IconButton(historyAttach) {
|
|
|
|
icon: icon {{ "chat/input_smile_face", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "chat/input_smile_face", historyComposeIconFgOver }};
|
|
|
|
}
|
|
|
|
historyAttachEmoji: EmojiButton {
|
|
|
|
inner: historyAttachEmojiInner;
|
|
|
|
bg: historyComposeAreaBg;
|
|
|
|
lineFg: historyEmojiCircleFg;
|
|
|
|
lineFgOver: historyEmojiCircleFgOver;
|
|
|
|
}
|
|
|
|
boxAttachEmoji: EmojiButton(historyAttachEmoji) {
|
|
|
|
inner: IconButton(historyAttachEmojiInner) {
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
rippleAreaSize: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
boxAttachEmojiTop: 20px;
|
|
|
|
|
|
|
|
historySendIcon: icon {{ "chat/input_send", historySendIconFg }};
|
|
|
|
historySendIconOver: icon {{ "chat/input_send", historySendIconFgOver }};
|
|
|
|
historySendIconPosition: point(10px, 11px);
|
|
|
|
historySendSize: size(44px, 46px);
|
|
|
|
historyScheduleIcon: icon {{ "chat/input_schedule", historyComposeAreaBg }};
|
|
|
|
historyScheduleIconPosition: point(7px, 8px);
|
|
|
|
historyEditSaveIcon: icon {{ "chat/input_save", historySendIconFg }};
|
|
|
|
historyEditSaveIconOver: icon {{ "chat/input_save", historySendIconFgOver }};
|
|
|
|
|
|
|
|
historyEditMediaBg: videoPlayIconBg;
|
|
|
|
historyEditMedia: icon{{ "chat/input_draw", videoPlayIconFg }};
|
|
|
|
historyMessagesTTLPickerHeight: 200px;
|
|
|
|
historyMessagesTTLPickerItemHeight: 40px;
|
|
|
|
historyMessagesTTLLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 200px;
|
|
|
|
align: align(topleft);
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
|
|
|
|
historyRecordVoiceFg: historyComposeIconFg;
|
|
|
|
historyRecordVoiceFgOver: historyComposeIconFgOver;
|
|
|
|
historyRecordVoiceFgInactive: attentionButtonFg;
|
|
|
|
historyRecordVoiceFgActive: windowBgActive;
|
|
|
|
historyRecordVoiceFgActiveIcon: windowFgActive;
|
|
|
|
historyRecordVoiceShowDuration: 120;
|
|
|
|
historyRecordVoiceDuration: 120;
|
|
|
|
historyRecordVoice: icon {{ "chat/input_record", historyRecordVoiceFg }};
|
|
|
|
historyRecordVoiceOver: icon {{ "chat/input_record", historyRecordVoiceFgOver }};
|
|
|
|
historyRecordVoiceActive: icon {{ "chat/input_record_filled", historyRecordVoiceFgActiveIcon }};
|
|
|
|
historyRecordSendIconPosition: point(2px, 0px);
|
|
|
|
historyRecordVoiceRippleBgActive: lightButtonBgOver;
|
|
|
|
historyRecordSignalRadius: 5px;
|
|
|
|
historyRecordCancel: windowSubTextFg;
|
|
|
|
historyRecordCancelActive: windowActiveTextFg;
|
|
|
|
historyRecordFont: font(13px);
|
|
|
|
historyRecordDurationSkip: 12px;
|
|
|
|
historyRecordDurationFg: historyComposeAreaFg;
|
|
|
|
|
|
|
|
historyRecordMainBlobMinRadius: 23px;
|
|
|
|
historyRecordMainBlobMaxRadius: 37px;
|
|
|
|
historyRecordMinorBlobMinRadius: 40px;
|
|
|
|
historyRecordMinorBlobMaxRadius: 47px;
|
|
|
|
historyRecordMajorBlobMinRadius: 43px;
|
|
|
|
historyRecordMajorBlobMaxRadius: 50px;
|
|
|
|
|
|
|
|
historyRecordTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: historyRecordFont;
|
|
|
|
}
|
|
|
|
|
|
|
|
historyRecordTextWidthForWrap: 210px;
|
|
|
|
historyRecordTextLeft: 15px;
|
|
|
|
historyRecordTextRight: 25px;
|
|
|
|
|
|
|
|
historyRecordLockShowDuration: historyToDownDuration;
|
|
|
|
historyRecordLockSize: size(75px, 133px);
|
|
|
|
|
|
|
|
historyRecordLockIconSize: size(14px, 17px);
|
|
|
|
historyRecordLockIconBottomHeight: 9px;
|
|
|
|
historyRecordLockIconLineHeight: 2px;
|
|
|
|
historyRecordLockIconLineSkip: 3px;
|
|
|
|
historyRecordLockIconLineWidth: 2px;
|
|
|
|
historyRecordLockIconArcHeight: 4px;
|
|
|
|
historyRecordStopIconWidth: 12px;
|
|
|
|
|
|
|
|
historyRecordLockTopShadow: icon {{ "voice_lock/record_lock_top_shadow", historyToDownShadow }};
|
|
|
|
historyRecordLockTop: icon {{ "voice_lock/record_lock_top", historyToDownBg }};
|
|
|
|
historyRecordLockBottomShadow: icon {{ "voice_lock/record_lock_bottom_shadow", historyToDownShadow }};
|
|
|
|
historyRecordLockBottom: icon {{ "voice_lock/record_lock_bottom", historyToDownBg }};
|
|
|
|
historyRecordLockBodyShadow: icon {{ "voice_lock/record_lock_body_shadow", historyToDownShadow }};
|
|
|
|
historyRecordLockBody: icon {{ "voice_lock/record_lock_body", historyToDownBg }};
|
|
|
|
historyRecordLockMargin: margins(4px, 4px, 4px, 4px);
|
|
|
|
historyRecordLockArrow: icon {{ "voice_lock/voice_arrow", historyToDownFg }};
|
|
|
|
historyRecordLockRippleMargin: margins(6px, 6px, 6px, 6px);
|
|
|
|
|
|
|
|
historyRecordDelete: IconButton(historyAttach) {
|
|
|
|
icon: icon {{ "info/info_media_delete", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "info/info_media_delete", historyComposeIconFgOver }};
|
|
|
|
iconPosition: point(10px, 11px);
|
|
|
|
}
|
|
|
|
historyRecordWaveformRightSkip: 10px;
|
|
|
|
historyRecordWaveformBgMargins: margins(5px, 7px, 5px, 7px);
|
|
|
|
|
|
|
|
historyRecordWaveformBar: 3px;
|
|
|
|
|
|
|
|
historyRecordLockPosition: point(1px, 35px);
|
|
|
|
|
|
|
|
historyRecordCancelButtonWidth: 100px;
|
|
|
|
historyRecordCancelButtonFg: lightButtonFg;
|
|
|
|
|
|
|
|
historySilentToggle: IconButton(historyBotKeyboardShow) {
|
|
|
|
icon: icon {{ "chat/input_silent", historyComposeIconFg }};
|
|
|
|
iconOver: icon {{ "chat/input_silent", historyComposeIconFgOver }};
|
|
|
|
}
|
|
|
|
historySilentToggleOn: icon {{ "chat/input_silent_on", historyComposeIconFg }};
|
|
|
|
historySilentToggleOnOver: icon {{ "chat/input_silent_on", historyComposeIconFgOver }};
|
|
|
|
|
2023-05-18 08:56:15 +00:00
|
|
|
defaultRecordBarLock: RecordBarLock {
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
originTop: historyRecordLockTop;
|
|
|
|
originBottom: historyRecordLockBottom;
|
|
|
|
originBody: historyRecordLockBody;
|
|
|
|
shadowTop: historyRecordLockTopShadow;
|
|
|
|
shadowBottom: historyRecordLockBottomShadow;
|
|
|
|
shadowBody: historyRecordLockBodyShadow;
|
|
|
|
arrow: historyRecordLockArrow;
|
|
|
|
fg: historyToDownFg;
|
|
|
|
}
|
|
|
|
defaultRecordBar: RecordBar {
|
|
|
|
bg: historyComposeAreaBg;
|
|
|
|
durationFg: historyRecordDurationFg;
|
|
|
|
cancel: historyRecordCancel;
|
|
|
|
cancelActive: historyRecordCancelActive;
|
|
|
|
cancelRipple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgRipple;
|
|
|
|
}
|
|
|
|
lock: defaultRecordBarLock;
|
|
|
|
remove: historyRecordDelete;
|
|
|
|
}
|
|
|
|
|
2023-05-16 15:48:49 +00:00
|
|
|
historySend: SendButton {
|
|
|
|
inner: IconButton(historyAttach) {
|
|
|
|
icon: historySendIcon;
|
|
|
|
iconOver: historySendIconOver;
|
|
|
|
}
|
|
|
|
record: historyRecordVoice;
|
|
|
|
recordOver: historyRecordVoiceOver;
|
|
|
|
sendDisabledFg: historyComposeIconFg;
|
|
|
|
}
|
|
|
|
|
2023-05-18 13:46:24 +00:00
|
|
|
defaultComposeFilesMenu: IconButton(defaultIconButton) {
|
|
|
|
width: 48px;
|
|
|
|
height: 54px;
|
|
|
|
|
|
|
|
icon: icon {{ "title_menu_dots", boxTitleCloseFg }};
|
|
|
|
iconOver: icon {{ "title_menu_dots", boxTitleCloseFgOver }};
|
|
|
|
iconPosition: point(18px, -1px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(1px, 6px);
|
|
|
|
rippleAreaSize: 42px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
defaultComposeFilesField: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(1px, 26px, 31px, 4px);
|
|
|
|
heightMax: 158px;
|
|
|
|
}
|
|
|
|
defaultComposeFiles: ComposeFiles {
|
|
|
|
check: defaultCheck;
|
|
|
|
checkbox: defaultBoxCheckbox;
|
|
|
|
menu: defaultComposeFilesMenu;
|
|
|
|
caption: defaultComposeFilesField;
|
|
|
|
emoji: boxAttachEmoji;
|
|
|
|
confirmBg: windowBgOver;
|
|
|
|
buttonFile: sendBoxAlbumGroupButtonFile;
|
|
|
|
buttonFileEdit: sendBoxAlbumGroupEditButtonIconFile;
|
|
|
|
buttonFileDelete: sendBoxAlbumGroupDeleteButtonIconFile;
|
|
|
|
iconBg: msgFileInBg;
|
|
|
|
iconPlay: icon {{ "history_file_play", historyFileInIconFg }};
|
|
|
|
iconImage: icon {{ "history_file_image", historyFileInIconFg }};
|
|
|
|
iconDocument: icon {{ "history_file_document", historyFileInIconFg }};
|
|
|
|
nameFg: historyFileNameInFg;
|
|
|
|
statusFg: mediaInFg;
|
|
|
|
}
|
2023-05-16 15:48:49 +00:00
|
|
|
defaultComposeControls: ComposeControls {
|
|
|
|
bg: historyComposeAreaBg;
|
|
|
|
radius: 0px;
|
|
|
|
|
|
|
|
field: historyComposeField;
|
|
|
|
send: historySend;
|
|
|
|
attach: historyAttach;
|
|
|
|
emoji: historyAttachEmoji;
|
2023-05-17 11:51:04 +00:00
|
|
|
suggestions: defaultEmojiSuggestions;
|
2023-05-16 15:48:49 +00:00
|
|
|
tabbed: defaultEmojiPan;
|
2023-05-18 10:04:14 +00:00
|
|
|
tabbedHeightMin: emojiPanMinHeight;
|
|
|
|
tabbedHeightMax: emojiPanMaxHeight;
|
2023-05-18 08:56:15 +00:00
|
|
|
record: defaultRecordBar;
|
2023-05-18 13:46:24 +00:00
|
|
|
files: defaultComposeFiles;
|
|
|
|
premium: defaultPremiumLimits;
|
2023-05-16 15:48:49 +00:00
|
|
|
}
|
2023-06-01 16:01:29 +00:00
|
|
|
|
|
|
|
moreChatsBarHeight: 48px;
|
|
|
|
moreChatsBarTextPosition: point(12px, 4px);
|
|
|
|
moreChatsBarStatusPosition: point(12px, 24px);
|
|
|
|
moreChatsBarClose: IconButton(defaultIconButton) {
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
|
|
|
|
icon: boxTitleCloseIcon;
|
|
|
|
iconOver: boxTitleCloseIconOver;
|
|
|
|
iconPosition: point(12px, -1px);
|
|
|
|
|
|
|
|
rippleAreaPosition: point(0px, 4px);
|
|
|
|
rippleAreaSize: 40px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
}
|