2016-05-31 09:46:31 +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-05-31 09:46:31 +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-05-31 09:46:31 +00:00
|
|
|
*/
|
|
|
|
using "basic.style";
|
|
|
|
|
2016-10-27 21:19:38 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
|
|
|
|
2016-06-07 19:59:39 +00:00
|
|
|
dialogsUnreadFont: font(12px bold);
|
|
|
|
dialogsUnreadHeight: 19px;
|
|
|
|
dialogsUnreadPadding: 5px;
|
|
|
|
|
2017-04-25 20:36:04 +00:00
|
|
|
dialogsRipple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: dialogsRippleBg;
|
|
|
|
}
|
2016-12-05 11:01:08 +00:00
|
|
|
|
2016-06-07 19:59:39 +00:00
|
|
|
dialogsTextFont: font(fsize);
|
2016-12-23 13:21:01 +00:00
|
|
|
dialogsTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: dialogsTextFont;
|
|
|
|
linkFont: dialogsTextFont;
|
|
|
|
linkFontOver: dialogsTextFont;
|
|
|
|
}
|
2016-06-07 19:59:39 +00:00
|
|
|
dialogsDateFont: font(13px);
|
|
|
|
dialogsDateSkip: 5px;
|
|
|
|
dialogsNameTop: 2px;
|
|
|
|
|
|
|
|
dialogsRowHeight: 62px;
|
2016-11-16 10:44:06 +00:00
|
|
|
dialogsFilterPadding: point(7px, 7px);
|
|
|
|
dialogsFilterSkip: 4px;
|
2016-06-07 19:59:39 +00:00
|
|
|
dialogsPhotoSize: 46px;
|
|
|
|
dialogsPhotoPadding: 12px;
|
|
|
|
dialogsPadding: point(10px, 8px);
|
|
|
|
|
|
|
|
dialogsImportantBarHeight: 37px;
|
|
|
|
|
|
|
|
dialogsSkip: 8px;
|
|
|
|
|
2017-01-14 18:50:16 +00:00
|
|
|
dialogsWidthDuration: 120;
|
2016-06-07 19:59:39 +00:00
|
|
|
dialogsTextWidthMin: 150px;
|
2016-12-13 17:07:56 +00:00
|
|
|
dialogsScroll: ScrollArea(defaultScrollArea) {
|
2016-06-07 19:59:39 +00:00
|
|
|
topsh: 0px;
|
|
|
|
bottomsh: 0px;
|
|
|
|
}
|
|
|
|
|
2016-12-23 13:21:01 +00:00
|
|
|
dialogsTextPalette: TextPalette(defaultTextPalette) {
|
2016-06-07 19:59:39 +00:00
|
|
|
linkFg: dialogsTextFgService;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
dialogsTextPaletteOver: TextPalette(defaultTextPalette) {
|
2016-11-05 08:36:24 +00:00
|
|
|
linkFg: dialogsTextFgServiceOver;
|
2016-06-07 19:59:39 +00:00
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
dialogsTextPaletteActive: TextPalette(defaultTextPalette) {
|
2016-11-05 08:36:24 +00:00
|
|
|
linkFg: dialogsTextFgServiceActive;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
dialogsTextPaletteDraft: TextPalette(defaultTextPalette) {
|
2016-11-05 08:36:24 +00:00
|
|
|
linkFg: dialogsDraftFg;
|
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
dialogsTextPaletteDraftOver: TextPalette(defaultTextPalette) {
|
2016-11-05 08:36:24 +00:00
|
|
|
linkFg: dialogsDraftFgOver;
|
2016-06-07 19:59:39 +00:00
|
|
|
}
|
2016-12-23 13:21:01 +00:00
|
|
|
dialogsTextPaletteDraftActive: TextPalette(defaultTextPalette) {
|
2016-11-05 08:36:24 +00:00
|
|
|
linkFg: dialogsDraftFgActive;
|
2016-07-07 16:15:34 +00:00
|
|
|
}
|
2016-06-20 15:40:36 +00:00
|
|
|
|
2016-11-04 11:14:47 +00:00
|
|
|
dialogsMenuToggle: IconButton {
|
2016-11-16 10:44:06 +00:00
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
2016-07-07 16:15:34 +00:00
|
|
|
|
2016-11-04 19:50:35 +00:00
|
|
|
icon: icon {{ "dialogs_menu", dialogsMenuIconFg }};
|
2016-11-07 15:24:28 +00:00
|
|
|
iconOver: icon {{ "dialogs_menu", dialogsMenuIconFgOver }};
|
2016-11-16 10:44:06 +00:00
|
|
|
iconPosition: point(10px, 10px);
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point(0px, 0px);
|
2016-11-16 10:44:06 +00:00
|
|
|
rippleAreaSize: 40px;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
2016-10-27 21:19:38 +00:00
|
|
|
}
|
2016-11-04 19:50:35 +00:00
|
|
|
dialogsLock: IconButton(dialogsMenuToggle) {
|
|
|
|
icon: icon {{ "dialogs_lock", dialogsMenuIconFg }};
|
2016-11-07 15:24:28 +00:00
|
|
|
iconOver: icon {{ "dialogs_lock", dialogsMenuIconFgOver }};
|
2016-11-04 19:50:35 +00:00
|
|
|
}
|
|
|
|
dialogsUnlockIcon: icon {{ "dialogs_unlock", dialogsMenuIconFg }};
|
2016-11-07 15:24:28 +00:00
|
|
|
dialogsUnlockIconOver: icon {{ "dialogs_unlock", dialogsMenuIconFgOver }};
|
2017-03-07 09:47:15 +00:00
|
|
|
dialogsCalendar: IconButton {
|
2017-08-01 11:43:50 +00:00
|
|
|
width: 29px;
|
2017-03-07 09:47:15 +00:00
|
|
|
height: 32px;
|
|
|
|
|
|
|
|
icon: icon {{ "dialogs_calendar", dialogsMenuIconFg }};
|
|
|
|
iconOver: icon {{ "dialogs_calendar", dialogsMenuIconFgOver }};
|
2017-08-01 11:43:50 +00:00
|
|
|
iconPosition: point(0px, 5px);
|
|
|
|
}
|
|
|
|
dialogsSearchFrom: IconButton(dialogsCalendar) {
|
|
|
|
width: 26px;
|
|
|
|
icon: icon {{ "dialogs_search_from", dialogsMenuIconFg }};
|
|
|
|
iconOver: icon {{ "dialogs_search_from", dialogsMenuIconFgOver }};
|
2017-03-07 09:47:15 +00:00
|
|
|
}
|
2017-08-01 15:55:51 +00:00
|
|
|
dialogsSearchFromPadding: margins(10px, 10px, 10px, 10px);
|
2016-11-04 19:50:35 +00:00
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
dialogsFilter: FlatInput(defaultFlatInput) {
|
2016-11-04 11:14:47 +00:00
|
|
|
font: font(fsize);
|
|
|
|
|
|
|
|
width: 240px;
|
|
|
|
height: 32px;
|
2016-11-11 19:51:59 +00:00
|
|
|
textMrg: margins(12px, 3px, 30px, 3px);
|
2016-10-27 21:19:38 +00:00
|
|
|
}
|
2016-11-15 11:56:49 +00:00
|
|
|
dialogsCancelSearchInPeer: IconButton(dialogsMenuToggle) {
|
|
|
|
icon: icon {{ "dialogs_cancel_search", dialogsMenuIconFg }};
|
|
|
|
iconOver: icon {{ "dialogs_cancel_search", dialogsMenuIconFgOver }};
|
2016-11-16 10:44:06 +00:00
|
|
|
iconPosition: point(11px, 11px);
|
2017-08-19 16:20:15 +00:00
|
|
|
rippleAreaPosition: point(3px, 3px);
|
|
|
|
rippleAreaSize: 34px;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
2016-11-21 17:46:29 +00:00
|
|
|
dialogsCancelSearch: CrossButton {
|
2016-11-16 10:44:06 +00:00
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
|
2016-11-21 17:46:29 +00:00
|
|
|
cross: CrossAnimation {
|
|
|
|
size: 32px;
|
|
|
|
skip: 10px;
|
|
|
|
stroke: 2px;
|
|
|
|
minScale: 0.3;
|
|
|
|
}
|
|
|
|
crossFg: dialogsMenuIconFg;
|
|
|
|
crossFgOver: dialogsMenuIconFgOver;
|
|
|
|
crossPosition: point(0px, 0px);
|
|
|
|
|
|
|
|
duration: 150;
|
2017-04-04 13:19:49 +00:00
|
|
|
loadingPeriod: 1000;
|
2016-11-16 16:04:25 +00:00
|
|
|
ripple: emptyRippleAnimation;
|
2016-11-04 11:14:47 +00:00
|
|
|
}
|
|
|
|
|
2016-09-30 12:52:03 +00:00
|
|
|
dialogsChatTypeSkip: 22px;
|
2016-11-05 08:36:24 +00:00
|
|
|
dialogsChatIcon: icon {{ "dialogs_chat", dialogsChatIconFg, point(1px, 4px) }};
|
|
|
|
dialogsChatIconOver: icon {{ "dialogs_chat", dialogsChatIconFgOver, point(1px, 4px) }};
|
|
|
|
dialogsChatIconActive: icon {{ "dialogs_chat", dialogsChatIconFgActive, point(1px, 4px) }};
|
|
|
|
dialogsChannelIcon: icon {{ "dialogs_channel", dialogsChatIconFg, point(3px, 4px) }};
|
|
|
|
dialogsChannelIconOver: icon {{ "dialogs_channel", dialogsChatIconFgOver, point(3px, 4px) }};
|
|
|
|
dialogsChannelIconActive: icon {{ "dialogs_channel", dialogsChatIconFgActive, point(3px, 4px) }};
|
2018-02-22 13:50:56 +00:00
|
|
|
dialogsFeedIcon: icon {{ "dialogs_feed", dialogsChatIconFg, point(4px, 4px) }};
|
|
|
|
dialogsFeedIconOver: icon {{ "dialogs_feed", dialogsChatIconFgOver, point(4px, 4px) }};
|
|
|
|
dialogsFeedIconActive: icon {{ "dialogs_feed", dialogsChatIconFgActive, point(4px, 4px) }};
|
2016-09-30 12:52:03 +00:00
|
|
|
|
|
|
|
dialogsSendStateSkip: 20px;
|
2016-11-05 08:36:24 +00:00
|
|
|
dialogsSendingIcon: icon {{ "dialogs_sending", dialogsSendingIconFg, point(8px, 4px) }};
|
|
|
|
dialogsSendingIconOver: icon {{ "dialogs_sending", dialogsSendingIconFgOver, point(8px, 4px) }};
|
|
|
|
dialogsSendingIconActive: icon {{ "dialogs_sending", dialogsSendingIconFgActive, point(8px, 4px) }};
|
|
|
|
dialogsSentIcon: icon {{ "dialogs_sent", dialogsSentIconFg, point(10px, 4px) }};
|
|
|
|
dialogsSentIconOver: icon {{ "dialogs_sent", dialogsSentIconFgOver, point(10px, 4px) }};
|
|
|
|
dialogsSentIconActive: icon {{ "dialogs_sent", dialogsSentIconFgActive, point(10px, 4px) }};
|
|
|
|
dialogsReceivedIcon: icon {{ "dialogs_received", dialogsSentIconFg, point(5px, 4px) }};
|
|
|
|
dialogsReceivedIconOver: icon {{ "dialogs_received", dialogsSentIconFgOver, point(5px, 4px) }};
|
|
|
|
dialogsReceivedIconActive: icon {{ "dialogs_received", dialogsSentIconFgActive, point(5px, 4px) }};
|
2016-12-13 07:59:57 +00:00
|
|
|
dialogsPinnedIcon: icon {{ "dialogs_pinned", dialogsUnreadBgMuted }};
|
|
|
|
dialogsPinnedIconOver: icon {{ "dialogs_pinned", dialogsUnreadBgMutedOver }};
|
|
|
|
dialogsPinnedIconActive: icon {{ "dialogs_pinned", dialogsUnreadBgMutedActive }};
|
2016-09-30 12:52:03 +00:00
|
|
|
|
|
|
|
dialogsVerifiedIcon: icon {
|
2016-11-05 08:36:24 +00:00
|
|
|
{ "dialogs_verified_star", dialogsVerifiedIconBg, point(4px, 2px) },
|
|
|
|
{ "dialogs_verified_check", dialogsVerifiedIconFg, point(7px, 7px) },
|
|
|
|
};
|
|
|
|
dialogsVerifiedIconOver: icon {
|
|
|
|
{ "dialogs_verified_star", dialogsVerifiedIconBgOver, point(4px, 2px) },
|
|
|
|
{ "dialogs_verified_check", dialogsVerifiedIconFgOver, point(7px, 7px) },
|
2016-08-27 04:49:18 +00:00
|
|
|
};
|
2016-11-05 08:36:24 +00:00
|
|
|
dialogsVerifiedIconActive: icon {
|
|
|
|
{ "dialogs_verified_star", dialogsVerifiedIconBgActive, point(4px, 2px) },
|
|
|
|
{ "dialogs_verified_check", dialogsVerifiedIconFgActive, point(7px, 7px) },
|
2016-09-30 12:52:03 +00:00
|
|
|
};
|
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
historySendingIcon: icon {{ "dialogs_sending", historySendingOutIconFg, point(5px, 5px) }};
|
|
|
|
historySendingInvertedIcon: icon {{ "dialogs_sending", historySendingInvertedIconFg, point(5px, 5px) }};
|
|
|
|
historyViewsSendingIcon: icon {{ "dialogs_sending", historySendingInIconFg, point(3px, 0px) }};
|
|
|
|
historyViewsSendingInvertedIcon: icon {{ "dialogs_sending", historySendingInvertedIconFg, point(3px, 0px) }};
|
2016-11-05 08:36:24 +00:00
|
|
|
|
2016-11-11 13:46:04 +00:00
|
|
|
dialogsUpdateButton: FlatButton {
|
2016-11-05 08:36:24 +00:00
|
|
|
color: activeButtonFg;
|
|
|
|
overColor: activeButtonFgOver;
|
|
|
|
|
|
|
|
bgColor: activeButtonBg;
|
|
|
|
overBgColor: activeButtonBgOver;
|
|
|
|
|
|
|
|
width: -34px;
|
|
|
|
height: 46px;
|
|
|
|
|
|
|
|
textTop: 14px;
|
|
|
|
|
|
|
|
font: semiboldFont;
|
|
|
|
overFont: semiboldFont;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: activeButtonBgRipple;
|
|
|
|
}
|
2016-11-05 08:36:24 +00:00
|
|
|
}
|
2016-11-06 17:23:13 +00:00
|
|
|
|
2017-01-14 18:50:16 +00:00
|
|
|
dialogsInstallUpdate: icon {{ "install_update", activeButtonFg }};
|
|
|
|
dialogsInstallUpdateOver: icon {{ "install_update", activeButtonFgOver }};
|
|
|
|
|
2016-11-06 17:23:13 +00:00
|
|
|
dialogsForwardHeight: 32px;
|
|
|
|
dialogsForwardTextLeft: 35px;
|
|
|
|
dialogsForwardTextTop: 6px;
|
|
|
|
dialogsForwardCancel: IconButton {
|
|
|
|
width: 34px;
|
|
|
|
height: dialogsForwardHeight;
|
|
|
|
|
|
|
|
icon: dialogsForwardCancelIcon;
|
|
|
|
iconOver: dialogsForwardCancelIcon;
|
|
|
|
iconPosition: point(12px, 11px);
|
|
|
|
}
|
|
|
|
dialogsForwardFont: semiboldFont;
|
2017-08-06 20:07:51 +00:00
|
|
|
|
|
|
|
dialogsSearchInHeight: 52px;
|
|
|
|
dialogsSearchInPhotoSize: 36px;
|
|
|
|
dialogsSearchInPhotoPadding: 10px;
|
2017-08-19 16:20:15 +00:00
|
|
|
dialogsSearchInSkip: 7px;
|
2017-08-06 20:07:51 +00:00
|
|
|
dialogsSearchFromStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: normalFont;
|
|
|
|
linkFont: semiboldFont;
|
|
|
|
linkFontOver: semiboldFont;
|
|
|
|
}
|
|
|
|
dialogsSearchFromPalette: TextPalette(defaultTextPalette) {
|
|
|
|
linkFg: dialogsNameFg;
|
|
|
|
}
|