2016-08-16 16:53:10 +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";
|
|
|
|
using "basic_types.style";
|
2016-08-27 04:49:18 +00:00
|
|
|
using "dialogs/dialogs.style";
|
2016-08-16 16:53:10 +00:00
|
|
|
|
2016-08-17 15:14:08 +00:00
|
|
|
settingsMaxWidth: 520px;
|
|
|
|
settingsMaxPadding: 48px;
|
|
|
|
settingsMinPadding: 32px;
|
|
|
|
settingsMargin: 48px;
|
|
|
|
|
|
|
|
settingsFixedBarHeight: 52px;
|
|
|
|
settingsFixedBarFont: font(14px semibold);
|
|
|
|
settingsFixedBarFg: windowTextFg;
|
|
|
|
settingsFixedBarTextLeft: 20px;
|
|
|
|
settingsFixedBarTextTop: 16px;
|
|
|
|
settingsFixedBarClose: IconButton {
|
|
|
|
width: settingsFixedBarHeight;
|
|
|
|
height: settingsFixedBarHeight;
|
|
|
|
|
|
|
|
opacity: 0.31;
|
|
|
|
overOpacity: 0.5;
|
|
|
|
|
2016-09-30 12:52:03 +00:00
|
|
|
icon: icon {{ "settings_close", #000000, point(0px, 0px) }};
|
2016-08-17 15:14:08 +00:00
|
|
|
iconPosition: point(20px, 20px);
|
|
|
|
downIconPosition: point(20px, 20px);
|
|
|
|
|
|
|
|
duration: 200;
|
|
|
|
}
|
|
|
|
settingsFixedBarShadowBg1: #00000021;
|
|
|
|
settingsFixedBarShadowBg2: #0000000b;
|
|
|
|
|
2016-08-19 17:26:31 +00:00
|
|
|
settingsMarginTop: 34px;
|
|
|
|
settingsPhotoSize: 112px;
|
|
|
|
settingsPhotoLeft: -8px;
|
|
|
|
settingsPhotoDuration: 500;
|
|
|
|
settingsNameLeft: 26px;
|
|
|
|
settingsNameTop: 9px;
|
|
|
|
settingsNameLabel: flatLabel(labelDefFlat) {
|
|
|
|
margin: margins(10px, 5px, 10px, 5px);
|
|
|
|
font: font(16px semibold);
|
|
|
|
width: 160px;
|
|
|
|
maxHeight: 24px;
|
|
|
|
textFg: #333333;
|
|
|
|
}
|
|
|
|
settingsNameTextStyle: textStyle(defaultTextStyle) {
|
|
|
|
}
|
|
|
|
settingsStatusLeft: 27px;
|
|
|
|
settingsStatusTop: 35px;
|
|
|
|
settingsStatusFont: normalFont;
|
|
|
|
settingsStatusFg: windowSubTextFg;
|
|
|
|
settingsStatusFgActive: windowActiveTextFg;
|
|
|
|
settingsMarginBottom: 35px;
|
|
|
|
|
|
|
|
settingsButtonLeft: 27px;
|
|
|
|
settingsButtonTop: 75px;
|
|
|
|
settingsButtonSkip: 10px;
|
|
|
|
settingsPrimaryButton: RoundButton(defaultActiveButton) {
|
|
|
|
}
|
|
|
|
settingsSecondaryButton: RoundButton(settingsPrimaryButton) {
|
|
|
|
textFg: semiboldButtonBlueText;
|
|
|
|
textFgOver: semiboldButtonBlueText;
|
|
|
|
textBg: #ffffff;
|
|
|
|
textBgOver: #f2f7fa;
|
|
|
|
}
|
2016-08-27 04:49:18 +00:00
|
|
|
settingsEditButton: RoundButton {
|
|
|
|
width: 24px;
|
|
|
|
height: 34px;
|
|
|
|
icon: settingsEditIcon;
|
|
|
|
|
|
|
|
textTop: 0px;
|
|
|
|
downTextTop: 1px;
|
|
|
|
|
|
|
|
textFg: transparent;
|
|
|
|
textFgOver: transparent;
|
|
|
|
secondaryTextFg: transparent;
|
|
|
|
secondaryTextFgOver: transparent;
|
|
|
|
textBg: transparent;
|
|
|
|
textBgOver: transparent;
|
|
|
|
}
|
|
|
|
|
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-08-19 17:26:31 +00:00
|
|
|
settingsBlockTitleFg: #333333;
|
|
|
|
settingsBlockTitleTop: 0px;
|
2016-08-28 19:16:23 +00:00
|
|
|
settingsPrimaryLabel: flatLabel(labelDefFlat) {
|
|
|
|
font: boxTextFont;
|
|
|
|
}
|
|
|
|
settingsBlockLabel: flatLabel(settingsPrimaryLabel) {
|
2016-08-19 17:26:31 +00:00
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2016-08-28 19:16:23 +00:00
|
|
|
settingsBlockOneLineTextPart: flatLabel(settingsPrimaryLabel) {
|
2016-08-19 17:26:31 +00:00
|
|
|
width: 0px; // No need to set minWidth in one-line text.
|
|
|
|
margin: margins(5px, 5px, 5px, 5px);
|
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
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);
|
|
|
|
|
|
|
|
settingsSliderHeight: 39px;
|
|
|
|
settingsSliderTop: 5px;
|
|
|
|
settingsSliderSkip: 3px;
|
|
|
|
settingsSliderThickness: 3px;
|
|
|
|
settingsSliderActiveFg: #4bb5e7;
|
|
|
|
settingsSliderInactiveFg: #e1eaef;
|
|
|
|
settingsSliderLabelTop: 17px;
|
|
|
|
settingsSliderLabelFont: normalFont;
|
|
|
|
settingsSliderLabelFg: #1485c2;
|
|
|
|
settingsSliderDuration: 200;
|
2016-08-27 04:49:18 +00:00
|
|
|
|
|
|
|
settingsBackgroundSize: 120px;
|
2016-08-27 17:52:05 +00:00
|
|
|
|
|
|
|
settingsUpdateFg: #999999;
|