2016-10-04 18:18:08 +00: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 14:10:28 +00:00
|
|
|
using "ui/widgets/widgets.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;
|
|
|
|
|
|
|
|
adaptiveNormalWidth: 640px;
|
|
|
|
adaptiveWideWidth: 1366px;
|
2016-10-22 18:58:25 +00:00
|
|
|
|
2016-10-04 18:18:08 +00:00
|
|
|
notifyBorder: #f1f1f1;
|
|
|
|
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;
|
|
|
|
|
|
|
|
icon: simpleCloseIcon;
|
2016-11-01 12:46:34 +00:00
|
|
|
iconOver: simpleCloseIconOver;
|
|
|
|
|
2016-10-27 21:19:38 +00:00
|
|
|
iconPosition: point(10px, 10px);
|
2016-11-01 12:46:34 +00:00
|
|
|
iconPositionDown: point(10px, 11px);
|
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-10-05 16:56:27 +00:00
|
|
|
notifyHideAll: RoundButton(defaultBoxButton) {
|
|
|
|
}
|
|
|
|
|
2016-10-04 18:18:08 +00: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 12:46:34 +00:00
|
|
|
notifySendReply: IconButton {
|
2016-10-04 18:18:08 +00:00
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
|
2016-11-07 15:24:28 +00:00
|
|
|
icon: icon {{ "notification_send", lightButtonFg, point(3px, 9px) }};
|
2016-10-04 18:18:08 +00:00
|
|
|
iconPosition: point(0px, 0px);
|
2016-11-01 12:46:34 +00:00
|
|
|
iconPositionDown: point(0px, 1px);
|
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;
|
|
|
|
|
|
|
|
// Windows specific title
|
|
|
|
|
2016-11-04 08:23:50 +00: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;
|