2016-10-04 21:18:08 +03: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
|
|
|
|
Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
|
|
|
*/
|
|
|
|
|
|
|
|
using "basic.style";
|
2016-10-27 17:10:28 +03:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-10-04 21:18:08 +03:00
|
|
|
|
2016-11-04 11:23:50 +03:00
|
|
|
windowMinWidth: 380px;
|
|
|
|
windowMinHeight: 480px;
|
2016-11-04 14:14:47 +03:00
|
|
|
windowDefaultWidth: 800px;
|
|
|
|
windowDefaultHeight: 600px;
|
2016-11-04 11:23:50 +03:00
|
|
|
windowShadow: icon {{ "window_shadow", windowShadowFg }};
|
|
|
|
windowShadowShift: 1px;
|
|
|
|
|
|
|
|
adaptiveNormalWidth: 640px;
|
|
|
|
adaptiveWideWidth: 1366px;
|
2016-10-22 21:58:25 +03:00
|
|
|
|
2016-10-04 21:18:08 +03:00
|
|
|
notifyBorder: #f1f1f1;
|
|
|
|
notifyBorderWidth: 1px;
|
|
|
|
notifySlowHide: 4000;
|
|
|
|
notifyPhotoSize: 62px;
|
|
|
|
notifyMacPhotoSize: 64px;
|
|
|
|
notifyPhotoPos: point(9px, 9px);
|
|
|
|
notifyClosePos: point(1px, 2px);
|
2016-11-01 15:46:34 +03:00
|
|
|
notifyClose: IconButton {
|
2016-10-28 00:19:38 +03:00
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
|
|
|
|
icon: simpleCloseIcon;
|
2016-11-01 15:46:34 +03:00
|
|
|
iconOver: simpleCloseIconOver;
|
|
|
|
|
2016-10-28 00:19:38 +03:00
|
|
|
iconPosition: point(10px, 10px);
|
2016-11-01 15:46:34 +03:00
|
|
|
iconPositionDown: point(10px, 11px);
|
2016-10-04 21:18:08 +03:00
|
|
|
}
|
|
|
|
notifyItemTop: 12px;
|
|
|
|
notifyTextLeft: 12px;
|
|
|
|
notifyTextTop: 7px;
|
2016-10-05 19:56:27 +03:00
|
|
|
notifyWaitLongHide: 3000;
|
2016-10-04 21:18:08 +03:00
|
|
|
notifyFastAnim: 150;
|
2016-10-06 19:41:09 +03:00
|
|
|
notifyWidth: 320px;
|
2016-10-04 21:18:08 +03:00
|
|
|
notifyMinHeight: 80px;
|
|
|
|
notifyDeltaX: 6px;
|
|
|
|
notifyDeltaY: 7px;
|
|
|
|
notifyActionsDuration: 200;
|
|
|
|
|
2016-10-05 19:56:27 +03:00
|
|
|
notifyHideAll: RoundButton(defaultBoxButton) {
|
|
|
|
}
|
|
|
|
|
2016-10-04 21:18:08 +03:00
|
|
|
notifyReplyArea: InputArea(defaultInputArea) {
|
|
|
|
font: normalFont;
|
|
|
|
textMargins: margins(8px, 8px, 8px, 6px);
|
|
|
|
heightMin: 36px;
|
|
|
|
heightMax: 72px;
|
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
borderError: 0px;
|
|
|
|
}
|
2016-11-01 15:46:34 +03:00
|
|
|
notifySendReply: IconButton {
|
2016-10-04 21:18:08 +03:00
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
|
2016-11-07 18:24:28 +03:00
|
|
|
icon: icon {{ "notification_send", lightButtonFg, point(3px, 9px) }};
|
2016-10-04 21:18:08 +03:00
|
|
|
iconPosition: point(0px, 0px);
|
2016-11-01 15:46:34 +03:00
|
|
|
iconPositionDown: point(0px, 1px);
|
2016-10-04 21:18:08 +03:00
|
|
|
}
|
2016-11-04 11:23:50 +03:00
|
|
|
|
2016-11-06 20:23:13 +03:00
|
|
|
titleUnreadCounterTop: 5px;
|
|
|
|
titleUnreadCounterRight: 35px;
|
|
|
|
|
2016-11-11 22:51:59 +03:00
|
|
|
mainMenuBg: #ffffff;
|
|
|
|
mainMenuWidth: 274px;
|
|
|
|
mainMenuCoverBg: #419fd9;
|
|
|
|
mainMenuCoverFg: windowActiveFg;
|
|
|
|
mainMenuCoverHeight: 140px;
|
|
|
|
mainMenuUserpicLeft: 24px;
|
|
|
|
mainMenuUserpicTop: 22px;
|
|
|
|
mainMenuUserpicSize: 48px;
|
|
|
|
mainMenuCoverTextLeft: 30px;
|
|
|
|
mainMenuCoverNameTop: 88px;
|
|
|
|
mainMenuCoverStatusTop: 106px;
|
|
|
|
mainMenuSkip: 13px;
|
|
|
|
mainMenuFooterLeft: 30px;
|
|
|
|
mainMenuTelegramLabel: flatLabel(labelDefFlat) {
|
|
|
|
font: semiboldFont;
|
|
|
|
align: align(left);
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
mainMenuTelegramStyle: textStyle(defaultTextStyle) {
|
|
|
|
linkFlags: semiboldFont;
|
|
|
|
linkFlagsOver: font(fsize semibold underline);
|
|
|
|
linkFg: windowSubTextFg;
|
|
|
|
linkFgDown: windowSubTextFg;
|
|
|
|
}
|
|
|
|
mainMenuTelegramBottom: 43px;
|
|
|
|
mainMenuVersionLabel: flatLabel(mainMenuTelegramLabel) {
|
|
|
|
font: normalFont;
|
|
|
|
}
|
|
|
|
mainMenuVersionStyle: textStyle(mainMenuTelegramStyle) {
|
|
|
|
linkFlags: normalFont;
|
|
|
|
linkFlagsOver: font(fsize underline);
|
|
|
|
}
|
|
|
|
mainMenuVersionBottom: 21px;
|
|
|
|
|
2016-11-06 20:23:13 +03:00
|
|
|
// Windows specific title
|
|
|
|
|
2016-11-04 11:23:50 +03:00
|
|
|
titleHeight: 21px;
|
|
|
|
titleButtonMinimize: IconButton {
|
|
|
|
width: 24px;
|
|
|
|
height: 21px;
|
|
|
|
|
|
|
|
icon: icon {{ "title_button_minimize", titleButtonFg, point(4px, 4px) }};
|
|
|
|
iconOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgOver },
|
|
|
|
{ "title_button_minimize", titleButtonFgOver, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
|
|
|
|
iconPosition: point(0px, 0px);
|
|
|
|
iconPositionDown: point(0px, 0px);
|
|
|
|
}
|
|
|
|
titleButtonMaximize: IconButton(titleButtonMinimize) {
|
|
|
|
icon: icon {{ "title_button_maximize", titleButtonFg, point(4px, 4px) }};
|
|
|
|
iconOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgOver },
|
|
|
|
{ "title_button_maximize", titleButtonFgOver, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
}
|
|
|
|
titleButtonRestoreIcon: icon {{ "title_button_restore", titleButtonFg, point(4px, 4px) }};
|
|
|
|
titleButtonRestoreIconOver: icon {
|
|
|
|
{ size(24px, 21px), titleButtonBgOver },
|
|
|
|
{ "title_button_restore", titleButtonFgOver, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
titleButtonClose: IconButton(titleButtonMinimize) {
|
|
|
|
width: 25px;
|
|
|
|
|
|
|
|
icon: icon {{ "title_button_close", titleButtonFg, point(5px, 4px) }};
|
|
|
|
iconOver: icon {
|
|
|
|
{ size(25px, 21px), titleButtonCloseBgOver },
|
|
|
|
{ "title_button_close", titleButtonCloseFgOver, point(5px, 4px) },
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mac specific
|
|
|
|
|
|
|
|
macAccessoryWidth: 450.;
|
|
|
|
macAccessoryHeight: 90.;
|
|
|
|
macEnableFilterAdd: 2;
|
|
|
|
macEnableFilterTop: 5;
|
|
|
|
macSelectorTop: 6;
|
|
|
|
macAlwaysThisAppTop: 4;
|
|
|
|
macAppHintTop: 8;
|
|
|
|
macCautionIconSize: 16;
|