2016-07-11 18:05:46 +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";
|
|
|
|
|
|
|
|
LabelSimple {
|
|
|
|
font: font;
|
|
|
|
maxWidth: pixels;
|
|
|
|
textFg: color;
|
|
|
|
}
|
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
FlatLabel {
|
|
|
|
font: font;
|
|
|
|
margin: margins;
|
|
|
|
width: pixels;
|
|
|
|
align: align;
|
|
|
|
textFg: color;
|
|
|
|
maxHeight: pixels;
|
|
|
|
}
|
|
|
|
|
2016-11-11 13:46:04 +00:00
|
|
|
LinkButton {
|
|
|
|
color: color;
|
|
|
|
overColor: color;
|
|
|
|
font: font;
|
|
|
|
overFont: font;
|
|
|
|
}
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
RippleAnimation {
|
|
|
|
color: color;
|
|
|
|
showDuration: int;
|
|
|
|
hideDuration: int;
|
|
|
|
}
|
|
|
|
|
2016-11-11 13:46:04 +00:00
|
|
|
FlatButton {
|
|
|
|
color: color;
|
|
|
|
overColor: color;
|
|
|
|
|
|
|
|
bgColor: color;
|
|
|
|
overBgColor: color;
|
|
|
|
|
|
|
|
width: pixels;
|
|
|
|
height: pixels;
|
|
|
|
|
|
|
|
textTop: pixels;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
overFont: font;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
ripple: RippleAnimation;
|
|
|
|
}
|
|
|
|
|
|
|
|
RoundButton {
|
|
|
|
textFg: color;
|
|
|
|
textFgOver: color;
|
|
|
|
textBg: color; // rect of textBg with rounded rect of textBgOver upon it
|
|
|
|
textBgOver: color;
|
|
|
|
|
|
|
|
secondaryTextFg: color;
|
|
|
|
secondaryTextFgOver: color;
|
|
|
|
secondarySkip: pixels;
|
|
|
|
|
|
|
|
width: pixels;
|
|
|
|
height: pixels;
|
|
|
|
padding: margins;
|
|
|
|
|
|
|
|
textTop: pixels;
|
|
|
|
|
|
|
|
icon: icon;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
|
|
|
|
ripple: RippleAnimation;
|
|
|
|
}
|
|
|
|
|
|
|
|
Checkbox {
|
|
|
|
textFg: color;
|
|
|
|
|
|
|
|
checkBg: color;
|
|
|
|
checkFg: color;
|
|
|
|
checkFgActive: color;
|
|
|
|
|
|
|
|
width: pixels;
|
|
|
|
height: pixels;
|
2016-12-02 19:16:35 +00:00
|
|
|
margin: margins;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
textPosition: point;
|
|
|
|
diameter: pixels;
|
|
|
|
thickness: pixels;
|
2016-12-02 19:16:35 +00:00
|
|
|
radioSkip: pixels;
|
2016-11-15 11:56:49 +00:00
|
|
|
checkIcon: icon;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
duration: int;
|
|
|
|
|
2016-12-02 19:16:35 +00:00
|
|
|
rippleAreaPosition: point;
|
|
|
|
rippleAreaSize: pixels;
|
|
|
|
rippleBg: color;
|
|
|
|
rippleBgActive: color;
|
|
|
|
ripple: RippleAnimation;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
ScrollArea {
|
2016-12-21 15:05:58 +00:00
|
|
|
bg: color;
|
|
|
|
bgOver: color;
|
|
|
|
barBg: color;
|
|
|
|
barBgOver: color;
|
2016-11-16 10:44:06 +00:00
|
|
|
|
|
|
|
round: pixels;
|
|
|
|
|
|
|
|
width: pixels;
|
|
|
|
minHeight: pixels;
|
|
|
|
deltax: pixels;
|
|
|
|
deltat: pixels;
|
|
|
|
deltab: pixels;
|
|
|
|
|
|
|
|
topsh: pixels;
|
|
|
|
bottomsh: pixels;
|
|
|
|
shColor: color;
|
|
|
|
|
|
|
|
duration: int;
|
|
|
|
hiding: int;
|
|
|
|
}
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
FlatTextarea {
|
|
|
|
textColor: color;
|
|
|
|
bgColor: color;
|
|
|
|
width: pixels;
|
|
|
|
textMrg: margins;
|
|
|
|
align: align;
|
|
|
|
font: font;
|
|
|
|
|
|
|
|
phColor: color;
|
|
|
|
phFocusColor: color;
|
|
|
|
phPos: point;
|
|
|
|
phAlign: align;
|
|
|
|
phShift: pixels;
|
|
|
|
phDuration: int;
|
|
|
|
}
|
|
|
|
|
|
|
|
FlatInput {
|
|
|
|
textColor: color;
|
|
|
|
bgColor: color;
|
|
|
|
bgActive: color;
|
|
|
|
width: pixels;
|
|
|
|
height: pixels;
|
|
|
|
textMrg: margins;
|
|
|
|
align: align;
|
|
|
|
font: font;
|
|
|
|
|
|
|
|
icon: icon;
|
|
|
|
|
|
|
|
borderWidth: pixels;
|
|
|
|
borderColor: color;
|
|
|
|
borderActive: color;
|
|
|
|
|
|
|
|
phColor: color;
|
|
|
|
phFocusColor: color;
|
|
|
|
phPos: point;
|
|
|
|
phAlign: align;
|
|
|
|
phShift: pixels;
|
|
|
|
phDuration: int;
|
|
|
|
}
|
|
|
|
|
|
|
|
InputField {
|
|
|
|
textBg: color;
|
|
|
|
textFg: color;
|
|
|
|
textMargins: margins;
|
|
|
|
textAlign: align;
|
|
|
|
|
|
|
|
placeholderFg: color;
|
|
|
|
placeholderFgActive: color;
|
2016-12-09 18:56:01 +00:00
|
|
|
placeholderFgError: color;
|
2016-11-15 11:56:49 +00:00
|
|
|
placeholderMargins: margins;
|
|
|
|
placeholderAlign: align;
|
2016-12-09 18:56:01 +00:00
|
|
|
placeholderScale: double;
|
2016-11-15 11:56:49 +00:00
|
|
|
placeholderShift: pixels;
|
2016-12-09 18:56:01 +00:00
|
|
|
placeholderFont: font;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
duration: int;
|
|
|
|
|
|
|
|
borderFg: color;
|
|
|
|
borderFgActive: color;
|
|
|
|
borderFgError: color;
|
|
|
|
|
|
|
|
border: pixels;
|
|
|
|
borderActive: pixels;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
|
|
|
|
width: pixels;
|
2016-12-09 18:56:01 +00:00
|
|
|
heightMin: pixels;
|
|
|
|
heightMax: pixels;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
OutlineButton {
|
|
|
|
outlineWidth: pixels;
|
|
|
|
outlineFg: color;
|
|
|
|
outlineFgOver: color;
|
|
|
|
|
|
|
|
textBg: color;
|
|
|
|
textBgOver: color;
|
|
|
|
|
|
|
|
textFg: color;
|
|
|
|
textFgOver: color;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
padding: margins;
|
2016-11-16 16:04:25 +00:00
|
|
|
|
|
|
|
ripple: RippleAnimation;
|
2016-11-11 13:46:04 +00:00
|
|
|
}
|
|
|
|
|
2016-10-27 14:10:28 +00:00
|
|
|
IconButton {
|
|
|
|
width: pixels;
|
|
|
|
height: pixels;
|
|
|
|
|
|
|
|
icon: icon;
|
2016-11-01 12:46:34 +00:00
|
|
|
iconOver: icon;
|
2016-10-27 14:10:28 +00:00
|
|
|
iconPosition: point;
|
|
|
|
|
|
|
|
duration: int;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
rippleAreaPosition: point;
|
|
|
|
rippleAreaSize: pixels;
|
|
|
|
ripple: RippleAnimation;
|
2016-07-11 18:05:46 +00:00
|
|
|
}
|
2016-08-22 17:16:21 +00:00
|
|
|
|
2016-11-09 13:40:51 +00:00
|
|
|
Shadow {
|
|
|
|
left: icon;
|
|
|
|
topLeft: icon;
|
|
|
|
top: icon;
|
|
|
|
topRight: icon;
|
|
|
|
right: icon;
|
|
|
|
bottomRight: icon;
|
|
|
|
bottom: icon;
|
|
|
|
bottomLeft: icon;
|
|
|
|
extend: margins;
|
|
|
|
fallback: color;
|
|
|
|
}
|
|
|
|
|
2016-09-23 16:04:26 +00:00
|
|
|
MediaSlider {
|
|
|
|
width: pixels;
|
|
|
|
activeFg: color;
|
|
|
|
inactiveFg: color;
|
2016-11-01 12:46:34 +00:00
|
|
|
activeFgOver: color;
|
|
|
|
inactiveFgOver: color;
|
|
|
|
activeFgDisabled: color;
|
|
|
|
inactiveFgDisabled: color;
|
2016-09-23 16:04:26 +00:00
|
|
|
seekSize: size;
|
|
|
|
duration: int;
|
|
|
|
}
|
|
|
|
|
2016-10-12 19:34:25 +00:00
|
|
|
FilledSlider {
|
|
|
|
fullWidth: pixels;
|
|
|
|
lineWidth: pixels;
|
|
|
|
activeFg: color;
|
|
|
|
inactiveFg: color;
|
2016-10-13 09:12:12 +00:00
|
|
|
disabledFg: color;
|
2016-10-12 19:34:25 +00:00
|
|
|
duration: int;
|
|
|
|
}
|
|
|
|
|
2016-11-21 16:24:23 +00:00
|
|
|
RoundCheckbox {
|
|
|
|
border: color;
|
|
|
|
bgInactive: color;
|
|
|
|
bgActive: color;
|
|
|
|
width: pixels;
|
|
|
|
size: pixels;
|
|
|
|
sizeSmall: double;
|
|
|
|
duration: int;
|
|
|
|
check: icon;
|
|
|
|
}
|
|
|
|
|
2016-10-20 11:34:48 +00:00
|
|
|
RoundImageCheckbox {
|
|
|
|
imageRadius: pixels;
|
|
|
|
imageSmallRadius: pixels;
|
|
|
|
selectWidth: pixels;
|
|
|
|
selectFg: color;
|
|
|
|
selectDuration: int;
|
2016-11-21 16:24:23 +00:00
|
|
|
check: RoundCheckbox;
|
2016-10-20 11:34:48 +00:00
|
|
|
}
|
|
|
|
|
2016-11-21 17:46:29 +00:00
|
|
|
CrossAnimation {
|
|
|
|
fg: color;
|
|
|
|
size: pixels;
|
|
|
|
skip: pixels;
|
|
|
|
stroke: pixels;
|
|
|
|
minScale: double;
|
|
|
|
}
|
|
|
|
|
|
|
|
CrossButton {
|
|
|
|
width: pixels;
|
|
|
|
height: pixels;
|
|
|
|
|
|
|
|
cross: CrossAnimation;
|
|
|
|
crossFg: color;
|
|
|
|
crossFgOver:color;
|
|
|
|
crossPosition: point;
|
|
|
|
duration: int;
|
|
|
|
|
|
|
|
ripple: RippleAnimation;
|
|
|
|
}
|
|
|
|
|
2016-10-21 12:28:26 +00:00
|
|
|
MultiSelectItem {
|
|
|
|
padding: margins;
|
|
|
|
maxWidth: pixels;
|
|
|
|
height: pixels;
|
|
|
|
font: font;
|
|
|
|
textBg: color;
|
|
|
|
textFg: color;
|
|
|
|
textActiveBg: color;
|
|
|
|
textActiveFg: color;
|
|
|
|
duration: int;
|
2016-11-21 17:46:29 +00:00
|
|
|
deleteFg: color;
|
|
|
|
deleteCross: CrossAnimation;
|
2016-10-21 12:28:26 +00:00
|
|
|
minScale: double;
|
|
|
|
}
|
|
|
|
|
2016-10-20 19:48:35 +00:00
|
|
|
MultiSelect {
|
2016-10-31 12:29:26 +00:00
|
|
|
bg: color;
|
2016-10-21 12:28:26 +00:00
|
|
|
padding: margins;
|
2016-10-20 19:48:35 +00:00
|
|
|
maxHeight: pixels;
|
2016-12-13 17:07:56 +00:00
|
|
|
scroll: ScrollArea;
|
2016-10-21 12:28:26 +00:00
|
|
|
|
|
|
|
item: MultiSelectItem;
|
|
|
|
itemSkip: pixels;
|
|
|
|
|
|
|
|
field: InputField;
|
2016-10-22 13:03:20 +00:00
|
|
|
fieldMinWidth: pixels;
|
2016-10-21 12:28:26 +00:00
|
|
|
fieldIcon: icon;
|
|
|
|
fieldIconSkip: pixels;
|
2016-11-21 17:46:29 +00:00
|
|
|
fieldCancel: CrossButton;
|
2016-10-21 12:28:26 +00:00
|
|
|
fieldCancelSkip: pixels;
|
2016-10-20 19:48:35 +00:00
|
|
|
}
|
|
|
|
|
2016-10-26 16:43:13 +00:00
|
|
|
Menu {
|
|
|
|
skip: pixels;
|
|
|
|
|
|
|
|
itemBg: color;
|
|
|
|
itemBgOver: color;
|
|
|
|
itemFg: color;
|
|
|
|
itemFgOver: color;
|
|
|
|
itemFgDisabled: color;
|
|
|
|
itemFgShortcut: color;
|
|
|
|
itemFgShortcutOver: color;
|
|
|
|
itemFgShortcutDisabled: color;
|
|
|
|
itemPadding: margins;
|
|
|
|
itemIconPosition: point;
|
|
|
|
itemFont: font;
|
|
|
|
|
|
|
|
separatorPadding: margins;
|
|
|
|
separatorWidth: pixels;
|
|
|
|
separatorFg: color;
|
|
|
|
|
|
|
|
arrow: icon;
|
|
|
|
|
|
|
|
widthMin: pixels;
|
|
|
|
widthMax: pixels;
|
2016-11-16 16:04:25 +00:00
|
|
|
|
|
|
|
ripple: RippleAnimation;
|
2016-10-26 16:43:13 +00:00
|
|
|
}
|
|
|
|
|
2016-11-09 13:40:51 +00:00
|
|
|
PanelAnimation {
|
|
|
|
startWidth: double;
|
|
|
|
widthDuration: double;
|
|
|
|
startHeight: double;
|
|
|
|
heightDuration: double;
|
|
|
|
startOpacity: double;
|
|
|
|
opacityDuration: double;
|
|
|
|
startFadeTop: double;
|
|
|
|
fadeHeight: double;
|
|
|
|
fadeOpacity: double;
|
|
|
|
fadeBg: color;
|
|
|
|
shadow: Shadow;
|
|
|
|
}
|
|
|
|
|
2016-10-26 16:43:13 +00:00
|
|
|
PopupMenu {
|
2016-11-09 13:40:51 +00:00
|
|
|
shadow: Shadow;
|
|
|
|
scrollPadding: margins;
|
|
|
|
animation: PanelAnimation;
|
2016-10-26 16:43:13 +00:00
|
|
|
|
|
|
|
menu: Menu;
|
|
|
|
|
|
|
|
duration: int;
|
2016-11-09 13:40:51 +00:00
|
|
|
showDuration: int;
|
2016-10-26 16:43:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
InnerDropdown {
|
|
|
|
padding: margins;
|
2016-11-09 13:40:51 +00:00
|
|
|
shadow: Shadow;
|
|
|
|
animation: PanelAnimation;
|
2016-10-26 16:43:13 +00:00
|
|
|
|
|
|
|
duration: int;
|
2016-11-09 13:40:51 +00:00
|
|
|
showDuration: int;
|
2016-10-26 16:43:13 +00:00
|
|
|
width: pixels;
|
|
|
|
|
2016-11-09 13:40:51 +00:00
|
|
|
bg: color;
|
2016-12-13 17:07:56 +00:00
|
|
|
scroll: ScrollArea;
|
2016-10-26 16:43:13 +00:00
|
|
|
scrollMargin: margins;
|
|
|
|
scrollPadding: margins;
|
|
|
|
}
|
|
|
|
|
|
|
|
DropdownMenu {
|
|
|
|
wrap: InnerDropdown;
|
|
|
|
menu: Menu;
|
|
|
|
}
|
|
|
|
|
2016-10-27 14:10:28 +00:00
|
|
|
defaultLabelSimple: LabelSimple {
|
|
|
|
font: normalFont;
|
|
|
|
maxWidth: 0px;
|
2016-11-16 10:44:06 +00:00
|
|
|
textFg: windowFg;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultFlatLabel: FlatLabel {
|
|
|
|
font: font(fsize);
|
|
|
|
width: 0px;
|
|
|
|
maxHeight: 0px;
|
|
|
|
align: align(left);
|
|
|
|
textFg: windowFg;
|
2016-10-27 14:10:28 +00:00
|
|
|
}
|
|
|
|
|
2016-11-11 13:46:04 +00:00
|
|
|
defaultLinkButton: LinkButton {
|
2016-12-03 12:10:35 +00:00
|
|
|
color: windowActiveTextFg;
|
|
|
|
overColor: windowActiveTextFg;
|
2016-11-11 13:46:04 +00:00
|
|
|
font: linkFont;
|
|
|
|
overFont: linkOverFont;
|
2016-11-08 14:43:10 +00:00
|
|
|
}
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
defaultRippleAnimation: RippleAnimation {
|
2016-11-16 10:44:06 +00:00
|
|
|
color: windowBgRipple;
|
2016-11-28 15:45:07 +00:00
|
|
|
showDuration: 450;
|
2016-11-15 11:56:49 +00:00
|
|
|
hideDuration: 200;
|
|
|
|
}
|
|
|
|
|
|
|
|
emptyRippleAnimation: RippleAnimation {
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultActiveButton: RoundButton {
|
|
|
|
textFg: activeButtonFg;
|
|
|
|
textFgOver: activeButtonFgOver;
|
|
|
|
secondaryTextFg: activeButtonSecondaryFg;
|
|
|
|
secondaryTextFgOver: activeButtonSecondaryFgOver;
|
|
|
|
textBg: activeButtonBg;
|
|
|
|
textBgOver: activeButtonBgOver;
|
|
|
|
|
|
|
|
secondarySkip: 7px;
|
|
|
|
|
|
|
|
width: -34px;
|
|
|
|
height: 34px;
|
|
|
|
padding: margins(0px, 0px, 0px, 0px);
|
|
|
|
|
|
|
|
textTop: 8px;
|
|
|
|
|
|
|
|
font: semiboldFont;
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: activeButtonBgRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultLightButton: RoundButton(defaultActiveButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
2016-12-13 17:07:56 +00:00
|
|
|
secondaryTextFg: lightButtonFg;
|
|
|
|
secondaryTextFgOver: lightButtonFgOver;
|
2016-11-15 11:56:49 +00:00
|
|
|
textBg: lightButtonBg;
|
|
|
|
textBgOver: lightButtonBgOver;
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: lightButtonBgRipple;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
defaultScrollArea: ScrollArea {
|
2016-12-21 15:05:58 +00:00
|
|
|
bg: scrollBg;
|
|
|
|
bgOver: scrollBgOver;
|
|
|
|
barBg: scrollBarBg;
|
|
|
|
barBgOver: scrollBarBgOver;
|
2016-11-16 10:44:06 +00:00
|
|
|
|
|
|
|
round: 2px;
|
|
|
|
|
|
|
|
width: 10px;
|
|
|
|
minHeight: 20px;
|
|
|
|
deltax: 3px;
|
|
|
|
deltat: 3px;
|
|
|
|
deltab: 3px;
|
|
|
|
|
|
|
|
topsh: 2px;
|
|
|
|
bottomsh: 2px;
|
2016-12-21 15:05:58 +00:00
|
|
|
shColor: shadowFg;
|
2016-11-16 10:44:06 +00:00
|
|
|
|
|
|
|
duration: 150;
|
|
|
|
hiding: 1000;
|
|
|
|
}
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
defaultSolidScroll: ScrollArea(defaultScrollArea) {
|
2016-11-16 10:44:06 +00:00
|
|
|
deltax: 5px;
|
|
|
|
width: 14px;
|
|
|
|
deltat: 6px;
|
|
|
|
deltab: 6px;
|
|
|
|
|
|
|
|
topsh: 0px;
|
|
|
|
bottomsh: 0px;
|
|
|
|
|
|
|
|
hiding: 0;
|
|
|
|
}
|
|
|
|
|
2016-11-15 11:56:49 +00:00
|
|
|
defaultInputFont: font(17px);
|
|
|
|
defaultFlatInput: FlatInput {
|
2016-12-21 15:05:58 +00:00
|
|
|
textColor: windowFg;
|
2016-11-22 09:48:13 +00:00
|
|
|
bgColor: windowBgOver;
|
2016-12-21 15:05:58 +00:00
|
|
|
bgActive: windowBg;
|
2016-11-15 11:56:49 +00:00
|
|
|
width: 210px;
|
|
|
|
height: 40px;
|
|
|
|
align: align(left);
|
|
|
|
textMrg: margins(5px, 5px, 5px, 5px);
|
|
|
|
font: defaultInputFont;
|
|
|
|
|
|
|
|
borderWidth: 2px;
|
2016-11-22 09:48:13 +00:00
|
|
|
borderColor: windowBgOver;
|
2016-12-21 15:05:58 +00:00
|
|
|
borderActive: filterInputBorderFg;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
phColor: placeholderFg;
|
|
|
|
phFocusColor: placeholderFgActive;
|
2016-11-15 11:56:49 +00:00
|
|
|
phAlign: align(left);
|
|
|
|
phPos: point(2px, 0px);
|
|
|
|
phShift: 50px;
|
|
|
|
phDuration: 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultLeftOutlineButton: OutlineButton {
|
|
|
|
outlineWidth: 3px;
|
2016-12-21 15:05:58 +00:00
|
|
|
outlineFg: outlineButtonBg;
|
|
|
|
outlineFgOver: outlineButtonOutlineFg;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
textBg: outlineButtonBg;
|
|
|
|
textBgOver: outlineButtonBgOver;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
textFg: windowActiveTextFg;
|
|
|
|
textFgOver: windowActiveTextFg;
|
|
|
|
|
|
|
|
font: normalFont;
|
|
|
|
padding: margins(11px, 5px, 11px, 5px);
|
2016-11-16 16:04:25 +00:00
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
2016-12-21 15:05:58 +00:00
|
|
|
color: outlineButtonBgRipple;
|
2016-11-16 16:04:25 +00:00
|
|
|
}
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
attentionLeftOutlineButton: OutlineButton(defaultLeftOutlineButton) {
|
2016-11-16 16:04:25 +00:00
|
|
|
outlineFgOver: attentionButtonFg;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-11-16 16:04:25 +00:00
|
|
|
textBgOver: attentionButtonBgOver;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-11-16 16:04:25 +00:00
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFg;
|
|
|
|
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
|
|
color: attentionButtonBgRipple;
|
|
|
|
}
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultInputField: InputField {
|
|
|
|
textBg: windowBg;
|
2016-11-16 10:44:06 +00:00
|
|
|
textFg: windowFg;
|
2016-12-09 18:56:01 +00:00
|
|
|
textMargins: margins(0px, 26px, 0px, 4px);
|
2016-11-15 11:56:49 +00:00
|
|
|
textAlign: align(topleft);
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
placeholderFg: windowSubTextFg;
|
|
|
|
placeholderFgActive: windowActiveTextFg;
|
|
|
|
placeholderFgError: attentionButtonFg;
|
|
|
|
placeholderMargins: margins(0px, 0px, 0px, 0px);
|
2016-11-15 11:56:49 +00:00
|
|
|
placeholderAlign: align(topleft);
|
2016-12-09 18:56:01 +00:00
|
|
|
placeholderScale: 0.9;
|
|
|
|
placeholderShift: -20px;
|
|
|
|
placeholderFont: font(semibold 14px);
|
|
|
|
duration: 150;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
borderFg: inputBorderFg;
|
2016-12-03 12:10:35 +00:00
|
|
|
borderFgActive: activeLineFg;
|
2016-12-21 15:05:58 +00:00
|
|
|
borderFgError: activeLineFgError;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
border: 1px;
|
|
|
|
borderActive: 2px;
|
|
|
|
|
|
|
|
font: boxTextFont;
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
heightMin: 52px;
|
|
|
|
heightMax: 148px;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
|
2016-11-16 10:44:06 +00:00
|
|
|
defaultCheckboxIcon: icon {{ "default_checkbox_check", windowFgActive, point(4px, 7px) }};
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
defaultCheckbox: Checkbox {
|
2016-11-16 10:44:06 +00:00
|
|
|
textFg: windowFg;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
2016-12-02 19:16:35 +00:00
|
|
|
checkBg: transparent;
|
2016-12-21 15:05:58 +00:00
|
|
|
checkFg: checkboxFg;
|
2016-11-16 10:44:06 +00:00
|
|
|
checkFgActive: windowBgActive;
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
width: -44px;
|
|
|
|
height: 22px;
|
2016-12-02 19:16:35 +00:00
|
|
|
margin: margins(8px, 8px, 8px, 8px);
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
textPosition: point(32px, 2px);
|
|
|
|
diameter: 22px;
|
|
|
|
thickness: 2px;
|
|
|
|
checkIcon: defaultCheckboxIcon;
|
2016-12-02 19:16:35 +00:00
|
|
|
radioSkip: 65px; // * 0.1
|
2016-11-15 11:56:49 +00:00
|
|
|
|
|
|
|
font: normalFont;
|
|
|
|
duration: 120;
|
|
|
|
|
2016-12-02 19:16:35 +00:00
|
|
|
rippleAreaSize: 38px;
|
|
|
|
rippleAreaPosition: point(0px, 0px);
|
|
|
|
rippleBg: windowBgOver;
|
2016-12-21 15:05:58 +00:00
|
|
|
rippleBgActive: lightButtonBgOver;
|
2016-12-02 19:16:35 +00:00
|
|
|
ripple: defaultRippleAnimation;
|
2016-11-15 11:56:49 +00:00
|
|
|
}
|
|
|
|
|
2016-11-11 13:46:04 +00:00
|
|
|
defaultIconButton: IconButton {
|
2016-10-31 12:29:26 +00:00
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
}
|
|
|
|
|
2016-08-22 17:16:21 +00:00
|
|
|
widgetSlideDuration: 200;
|
2016-10-26 10:06:00 +00:00
|
|
|
widgetFadeDuration: 200;
|
2016-10-05 18:37:48 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
fieldSearchIcon: icon {{ "box_search", menuIconFg, point(9px, 8px) }};
|
|
|
|
boxFieldSearchIcon: icon {{ "box_search", menuIconFg, point(10px, 9px) }};
|
2016-11-04 11:14:47 +00:00
|
|
|
|
2016-11-22 09:48:13 +00:00
|
|
|
SettingsSlider {
|
|
|
|
height: pixels;
|
|
|
|
barTop: pixels;
|
|
|
|
barSkip: pixels;
|
|
|
|
barStroke: pixels;
|
|
|
|
barFg: color;
|
|
|
|
barFgActive: color;
|
|
|
|
labelTop: pixels;
|
|
|
|
labelFont: font;
|
|
|
|
labelFg: color;
|
|
|
|
labelFgActive: color;
|
|
|
|
duration: int;
|
2016-12-02 19:16:35 +00:00
|
|
|
rippleBottomSkip: pixels;
|
2016-12-13 17:07:56 +00:00
|
|
|
rippleRoundRadius: pixels;
|
2016-12-05 08:45:56 +00:00
|
|
|
rippleBg: color;
|
|
|
|
rippleBgActive: color;
|
2016-12-02 19:16:35 +00:00
|
|
|
ripple: RippleAnimation;
|
2016-11-22 09:48:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
defaultSettingsSlider: SettingsSlider {
|
|
|
|
height: 39px;
|
|
|
|
barTop: 5px;
|
|
|
|
barSkip: 3px;
|
|
|
|
barStroke: 3px;
|
2016-12-21 15:05:58 +00:00
|
|
|
barFg: sliderBgInactive;
|
|
|
|
barFgActive: sliderBgActive;
|
2016-11-22 09:48:13 +00:00
|
|
|
labelTop: 17px;
|
2016-12-01 19:20:33 +00:00
|
|
|
labelFont: normalFont;
|
2016-12-03 12:10:35 +00:00
|
|
|
labelFg: windowActiveTextFg;
|
|
|
|
labelFgActive: windowActiveTextFg;
|
2016-11-22 09:48:13 +00:00
|
|
|
duration: 150;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultTabsSlider: SettingsSlider(defaultSettingsSlider) {
|
2016-12-22 13:30:27 +00:00
|
|
|
height: 53px;
|
|
|
|
barTop: 50px;
|
2016-11-22 09:48:13 +00:00
|
|
|
barSkip: 0px;
|
|
|
|
barFg: transparent;
|
2016-12-22 13:30:27 +00:00
|
|
|
labelTop: 19px;
|
2016-11-22 09:48:13 +00:00
|
|
|
labelFont: semiboldFont;
|
2016-12-21 15:05:58 +00:00
|
|
|
labelFg: windowSubTextFg;
|
2016-11-22 09:48:13 +00:00
|
|
|
labelFgActive: lightButtonFg;
|
2016-12-02 19:16:35 +00:00
|
|
|
rippleBottomSkip: 1px;
|
2016-12-05 08:45:56 +00:00
|
|
|
rippleBg: windowBgOver;
|
2016-12-21 15:05:58 +00:00
|
|
|
rippleBgActive: lightButtonBgOver;
|
2016-12-05 08:45:56 +00:00
|
|
|
ripple: defaultRippleAnimation;
|
2016-11-22 09:48:13 +00:00
|
|
|
}
|
2016-10-26 16:43:13 +00:00
|
|
|
|
2016-11-09 13:40:51 +00:00
|
|
|
defaultRoundShadow: Shadow {
|
|
|
|
left: icon {{ "round_shadow_left", windowShadowFg }};
|
|
|
|
topLeft: icon {{ "round_shadow_top_left", windowShadowFg }};
|
|
|
|
top: icon {{ "round_shadow_top", windowShadowFg }};
|
|
|
|
topRight: icon {{ "round_shadow_top_left-flip_horizontal", windowShadowFg }};
|
|
|
|
right: icon {{ "round_shadow_left-flip_horizontal", windowShadowFg }};
|
|
|
|
bottomRight: icon {{ "round_shadow_bottom_left-flip_horizontal", windowShadowFg }};
|
|
|
|
bottom: icon {{ "round_shadow_bottom", windowShadowFg }};
|
|
|
|
bottomLeft: icon {{ "round_shadow_bottom_left", windowShadowFg }};
|
|
|
|
extend: margins(3px, 2px, 3px, 4px);
|
|
|
|
fallback: windowShadowFgFallback;
|
|
|
|
}
|
|
|
|
defaultEmptyShadow: Shadow {
|
|
|
|
fallback: windowBg;
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultPanelAnimation: PanelAnimation {
|
|
|
|
startWidth: 0.5;
|
|
|
|
widthDuration: 0.6;
|
|
|
|
startHeight: 0.3;
|
|
|
|
heightDuration: 0.9;
|
|
|
|
startOpacity: 0.2;
|
|
|
|
opacityDuration: 0.3;
|
|
|
|
startFadeTop: 0.;
|
|
|
|
fadeHeight: 0.2;
|
|
|
|
fadeOpacity: 1.0;
|
|
|
|
fadeBg: menuBg;
|
|
|
|
shadow: defaultRoundShadow;
|
|
|
|
}
|
|
|
|
|
2016-11-21 16:24:23 +00:00
|
|
|
defaultRoundCheckbox: RoundCheckbox {
|
|
|
|
border: windowBg;
|
|
|
|
bgActive: windowBgActive;
|
|
|
|
width: 2px;
|
|
|
|
duration: 150;
|
|
|
|
}
|
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
defaultMenuArrow: icon {{ "dropdown_submenu_arrow", menuSubmenuArrowFg }};
|
2016-10-26 16:43:13 +00:00
|
|
|
defaultMenu: Menu {
|
2016-11-09 13:40:51 +00:00
|
|
|
skip: 0px;
|
2016-10-26 16:43:13 +00:00
|
|
|
|
2016-10-31 12:29:26 +00:00
|
|
|
itemBg: windowBg;
|
2016-11-16 10:44:06 +00:00
|
|
|
itemBgOver: windowBgOver;
|
|
|
|
itemFg: windowFg;
|
|
|
|
itemFgOver: windowFgOver;
|
2016-12-21 15:05:58 +00:00
|
|
|
itemFgDisabled: menuFgDisabled;
|
2016-11-16 16:04:25 +00:00
|
|
|
itemFgShortcut: windowSubTextFg;
|
|
|
|
itemFgShortcutOver: windowSubTextFgOver;
|
2016-12-21 15:05:58 +00:00
|
|
|
itemFgShortcutDisabled: menuFgDisabled;
|
2016-10-26 16:43:13 +00:00
|
|
|
itemIconPosition: point(0px, 0px);
|
|
|
|
itemPadding: margins(17px, 8px, 17px, 7px);
|
|
|
|
itemFont: normalFont;
|
|
|
|
|
|
|
|
separatorPadding: margins(0px, 5px, 0px, 5px);
|
|
|
|
separatorWidth: 1px;
|
2016-12-21 15:05:58 +00:00
|
|
|
separatorFg: menuSeparatorFg;
|
2016-10-26 16:43:13 +00:00
|
|
|
|
|
|
|
arrow: defaultMenuArrow;
|
|
|
|
|
|
|
|
widthMin: 180px;
|
|
|
|
widthMax: 300px;
|
2016-11-16 16:04:25 +00:00
|
|
|
|
|
|
|
ripple: defaultRippleAnimation;
|
2016-10-26 16:43:13 +00:00
|
|
|
}
|
|
|
|
defaultPopupMenu: PopupMenu {
|
2016-11-09 13:40:51 +00:00
|
|
|
shadow: defaultRoundShadow;
|
|
|
|
animation: defaultPanelAnimation;
|
|
|
|
|
|
|
|
scrollPadding: margins(0px, 8px, 0px, 8px);
|
2016-10-26 16:43:13 +00:00
|
|
|
|
|
|
|
menu: defaultMenu;
|
|
|
|
|
2016-11-09 13:40:51 +00:00
|
|
|
duration: 150;
|
|
|
|
showDuration: 200;
|
2016-10-26 16:43:13 +00:00
|
|
|
}
|
|
|
|
defaultInnerDropdown: InnerDropdown {
|
|
|
|
padding: margins(10px, 10px, 10px, 10px);
|
2016-11-09 13:40:51 +00:00
|
|
|
shadow: defaultRoundShadow;
|
|
|
|
animation: defaultPanelAnimation;
|
2016-10-26 16:43:13 +00:00
|
|
|
|
|
|
|
duration: 150;
|
2016-11-09 13:40:51 +00:00
|
|
|
showDuration: 200;
|
2016-10-26 16:43:13 +00:00
|
|
|
|
2016-11-09 13:40:51 +00:00
|
|
|
bg: menuBg;
|
2016-11-16 10:44:06 +00:00
|
|
|
scroll: defaultSolidScroll;
|
2016-10-26 16:43:13 +00:00
|
|
|
}
|
|
|
|
defaultDropdownMenu: DropdownMenu {
|
2016-11-09 13:40:51 +00:00
|
|
|
wrap: InnerDropdown(defaultInnerDropdown) {
|
|
|
|
scrollPadding: margins(0px, 8px, 0px, 8px);
|
|
|
|
}
|
2016-10-26 16:43:13 +00:00
|
|
|
menu: defaultMenu;
|
|
|
|
}
|
2016-11-10 18:10:31 +00:00
|
|
|
|
2016-11-16 16:04:25 +00:00
|
|
|
historyToDownBelow: icon {
|
2016-12-21 15:05:58 +00:00
|
|
|
{ "history_down_shadow", historyToDownShadow },
|
2016-11-16 16:04:25 +00:00
|
|
|
{ "history_down_circle", windowBg, point(4px, 4px) },
|
2016-11-10 18:10:31 +00:00
|
|
|
};
|
2016-11-16 16:04:25 +00:00
|
|
|
historyToDownBelowOver: icon {
|
2016-12-21 15:05:58 +00:00
|
|
|
{ "history_down_shadow", historyToDownShadow },
|
2016-11-16 16:04:25 +00:00
|
|
|
{ "history_down_circle", windowBgOver, point(4px, 4px) },
|
|
|
|
};
|
|
|
|
contactsAddIconBelow: icon {
|
2016-12-21 15:05:58 +00:00
|
|
|
{ "history_down_shadow", historyToDownShadow },
|
2016-11-10 18:10:31 +00:00
|
|
|
{ "history_down_circle", activeButtonBg, point(4px, 4px) },
|
|
|
|
};
|
2016-11-16 16:04:25 +00:00
|
|
|
contactsAddIconBelowOver: icon {
|
2016-12-21 15:05:58 +00:00
|
|
|
{ "history_down_shadow", historyToDownShadow },
|
2016-11-10 18:10:31 +00:00
|
|
|
{ "history_down_circle", activeButtonBgOver, point(4px, 4px) },
|
|
|
|
};
|
2016-11-16 16:04:25 +00:00
|
|
|
|
|
|
|
BotKeyboardButton {
|
|
|
|
margin: pixels;
|
|
|
|
padding: pixels;
|
|
|
|
height: pixels;
|
|
|
|
textTop: pixels;
|
|
|
|
ripple: RippleAnimation;
|
|
|
|
}
|
|
|
|
|
|
|
|
TwoIconButton {
|
|
|
|
width: pixels;
|
|
|
|
height: pixels;
|
|
|
|
|
|
|
|
iconBelow: icon;
|
|
|
|
iconAbove: icon;
|
|
|
|
iconBelowOver: icon;
|
|
|
|
iconAboveOver: icon;
|
|
|
|
iconPosition: point;
|
|
|
|
|
|
|
|
rippleAreaPosition: point;
|
|
|
|
rippleAreaSize: pixels;
|
|
|
|
ripple: RippleAnimation;
|
|
|
|
}
|
2016-12-01 19:20:33 +00:00
|
|
|
|
|
|
|
historySendActionTypingDuration: 800;
|
|
|
|
historySendActionTypingHalfPeriod: 320;
|
|
|
|
historySendActionTypingDeltaTime: 150;
|
|
|
|
historySendActionTypingPosition: point(4px, -4px);
|
2016-12-05 11:01:08 +00:00
|
|
|
historySendActionTypingDelta: 6px;
|
2016-12-01 19:20:33 +00:00
|
|
|
historySendActionTypingLargeNumerator: 28px;
|
|
|
|
historySendActionTypingSmallNumerator: 16px;
|
|
|
|
historySendActionTypingDenominator: 12.;
|
|
|
|
|
2016-12-08 14:08:54 +00:00
|
|
|
historySendActionRecordDuration: 500;
|
2016-12-01 19:20:33 +00:00
|
|
|
historySendActionRecordPosition: point(1px, -4px);
|
2016-12-08 14:08:54 +00:00
|
|
|
historySendActionRecordDelta: 4px;
|
|
|
|
historySendActionRecordStrokeNumerator: 16px;
|
2016-12-01 19:20:33 +00:00
|
|
|
historySendActionRecordDenominator: 8.;
|
|
|
|
|
|
|
|
historySendActionUploadDuration: 500;
|
|
|
|
historySendActionUploadPosition: point(0px, -4px);
|
|
|
|
historySendActionUploadDelta: 5px;
|
2016-12-08 14:08:54 +00:00
|
|
|
historySendActionUploadStrokeNumerator: 16px;
|
|
|
|
historySendActionUploadSizeNumerator: 32px;
|
2016-12-01 19:20:33 +00:00
|
|
|
historySendActionUploadDenominator: 8.;
|
2016-12-05 11:01:08 +00:00
|
|
|
|
|
|
|
MediaPlayerButton {
|
|
|
|
playPosition: point;
|
|
|
|
playOuter: size;
|
|
|
|
pausePosition: point;
|
|
|
|
pauseOuter: size;
|
|
|
|
pauseStroke: pixels;
|
|
|
|
cancelPosition: point;
|
|
|
|
cancelOuter: size;
|
|
|
|
cancelStroke: pixels;
|
|
|
|
|
|
|
|
rippleAreaPosition: point;
|
|
|
|
rippleAreaSize: pixels;
|
|
|
|
ripple: RippleAnimation;
|
|
|
|
}
|
2016-12-09 18:56:01 +00:00
|
|
|
|
|
|
|
ProfilePeerListItem {
|
2016-12-19 16:51:29 +00:00
|
|
|
left: pixels;
|
|
|
|
bottom: pixels;
|
|
|
|
|
2016-12-09 18:56:01 +00:00
|
|
|
button: OutlineButton;
|
|
|
|
statusFg: color;
|
|
|
|
statusFgOver: color;
|
|
|
|
statusFgActive: color;
|
|
|
|
}
|