2016-08-16 16:53:10 +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.
|
2016-08-16 16:53:10 +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
|
2016-08-16 16:53:10 +00:00
|
|
|
*/
|
|
|
|
using "basic.style";
|
2016-08-27 04:49:18 +00:00
|
|
|
using "dialogs/dialogs.style";
|
2016-10-27 14:10:28 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
2016-10-31 12:29:26 +00:00
|
|
|
using "boxes/boxes.style";
|
2016-08-16 16:53:10 +00:00
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
settingsScroll: ScrollArea(defaultScrollArea) {
|
2016-11-16 10:44:06 +00:00
|
|
|
bottomsh: 0px;
|
|
|
|
topsh: 0px;
|
|
|
|
}
|
|
|
|
|
2016-08-17 15:14:08 +00:00
|
|
|
settingsMaxWidth: 520px;
|
|
|
|
settingsMaxPadding: 48px;
|
|
|
|
settingsMinPadding: 32px;
|
|
|
|
settingsMargin: 48px;
|
|
|
|
|
2016-12-13 17:07:56 +00:00
|
|
|
settingsFixedBarHeight: boxLayerTitleHeight;
|
|
|
|
settingsFixedBarFont: boxTitleFont;
|
|
|
|
settingsFixedBarTextPosition: boxLayerTitlePosition;
|
|
|
|
settingsFixedBarClose: IconButton(boxTitleClose) {
|
2016-08-17 15:14:08 +00:00
|
|
|
width: settingsFixedBarHeight;
|
|
|
|
height: settingsFixedBarHeight;
|
|
|
|
}
|
|
|
|
|
2016-08-19 17:26:31 +00:00
|
|
|
settingsMarginTop: 34px;
|
2017-11-13 15:50:10 +00:00
|
|
|
settingsPhoto: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(112px, 112px);
|
|
|
|
photoSize: 112px;
|
|
|
|
}
|
2016-08-19 17:26:31 +00:00
|
|
|
settingsPhotoLeft: -8px;
|
|
|
|
settingsPhotoDuration: 500;
|
|
|
|
settingsNameLeft: 26px;
|
|
|
|
settingsNameTop: 9px;
|
2016-11-16 10:44:06 +00:00
|
|
|
settingsNameLabel: FlatLabel(defaultFlatLabel) {
|
2016-08-19 17:26:31 +00:00
|
|
|
margin: margins(10px, 5px, 10px, 5px);
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 160px;
|
2016-08-19 17:26:31 +00:00
|
|
|
maxHeight: 24px;
|
2016-12-21 15:05:58 +00:00
|
|
|
textFg: windowBoldFg;
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(16px semibold);
|
|
|
|
linkFont: font(16px semibold);
|
|
|
|
linkFontOver: font(16px semibold underline);
|
|
|
|
}
|
2016-08-19 17:26:31 +00:00
|
|
|
}
|
|
|
|
settingsStatusLeft: 27px;
|
|
|
|
settingsStatusTop: 35px;
|
|
|
|
settingsStatusFont: normalFont;
|
|
|
|
settingsStatusFg: windowSubTextFg;
|
|
|
|
settingsStatusFgActive: windowActiveTextFg;
|
|
|
|
settingsMarginBottom: 35px;
|
|
|
|
|
|
|
|
settingsButtonLeft: 27px;
|
|
|
|
settingsButtonTop: 75px;
|
|
|
|
settingsButtonSkip: 10px;
|
2016-10-31 12:29:26 +00:00
|
|
|
settingsPrimaryButton: defaultActiveButton;
|
|
|
|
settingsSecondaryButton: defaultLightButton;
|
2016-11-04 11:14:47 +00:00
|
|
|
settingsEditButton: IconButton {
|
2016-08-27 04:49:18 +00:00
|
|
|
width: 24px;
|
|
|
|
height: 34px;
|
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
icon: icon {{ "settings_edit_name", menuIconFg }};
|
2016-10-31 12:29:26 +00:00
|
|
|
iconPosition: point(3px, 9px);
|
2016-08-27 04:49:18 +00:00
|
|
|
}
|
|
|
|
|
2016-08-19 17:26:31 +00:00
|
|
|
settingsBlocksTop: 7px;
|
|
|
|
settingsBlocksBottom: 20px;
|
|
|
|
settingsBlockMarginTop: 14px;
|
2016-08-22 17:16:21 +00:00
|
|
|
settingsBlockMarginRight: 10px;
|
2016-08-28 19:16:23 +00:00
|
|
|
settingsBlockMarginBottom: 10px;
|
2016-08-22 17:16:21 +00:00
|
|
|
settingsBlockTitleHeight: 31px;
|
2016-08-28 19:16:23 +00:00
|
|
|
settingsBlockTitleFont: font(15px semibold);
|
2016-12-21 15:05:58 +00:00
|
|
|
settingsBlockTitleFg: windowBoldFg;
|
2016-08-19 17:26:31 +00:00
|
|
|
settingsBlockTitleTop: 0px;
|
2016-11-16 10:44:06 +00:00
|
|
|
settingsPrimaryLabel: FlatLabel(defaultFlatLabel) {
|
2016-12-23 13:21:01 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: boxTextFont;
|
|
|
|
linkFont: boxTextFont;
|
|
|
|
linkFontOver: font(boxFontSize underline);
|
|
|
|
}
|
2016-08-28 19:16:23 +00:00
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
settingsBlockLabel: FlatLabel(settingsPrimaryLabel) {
|
2016-08-19 17:26:31 +00:00
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
settingsBlockOneLineTextPart: FlatLabel(settingsPrimaryLabel) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 0px; // No need to set minWidth in one-line text.
|
2016-08-19 17:26:31 +00:00
|
|
|
margin: margins(5px, 5px, 5px, 5px);
|
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
2017-07-18 15:15:02 +00:00
|
|
|
settingsBioValue: FlatLabel(settingsBlockOneLineTextPart) {
|
2017-11-10 15:45:10 +00:00
|
|
|
minWidth: 120px;
|
2017-07-18 15:15:02 +00:00
|
|
|
maxHeight: 0px;
|
|
|
|
}
|
2016-08-22 17:16:21 +00:00
|
|
|
settingsSubSkip: 4px;
|
|
|
|
settingsSmallSkip: 10px;
|
2016-08-28 19:16:23 +00:00
|
|
|
settingsSkip: 14px;
|
2016-08-22 17:16:21 +00:00
|
|
|
settingsLargeSkip: 23px;
|
|
|
|
|
|
|
|
settingsActionPadding: margins(0px, 4px, 0px, 5px);
|
|
|
|
|
2016-08-27 04:49:18 +00:00
|
|
|
settingsBackgroundSize: 120px;
|
2016-08-27 17:52:05 +00:00
|
|
|
|
2016-12-21 15:05:58 +00:00
|
|
|
settingsUpdateFg: windowSubTextFg;
|