2017-04-19 20:25:48 +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.
|
2017-04-19 20:25:48 +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
|
2017-04-19 20:25:48 +00:00
|
|
|
*/
|
|
|
|
using "basic.style";
|
|
|
|
|
|
|
|
using "ui/widgets/widgets.style";
|
2017-04-27 19:04:45 +00:00
|
|
|
using "window/window.style";
|
2017-04-19 20:25:48 +00:00
|
|
|
|
|
|
|
callWidth: 300px;
|
|
|
|
callHeight: 470px;
|
|
|
|
callShadow: Shadow {
|
|
|
|
left: icon {{ "call_shadow_left", windowShadowFg }};
|
|
|
|
topLeft: icon {{ "call_shadow_top_left", windowShadowFg }};
|
|
|
|
top: icon {{ "call_shadow_top", windowShadowFg }};
|
|
|
|
topRight: icon {{ "call_shadow_top_left-flip_horizontal", windowShadowFg }};
|
|
|
|
right: icon {{ "call_shadow_left-flip_horizontal", windowShadowFg }};
|
|
|
|
bottomRight: icon {{ "call_shadow_top_left-flip_vertical-flip_horizontal", windowShadowFg }};
|
|
|
|
bottom: icon {{ "call_shadow_top-flip_vertical", windowShadowFg }};
|
|
|
|
bottomLeft: icon {{ "call_shadow_top_left-flip_vertical", windowShadowFg }};
|
|
|
|
extend: margins(9px, 8px, 9px, 10px);
|
|
|
|
fallback: windowShadowFgFallback;
|
|
|
|
}
|
|
|
|
|
|
|
|
callButton: IconButton {
|
2017-05-07 19:09:20 +00:00
|
|
|
width: 72px;
|
|
|
|
height: 72px;
|
2017-04-19 20:25:48 +00:00
|
|
|
|
2017-04-29 18:00:27 +00:00
|
|
|
iconPosition: point(-1px, -1px);
|
2017-04-19 20:25:48 +00:00
|
|
|
|
2017-05-07 19:09:20 +00:00
|
|
|
rippleAreaPosition: point(12px, 12px);
|
2017-04-19 20:25:48 +00:00
|
|
|
rippleAreaSize: 48px;
|
|
|
|
ripple: defaultRippleAnimation;
|
|
|
|
}
|
|
|
|
|
|
|
|
callAnswer: CallButton {
|
|
|
|
button: IconButton(callButton) {
|
|
|
|
icon: icon {{ "call_answer", callIconFg }};
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: callAnswerRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bg: callAnswerBg;
|
2017-05-05 10:14:40 +00:00
|
|
|
angle: 135.;
|
2017-05-07 19:09:20 +00:00
|
|
|
outerRadius: 12px;
|
|
|
|
outerBg: callAnswerBgOuter;
|
2017-04-19 20:25:48 +00:00
|
|
|
}
|
|
|
|
callHangup: CallButton {
|
|
|
|
button: IconButton(callButton) {
|
|
|
|
icon: icon {{ "call_discard", callIconFg }};
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: callHangupRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bg: callHangupBg;
|
2017-05-07 19:09:20 +00:00
|
|
|
outerBg: callHangupBg;
|
2017-04-19 20:25:48 +00:00
|
|
|
}
|
2017-04-29 18:00:27 +00:00
|
|
|
callCancel: CallButton {
|
|
|
|
button: IconButton(callButton) {
|
|
|
|
icon: icon {{ "box_button_close", callCancelFg }};
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: callCancelRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bg: callCancelBg;
|
2017-05-07 19:09:20 +00:00
|
|
|
outerBg: callCancelBg;
|
2017-04-29 18:00:27 +00:00
|
|
|
}
|
2017-04-19 20:25:48 +00:00
|
|
|
callMuteToggle: IconButton(callButton) {
|
|
|
|
icon: icon {{ "call_record_active", callIconFg }};
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: callMuteRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
callUnmuteIcon: icon {{ "call_record_muted", callIconFg }};
|
|
|
|
|
2017-05-07 19:09:20 +00:00
|
|
|
callControlsTop: 80px;
|
|
|
|
callControlsSkip: 0px;
|
|
|
|
callMuteRight: 8px;
|
2017-04-25 16:45:41 +00:00
|
|
|
|
|
|
|
callNameTop: 15px;
|
|
|
|
callName: FlatLabel(defaultFlatLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 260px;
|
2017-05-04 12:29:32 +00:00
|
|
|
maxHeight: 30px;
|
2017-04-25 16:45:41 +00:00
|
|
|
textFg: callNameFg;
|
|
|
|
align: align(top);
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(21px semibold);
|
|
|
|
linkFont: font(21px semibold);
|
|
|
|
linkFontOver: font(21px semibold underline);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
callStatusTop: 46px;
|
|
|
|
callStatus: FlatLabel(defaultFlatLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 260px;
|
2017-04-25 16:45:41 +00:00
|
|
|
maxHeight: 20px;
|
|
|
|
textFg: callStatusFg;
|
|
|
|
align: align(top);
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px);
|
|
|
|
linkFont: font(14px);
|
|
|
|
linkFontOver: font(14px underline);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
callFingerprintPadding: margins(9px, 4px, 9px, 5px);
|
|
|
|
callFingerprintSkip: 3px;
|
|
|
|
callFingerprintBottom: 8px;
|
2017-04-25 20:36:04 +00:00
|
|
|
|
|
|
|
callBarHeight: 38px;
|
|
|
|
callBarMuteToggle: IconButton {
|
|
|
|
width: 41px;
|
|
|
|
height: 38px;
|
|
|
|
|
|
|
|
icon: icon {{ "call_record_active", callBarFg }};
|
|
|
|
iconPosition: point(9px, 8px);
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: callBarMuteRipple;
|
|
|
|
}
|
|
|
|
rippleAreaPosition: point(5px, 3px);
|
|
|
|
rippleAreaSize: 32px;
|
|
|
|
}
|
|
|
|
callBarUnmuteIcon: icon {{ "call_record_muted", callBarFg }};
|
|
|
|
callBarRightSkip: 12px;
|
|
|
|
callBarSkip: 10px;
|
|
|
|
callBarHangup: IconButton(callBarMuteToggle) {
|
|
|
|
icon: icon {{ "call_discard", callBarFg }};
|
|
|
|
iconPosition: point(9px, 11px);
|
|
|
|
}
|
|
|
|
callBarLabel: LabelSimple(defaultLabelSimple) {
|
|
|
|
font: semiboldFont;
|
|
|
|
textFg: callBarFg;
|
|
|
|
}
|
2017-05-14 19:44:50 +00:00
|
|
|
callBarInfoLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
maxHeight: 28px;
|
|
|
|
align: align(top);
|
|
|
|
textFg: callBarFg;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: semiboldFont;
|
|
|
|
}
|
|
|
|
}
|
2017-04-25 20:36:04 +00:00
|
|
|
callBarLabelTop: 10px;
|
2017-04-27 19:04:45 +00:00
|
|
|
|
|
|
|
callArrowPosition: point(-2px, 1px);
|
|
|
|
callArrowIn: icon {{ "call_arrow_in", callArrowFg }};
|
|
|
|
callArrowOut: icon {{ "call_arrow_out", callArrowFg }};
|
|
|
|
callArrowMissed: icon {{ "call_arrow_in", callArrowMissedFg }};
|
|
|
|
callArrowSkip: 4px;
|
|
|
|
callReDial: IconButton {
|
|
|
|
width: 40px;
|
|
|
|
height: 56px;
|
|
|
|
|
|
|
|
icon: mainMenuCalls;
|
|
|
|
iconOver: mainMenuCallsOver;
|
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
|
|
|
|
ripple: defaultRippleAnimation;
|
2017-04-28 12:54:40 +00:00
|
|
|
rippleAreaPosition: point(0px, 8px);
|
|
|
|
rippleAreaSize: 40px;
|
2017-04-27 19:04:45 +00:00
|
|
|
}
|
2017-05-02 11:56:39 +00:00
|
|
|
|
2017-05-10 08:01:34 +00:00
|
|
|
callRatingPadding: margins(24px, 12px, 24px, 0px);
|
2017-05-02 11:56:39 +00:00
|
|
|
callRatingStar: IconButton {
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
|
|
|
|
icon: icon {{ "call_rating", windowSubTextFg }};
|
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: windowBgOver;
|
|
|
|
}
|
|
|
|
rippleAreaPosition: point(0px, 0px);
|
|
|
|
rippleAreaSize: 36px;
|
|
|
|
}
|
|
|
|
callRatingStarFilled: icon {{ "call_rating_filled", lightButtonFg }};
|
2017-05-09 19:33:50 +00:00
|
|
|
callRatingStarTop: 4px;
|
2017-05-02 11:56:39 +00:00
|
|
|
callRatingComment: InputField(defaultInputField) {
|
|
|
|
textMargins: margins(1px, 26px, 1px, 4px);
|
|
|
|
heightMax: 135px;
|
|
|
|
}
|
2017-05-09 19:33:50 +00:00
|
|
|
callRatingCommentTop: 8px;
|
2017-05-04 12:28:37 +00:00
|
|
|
|
2017-09-20 19:44:22 +00:00
|
|
|
callDebugPadding: margins(24px, 0px, 24px, 0px);
|
2017-05-04 12:28:37 +00:00
|
|
|
callDebugLabel: FlatLabel(defaultFlatLabel) {
|
2017-09-20 19:44:22 +00:00
|
|
|
margin: callDebugPadding;
|
2017-05-04 12:28:37 +00:00
|
|
|
}
|
2017-05-05 10:14:40 +00:00
|
|
|
callPanelDuration: 150;
|