2014-05-30 08:53:19 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2014-12-01 10:47:38 +00:00
|
|
|
the official desktop version of Telegram messaging app, see https://telegram.org
|
2014-05-30 08:53:19 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2015-10-03 13:16:42 +00:00
|
|
|
In addition, as a special exception, the copyright holders give permission
|
|
|
|
to link the code of portions of this program with the OpenSSL library.
|
|
|
|
|
2014-05-30 08:53:19 +00:00
|
|
|
Full license: https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE
|
2015-10-03 13:16:42 +00:00
|
|
|
Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org
|
2014-05-30 08:53:19 +00:00
|
|
|
*/
|
|
|
|
textStyle {
|
2015-10-23 16:06:56 +00:00
|
|
|
linkFlags: font;
|
|
|
|
linkFlagsOver: font;
|
|
|
|
linkFg: color;
|
|
|
|
linkFgDown: color;
|
|
|
|
monoFg: color;
|
2015-05-20 19:28:24 +00:00
|
|
|
selectBg: color;
|
2014-05-30 08:53:19 +00:00
|
|
|
selectOverlay: color;
|
|
|
|
lineHeight: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
linkButton {
|
|
|
|
color: color;
|
|
|
|
overColor: color;
|
|
|
|
downColor: color;
|
|
|
|
font: font;
|
|
|
|
overFont: font;
|
|
|
|
}
|
|
|
|
|
|
|
|
sysButton {
|
|
|
|
size: size;
|
|
|
|
img: sprite;
|
|
|
|
color: color;
|
|
|
|
overColor: color;
|
|
|
|
duration: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
flatButton {
|
|
|
|
color: color;
|
|
|
|
overColor: color;
|
|
|
|
downColor: color;
|
|
|
|
|
|
|
|
bgColor: color;
|
|
|
|
overBgColor: color;
|
|
|
|
downBgColor: color;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
|
|
|
|
textTop: number;
|
|
|
|
overTextTop: number;
|
|
|
|
downTextTop: number;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
overFont: font;
|
|
|
|
duration: number;
|
|
|
|
cursor: cursor;
|
|
|
|
}
|
|
|
|
|
|
|
|
iconedButton {
|
|
|
|
icon: sprite;
|
|
|
|
iconPos: point;
|
|
|
|
downIcon: sprite;
|
|
|
|
downIconPos: point;
|
|
|
|
|
|
|
|
color: color;
|
|
|
|
bgColor: color;
|
|
|
|
overBgColor: color;
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
font: font;
|
|
|
|
|
|
|
|
opacity: number;
|
|
|
|
overOpacity: number;
|
|
|
|
|
|
|
|
textPos: point;
|
|
|
|
downTextPos: point;
|
|
|
|
|
|
|
|
duration: number;
|
|
|
|
cursor: cursor;
|
|
|
|
}
|
|
|
|
|
|
|
|
flatCheckbox {
|
|
|
|
textColor: color;
|
|
|
|
bgColor: color;
|
|
|
|
disColor: color;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
textTop: number;
|
|
|
|
textLeft: number;
|
|
|
|
font: font;
|
|
|
|
duration: number;
|
|
|
|
bgFunc: transition;
|
|
|
|
cursor: cursor;
|
|
|
|
|
|
|
|
disabledCursor: cursor;
|
|
|
|
|
|
|
|
imageRect: sprite;
|
|
|
|
chkImageRect: sprite;
|
|
|
|
overImageRect: sprite;
|
|
|
|
chkOverImageRect: sprite;
|
|
|
|
disImageRect: sprite;
|
|
|
|
chkDisImageRect: sprite;
|
|
|
|
|
|
|
|
imagePos: point;
|
|
|
|
}
|
|
|
|
|
|
|
|
flatInput {
|
|
|
|
textColor: color;
|
|
|
|
bgColor: color;
|
|
|
|
bgActive: color;
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
textMrg: margins;
|
|
|
|
align: align;
|
|
|
|
font: font;
|
|
|
|
cursor: cursor;
|
|
|
|
|
|
|
|
imgRect: sprite;
|
|
|
|
imgPos: point;
|
|
|
|
|
|
|
|
borderWidth: number;
|
|
|
|
borderColor: color;
|
|
|
|
borderActive: color;
|
|
|
|
borderError: color;
|
|
|
|
|
|
|
|
phColor: color;
|
|
|
|
phFocusColor: color;
|
|
|
|
phPos: point;
|
|
|
|
phAlign: align;
|
|
|
|
phShift: number;
|
|
|
|
phDuration: number;
|
|
|
|
phLeftFunc: transition;
|
|
|
|
phAlphaFunc: transition;
|
|
|
|
phColorFunc: transition;
|
|
|
|
}
|
|
|
|
|
|
|
|
flatTextarea {
|
|
|
|
textColor: color;
|
|
|
|
bgColor: color;
|
|
|
|
width: number;
|
|
|
|
textMrg: margins;
|
|
|
|
align: align;
|
|
|
|
font: font;
|
|
|
|
cursor: cursor;
|
|
|
|
|
|
|
|
phColor: color;
|
|
|
|
phFocusColor: color;
|
|
|
|
phPos: point;
|
|
|
|
phAlign: align;
|
|
|
|
phShift: number;
|
|
|
|
phDuration: number;
|
|
|
|
phLeftFunc: transition;
|
|
|
|
phAlphaFunc: transition;
|
|
|
|
phColorFunc: transition;
|
|
|
|
}
|
|
|
|
|
|
|
|
flatScroll {
|
|
|
|
barColor: color;
|
|
|
|
bgColor: color;
|
|
|
|
barOverColor: color;
|
|
|
|
bgOverColor: color;
|
|
|
|
|
|
|
|
round: number;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
minHeight: number;
|
|
|
|
deltax: number;
|
2015-05-19 15:46:45 +00:00
|
|
|
deltat: number;
|
|
|
|
deltab: number;
|
2014-05-30 08:53:19 +00:00
|
|
|
|
|
|
|
topsh: number;
|
|
|
|
bottomsh: number;
|
|
|
|
shColor: color;
|
|
|
|
|
|
|
|
duration: number;
|
|
|
|
hiding: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
countryInput {
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
top: number;
|
|
|
|
bgColor: color;
|
|
|
|
ptrSize: size;
|
|
|
|
textMrg: margins;
|
|
|
|
font: font;
|
|
|
|
align: align;
|
|
|
|
}
|
|
|
|
|
|
|
|
slider {
|
|
|
|
color: color;
|
|
|
|
thikness: number;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
bar: sprite;
|
|
|
|
}
|
|
|
|
|
|
|
|
flatLabel {
|
|
|
|
font: font;
|
|
|
|
minWidth: number;
|
|
|
|
width: number;
|
|
|
|
align: align;
|
|
|
|
}
|
2014-07-04 11:12:54 +00:00
|
|
|
|
|
|
|
switcher {
|
|
|
|
border: number;
|
|
|
|
borderColor: color;
|
|
|
|
|
|
|
|
bgColor: color;
|
|
|
|
bgHovered: color;
|
|
|
|
bgActive: color;
|
|
|
|
|
|
|
|
height: number;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
textColor: color;
|
|
|
|
activeColor: color;
|
|
|
|
|
|
|
|
duration: number;
|
|
|
|
}
|
2015-04-11 10:04:10 +00:00
|
|
|
|
|
|
|
dropdown {
|
|
|
|
border: number;
|
|
|
|
borderColor: color;
|
|
|
|
|
|
|
|
padding: margins;
|
|
|
|
shadow: sprite;
|
2015-05-22 11:14:52 +00:00
|
|
|
shadowShift: number;
|
2015-04-11 10:04:10 +00:00
|
|
|
|
|
|
|
duration: number;
|
|
|
|
width: number;
|
|
|
|
}
|
2015-06-15 17:19:24 +00:00
|
|
|
|
2015-10-23 16:15:24 +00:00
|
|
|
PopupMenu {
|
|
|
|
skip: number;
|
|
|
|
|
|
|
|
shadow: sprite;
|
|
|
|
shadowShift: number;
|
|
|
|
|
|
|
|
itemBg: color;
|
|
|
|
itemBgOver: color;
|
|
|
|
itemFg: color;
|
|
|
|
itemFgOver: color;
|
2015-11-01 18:14:30 +00:00
|
|
|
itemFgDisabled: color;
|
|
|
|
itemFgShortcut: color;
|
|
|
|
itemFgShortcutOver: color;
|
|
|
|
itemFgShortcutDisabled: color;
|
2015-10-23 16:15:24 +00:00
|
|
|
itemPadding: margins;
|
|
|
|
itemFont: font;
|
|
|
|
|
2015-11-01 18:14:30 +00:00
|
|
|
separatorPadding: margins;
|
|
|
|
separatorWidth: number;
|
|
|
|
separatorFg: color;
|
|
|
|
|
|
|
|
arrow: sprite;
|
|
|
|
|
2015-10-23 16:15:24 +00:00
|
|
|
duration: number;
|
|
|
|
|
|
|
|
widthMin: number;
|
|
|
|
widthMax: number;
|
|
|
|
}
|
|
|
|
|
2015-06-15 17:19:24 +00:00
|
|
|
botKeyboardButton {
|
|
|
|
margin: number;
|
|
|
|
padding: number;
|
|
|
|
height: number;
|
|
|
|
textTop: number;
|
|
|
|
downTextTop: number;
|
|
|
|
}
|
2015-06-19 17:04:09 +00:00
|
|
|
|
2015-10-03 10:09:09 +00:00
|
|
|
BoxButton {
|
|
|
|
textFg: color;
|
|
|
|
textFgOver: color;
|
|
|
|
textBg: color; // rect of textBg with rounded rect of textBgOver upon it
|
|
|
|
textBgOver: color;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
|
|
|
|
textTop: number;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
duration: number;
|
|
|
|
}
|
|
|
|
|
2015-10-06 19:49:23 +00:00
|
|
|
Checkbox {
|
|
|
|
textFg: color;
|
|
|
|
textBg: color;
|
|
|
|
|
|
|
|
checkFg: color;
|
|
|
|
checkFgOver: color;
|
|
|
|
checkFgActive: color;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
|
|
|
|
textPosition: point;
|
|
|
|
diameter: number;
|
|
|
|
thickness: number;
|
|
|
|
checkIcon: sprite;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
duration: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
Radiobutton {
|
|
|
|
textFg: color;
|
|
|
|
textBg: color;
|
|
|
|
|
|
|
|
checkFg: color;
|
|
|
|
checkFgOver: color;
|
|
|
|
checkFgActive: color;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
|
|
|
|
textPosition: point;
|
|
|
|
diameter: number;
|
|
|
|
thickness: number;
|
|
|
|
checkSkip: number;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
duration: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
InputArea {
|
|
|
|
textFg: color;
|
|
|
|
textMargins: margins;
|
|
|
|
|
|
|
|
placeholderFg: color;
|
|
|
|
placeholderFgActive: color;
|
|
|
|
placeholderMargins: margins;
|
|
|
|
placeholderAlign: align;
|
|
|
|
placeholderShift: number;
|
|
|
|
|
|
|
|
duration: number;
|
|
|
|
|
|
|
|
borderFg: color;
|
|
|
|
borderFgActive: color;
|
|
|
|
borderFgError: color;
|
|
|
|
|
|
|
|
border: number;
|
|
|
|
borderActive: number;
|
|
|
|
borderError: number;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
heightMin: number;
|
|
|
|
heightMax: number;
|
|
|
|
}
|
|
|
|
|
2015-06-19 17:04:09 +00:00
|
|
|
InputField {
|
|
|
|
textFg: color;
|
|
|
|
textMargins: margins;
|
|
|
|
textAlign: align;
|
|
|
|
|
|
|
|
placeholderFg: color;
|
|
|
|
placeholderFgActive: color;
|
|
|
|
placeholderMargins: margins;
|
|
|
|
placeholderAlign: align;
|
|
|
|
placeholderShift: number;
|
|
|
|
|
|
|
|
duration: number;
|
|
|
|
|
|
|
|
borderFg: color;
|
|
|
|
borderFgActive: color;
|
|
|
|
borderFgError: color;
|
|
|
|
|
|
|
|
border: number;
|
|
|
|
borderActive: number;
|
|
|
|
borderError: number;
|
|
|
|
|
|
|
|
font: font;
|
|
|
|
|
|
|
|
width: number;
|
|
|
|
height: number;
|
|
|
|
|
|
|
|
iconSprite: sprite;
|
|
|
|
iconPosition: point;
|
|
|
|
}
|