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-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;
|
|
|
|
settingsPhotoSize: 112px;
|
|
|
|
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);
|
|
|
|
font: font(16px semibold);
|
|
|
|
width: 160px;
|
|
|
|
maxHeight: 24px;
|
2016-12-21 15:05:58 +00:00
|
|
|
textFg: windowBoldFg;
|
2016-08-19 17:26:31 +00:00
|
|
|
}
|
2016-11-16 10:44:06 +00:00
|
|
|
settingsNameTextStyle: TextStyle(defaultTextStyle) {
|
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-08-28 19:16:23 +00:00
|
|
|
font: boxTextFont;
|
|
|
|
}
|
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) {
|
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);
|
|
|
|
|
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;
|