2016-10-04 18:18:08 +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-10-04 18:18:08 +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-10-04 18:18:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
using "basic.style";
|
2016-10-27 14:10:28 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-12-07 13:32:25 +00:00
|
|
|
using "history/history.style";
|
2016-10-04 18:18:08 +00:00
|
|
|
|
2016-11-04 08:23:50 +00:00
|
|
|
windowMinWidth: 380px;
|
|
|
|
windowMinHeight: 480px;
|
2016-11-04 11:14:47 +00:00
|
|
|
windowDefaultWidth: 800px;
|
|
|
|
windowDefaultHeight: 600px;
|
2016-11-04 08:23:50 +00:00
|
|
|
windowShadow: icon {{ "window_shadow", windowShadowFg }};
|
|
|
|
windowShadowShift: 1px;
|
|
|
|
|
2017-09-16 16:53:41 +00:00
|
|
|
columnMinimalWidthLeft: 260px;
|
2017-11-12 16:50:58 +00:00
|
|
|
columnMaximalWidthLeft: 540px;
|
2017-09-16 16:53:41 +00:00
|
|
|
columnMinimalWidthMain: 380px;
|
2017-11-12 17:46:20 +00:00
|
|
|
columnDesiredWidthMain: 512px;
|
2017-11-16 07:45:55 +00:00
|
|
|
columnMinimalWidthThird: 292px;
|
|
|
|
columnMaximalWidthThird: 392px;
|
2017-09-16 16:53:41 +00:00
|
|
|
|
2017-01-24 21:24:39 +00:00
|
|
|
adaptiveChatWideWidth: 880px;
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
notifyBorder: windowShadowFgFallback;
|
2016-10-04 18:18:08 +00:00
|
|
|
notifyBorderWidth: 1px;
|
|
|
|
notifySlowHide: 4000;
|
|
|
|
notifyPhotoSize: 62px;
|
|
|
|
notifyMacPhotoSize: 64px;
|
|
|
|
notifyPhotoPos: point(9px, 9px);
|
|
|
|
notifyClosePos: point(1px, 2px);
|
2016-11-01 12:46:34 +00:00
|
|
|
notifyClose: 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-11-01 12:46:34 +00:00
|
|
|
|
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-04 18:18:08 +00:00
|
|
|
}
|
|
|
|
notifyItemTop: 12px;
|
|
|
|
notifyTextLeft: 12px;
|
|
|
|
notifyTextTop: 7px;
|
2016-10-05 16:56:27 +00:00
|
|
|
notifyWaitLongHide: 3000;
|
2016-10-04 18:18:08 +00:00
|
|
|
notifyFastAnim: 150;
|
2016-10-06 16:41:09 +00:00
|
|
|
notifyWidth: 320px;
|
2016-10-04 18:18:08 +00:00
|
|
|
notifyMinHeight: 80px;
|
|
|
|
notifyDeltaX: 6px;
|
|
|
|
notifyDeltaY: 7px;
|
|
|
|
notifyActionsDuration: 200;
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
notifyHideAllHeight: 36px;
|
2016-10-05 16:56:27 +00:00
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
notifyReplyArea: InputField(defaultInputField) {
|
2016-10-04 18:18:08 +00:00
|
|
|
font: normalFont;
|
|
|
|
textMargins: margins(8px, 8px, 8px, 6px);
|
|
|
|
heightMin: 36px;
|
|
|
|
heightMax: 72px;
|
2016-12-21 15:05:58 +00:00
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
2016-12-13 17:07:56 +00:00
|
|
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
2016-12-09 18:56:01 +00:00
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: normalFont;
|
2016-10-04 18:18:08 +00:00
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
}
|
2016-12-26 22:46:36 +00:00
|
|
|
notifySendReply: IconButton {
|
2016-10-04 18:18:08 +00:00
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
2016-12-26 22:46:36 +00:00
|
|
|
|
|
|
|
icon: historySendIcon;
|
|
|
|
iconOver: historySendIconOver;
|
2016-12-07 13:32:25 +00:00
|
|
|
iconPosition: point(6px, 6px);
|
2016-10-04 18:18:08 +00:00
|
|
|
}
|
2016-11-04 08:23:50 +00:00
|
|
|
|
2016-11-06 17:23:13 +00:00
|
|
|
titleUnreadCounterTop: 5px;
|
|
|
|
titleUnreadCounterRight: 35px;
|
|
|
|
|
2016-11-11 19:51:59 +00:00
|
|
|
mainMenuWidth: 274px;
|
2017-04-27 19:04:45 +00:00
|
|
|
mainMenuCoverHeight: 134px;
|
2016-11-11 19:51:59 +00:00
|
|
|
mainMenuUserpicLeft: 24px;
|
2017-04-27 19:04:45 +00:00
|
|
|
mainMenuUserpicTop: 20px;
|
2017-11-13 15:50:10 +00:00
|
|
|
mainMenuUserpic: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(48px, 48px);
|
|
|
|
photoSize: 48px;
|
|
|
|
}
|
2017-04-05 09:21:38 +00:00
|
|
|
mainMenuCloudButton: IconButton {
|
2017-04-27 19:04:45 +00:00
|
|
|
width: 64px;
|
|
|
|
height: 64px;
|
2017-04-05 09:21:38 +00:00
|
|
|
|
|
|
|
icon: icon {
|
2017-12-05 16:48:03 +00:00
|
|
|
// { "menu_cloud", mainMenuCloudFg },
|
2017-04-05 09:21:38 +00:00
|
|
|
};
|
2017-04-27 19:04:45 +00:00
|
|
|
iconPosition: point(22px, 22px);
|
2017-04-05 09:21:38 +00:00
|
|
|
}
|
|
|
|
mainMenuCloudSize: 32px;
|
2016-11-11 19:51:59 +00:00
|
|
|
mainMenuCoverTextLeft: 30px;
|
2017-04-27 19:04:45 +00:00
|
|
|
mainMenuCoverNameTop: 84px;
|
|
|
|
mainMenuCoverStatusTop: 102px;
|
2016-11-11 19:51:59 +00:00
|
|
|
mainMenuSkip: 13px;
|
2016-11-16 10:44:06 +00:00
|
|
|
mainMenu: Menu(defaultMenu) {
|
2016-11-16 16:04:25 +00:00
|
|
|
itemFg: windowBoldFg;
|
|
|
|
itemFgOver: windowBoldFgOver;
|
2016-11-16 10:44:06 +00:00
|
|
|
itemFont: semiboldFont;
|
2017-04-27 19:04:45 +00:00
|
|
|
itemIconPosition: point(28px, 10px);
|
|
|
|
itemPadding: margins(76px, 13px, 28px, 13px);
|
2017-06-29 19:09:10 +00:00
|
|
|
itemToggle: Toggle(defaultMenuToggle) {
|
|
|
|
toggledFg: mainMenuCoverBg;
|
|
|
|
}
|
|
|
|
itemToggleOver: Toggle(defaultMenuToggleOver) {
|
|
|
|
toggledFg: mainMenuCoverBg;
|
|
|
|
}
|
|
|
|
itemToggleShift: 11px;
|
2016-11-16 10:44:06 +00:00
|
|
|
}
|
|
|
|
mainMenuNewGroup: icon {{ "menu_new_group", menuIconFg }};
|
|
|
|
mainMenuNewGroupOver: icon {{ "menu_new_group", menuIconFgOver }};
|
|
|
|
mainMenuNewChannel: icon {{ "menu_new_channel", menuIconFg }};
|
|
|
|
mainMenuNewChannelOver: icon {{ "menu_new_channel", menuIconFgOver }};
|
|
|
|
mainMenuContacts: icon {{ "menu_contacts", menuIconFg }};
|
|
|
|
mainMenuContactsOver: icon {{ "menu_contacts", menuIconFgOver }};
|
2017-04-27 19:04:45 +00:00
|
|
|
mainMenuCalls: icon {{ "menu_calls", menuIconFg }};
|
|
|
|
mainMenuCallsOver: icon {{ "menu_calls", menuIconFgOver }};
|
2016-11-16 10:44:06 +00:00
|
|
|
mainMenuSettings: icon {{ "menu_settings", menuIconFg }};
|
|
|
|
mainMenuSettingsOver: icon {{ "menu_settings", menuIconFgOver }};
|
2017-06-29 19:09:10 +00:00
|
|
|
mainMenuNightMode: icon {{ "menu_night_mode", menuIconFg }};
|
|
|
|
mainMenuNightModeOver: icon {{ "menu_night_mode", menuIconFgOver }};
|
2016-11-11 19:51:59 +00:00
|
|
|
mainMenuFooterLeft: 30px;
|
2016-11-16 10:44:06 +00:00
|
|
|
mainMenuTelegramLabel: FlatLabel(defaultFlatLabel) {
|
2016-11-11 19:51:59 +00:00
|
|
|
align: align(left);
|
|
|
|
textFg: windowSubTextFg;
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: semiboldFont;
|
|
|
|
linkFont: semiboldFont;
|
|
|
|
linkFontOver: font(fsize semibold underline);
|
|
|
|
}
|
2016-12-26 22:46:36 +00:00
|
|
|
palette: TextPalette(defaultTextPalette) {
|
|
|
|
linkFg: windowSubTextFg;
|
|
|
|
}
|
2016-11-11 19:51:59 +00:00
|
|
|
}
|
|
|
|
mainMenuTelegramBottom: 43px;
|
2016-11-16 10:44:06 +00:00
|
|
|
mainMenuVersionLabel: FlatLabel(mainMenuTelegramLabel) {
|
2016-12-23 13:21:01 +00:00
|
|
|
style: defaultTextStyle;
|
2016-11-11 19:51:59 +00:00
|
|
|
}
|
|
|
|
mainMenuVersionBottom: 21px;
|
|
|
|
|
2016-11-06 17:23:13 +00:00
|
|
|
// Windows specific title
|
|
|
|
|
2016-11-04 08:23:50 +00:00
|
|
|
titleHeight: 21px;
|
|
|
|
titleButtonMinimize: IconButton {
|
|
|
|
width: 24px;
|
|
|
|
height: 21px;
|
|
|
|
|
2017-01-16 13:27:11 +00:00
|
|
|
icon: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBg },
|
|
|
|
{ "title_button_minimize", titleButtonFg, point(4px, 4px) },
|
|
|
|
};
|
2016-11-04 08:23:50 +00:00
|
|
|
iconOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgOver },
|
|
|
|
{ "title_button_minimize", titleButtonFgOver, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
iconPosition: point(0px, 0px);
|
|
|
|
}
|
2017-01-16 13:27:11 +00:00
|
|
|
titleButtonMinimizeIconActive: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgActive },
|
|
|
|
{ "title_button_minimize", titleButtonFgActive, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
titleButtonMinimizeIconActiveOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgActiveOver },
|
|
|
|
{ "title_button_minimize", titleButtonFgActiveOver, point(4px, 4px) },
|
|
|
|
};
|
2016-11-04 08:23:50 +00:00
|
|
|
titleButtonMaximize: IconButton(titleButtonMinimize) {
|
2017-01-16 13:27:11 +00:00
|
|
|
icon: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBg },
|
|
|
|
{ "title_button_maximize", titleButtonFg, point(4px, 4px) },
|
|
|
|
};
|
2016-11-04 08:23:50 +00:00
|
|
|
iconOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgOver },
|
|
|
|
{ "title_button_maximize", titleButtonFgOver, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
}
|
2017-01-16 13:27:11 +00:00
|
|
|
titleButtonMaximizeIconActive: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgActive },
|
|
|
|
{ "title_button_maximize", titleButtonFgActive, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
titleButtonMaximizeIconActiveOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgActiveOver },
|
|
|
|
{ "title_button_maximize", titleButtonFgActiveOver, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
titleButtonRestoreIcon: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBg },
|
|
|
|
{ "title_button_restore", titleButtonFg, point(4px, 4px) },
|
|
|
|
};
|
2016-11-04 08:23:50 +00:00
|
|
|
titleButtonRestoreIconOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgOver },
|
|
|
|
{ "title_button_restore", titleButtonFgOver, point(4px, 4px) },
|
|
|
|
};
|
2017-01-16 13:27:11 +00:00
|
|
|
titleButtonRestoreIconActive: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgActive },
|
|
|
|
{ "title_button_restore", titleButtonFgActive, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
titleButtonRestoreIconActiveOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgActiveOver },
|
|
|
|
{ "title_button_restore", titleButtonFgActiveOver, point(4px, 4px) },
|
|
|
|
};
|
2016-11-04 08:23:50 +00:00
|
|
|
titleButtonClose: IconButton(titleButtonMinimize) {
|
|
|
|
width: 25px;
|
|
|
|
|
2017-01-16 13:27:11 +00:00
|
|
|
icon: icon {
|
|
|
|
{ size(25px, 21px), titleButtonCloseBg },
|
|
|
|
{ "title_button_close", titleButtonCloseFg, point(5px, 4px) },
|
|
|
|
};
|
2016-11-04 08:23:50 +00:00
|
|
|
iconOver: icon {
|
|
|
|
{ size(25px, 21px), titleButtonCloseBgOver },
|
|
|
|
{ "title_button_close", titleButtonCloseFgOver, point(5px, 4px) },
|
|
|
|
};
|
|
|
|
}
|
2017-01-16 13:27:11 +00:00
|
|
|
titleButtonCloseIconActive: icon {
|
|
|
|
{ size(25px, 21px), titleButtonCloseBgActive },
|
|
|
|
{ "title_button_close", titleButtonCloseFgActive, point(5px, 4px) },
|
|
|
|
};
|
|
|
|
titleButtonCloseIconActiveOver: icon {
|
|
|
|
{ size(25px, 21px), titleButtonCloseBgActiveOver },
|
|
|
|
{ "title_button_close", titleButtonCloseFgActiveOver, point(5px, 4px) },
|
|
|
|
};
|
2016-11-04 08:23:50 +00:00
|
|
|
|
2017-02-03 20:07:26 +00:00
|
|
|
themeEditorSampleSize: size(90px, 51px);
|
|
|
|
themeEditorMargin: margins(17px, 10px, 17px, 10px);
|
|
|
|
themeEditorDescriptionSkip: 10px;
|
|
|
|
themeEditorNameFont: font(15px semibold);
|
|
|
|
themeEditorCopyNameFont: font(fsize semibold);
|
|
|
|
|
2017-07-22 08:35:18 +00:00
|
|
|
windowEmojiSuggestionsPopup: PopupMenu(defaultPopupMenu) {
|
|
|
|
menu: Menu(defaultMenu) {
|
|
|
|
itemPadding: margins(48px, 8px, 17px, 7px);
|
|
|
|
widthMax: 512px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-07 17:44:33 +00:00
|
|
|
connectingLeftShadow: icon {{ "connecting_left_shadow", windowShadowFg }};
|
|
|
|
connectingLeft: icon {{ "connecting_left", windowBg }};
|
|
|
|
connectingRightShadow: icon {{ "connecting_right_shadow", windowShadowFg }};
|
|
|
|
connectingRight: icon {{ "connecting_right", windowBg }};
|
|
|
|
connectingBodyShadow: icon {{ "connecting_body_shadow", windowShadowFg }};
|
|
|
|
connectingBody: icon {{ "connecting_body", windowBg }};
|
|
|
|
connectingMargin: margins(2px, 2px, 2px, 2px);
|
|
|
|
connectingTextPadding: margins(18px, 11px, 18px, 0px);
|
|
|
|
connectingRadialSkip: 6px;
|
|
|
|
connectingRadial: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
|
|
|
|
color: menuIconFg;
|
|
|
|
thickness: 2px;
|
|
|
|
size: size(20px, 20px);
|
|
|
|
}
|
|
|
|
connectingRetryLink: LinkButton(defaultLinkButton) {
|
|
|
|
padding: margins(6px, 11px, 6px, 0px);
|
|
|
|
}
|
|
|
|
connectingProxyOff: icon {{ "proxy_off", menuIconFg }};
|
|
|
|
connectingProxyOn: icon {{ "proxy_on", windowBgActive }};
|
|
|
|
connectingDuration: 150;
|
|
|
|
|
2016-11-04 08:23:50 +00:00
|
|
|
// Mac specific
|
|
|
|
|
|
|
|
macAccessoryWidth: 450.;
|
|
|
|
macAccessoryHeight: 90.;
|
|
|
|
macEnableFilterAdd: 2;
|
|
|
|
macEnableFilterTop: 5;
|
|
|
|
macSelectorTop: 6;
|
|
|
|
macAlwaysThisAppTop: 4;
|
|
|
|
macAppHintTop: 8;
|
|
|
|
macCautionIconSize: 16;
|
2016-12-23 13:21:01 +00:00
|
|
|
|
|
|
|
macWindowRoundRadius: 5;
|
|
|
|
macWindowShadowTopLeft: icon {{ "mac_window_shadow_top_left", windowShadowFg }};
|
|
|
|
macTrayIcon: icon {{ "mac_tray_icon", windowFg }};
|