2018-09-05 19:05:49 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
2019-09-17 16:13:12 +00:00
|
|
|
using "ui/basic.style";
|
2018-09-05 19:05:49 +00:00
|
|
|
using "ui/widgets/widgets.style";
|
|
|
|
using "info/info.style";
|
2018-09-07 09:40:25 +00:00
|
|
|
using "boxes/boxes.style";
|
2018-09-05 19:05:49 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
settingsSectionButton: SettingsButton(infoProfileButton) {
|
2018-09-07 09:40:25 +00:00
|
|
|
font: boxTextFont;
|
2018-09-10 12:18:39 +00:00
|
|
|
padding: margins(79px, 13px, 22px, 11px);
|
2018-09-07 09:40:25 +00:00
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
settingsButton: SettingsButton(settingsSectionButton) {
|
2018-09-15 10:37:48 +00:00
|
|
|
padding: margins(22px, 10px, 22px, 8px);
|
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
settingsAttentionButton: SettingsButton(settingsButton) {
|
2018-11-07 09:39:31 +00:00
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
}
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsSectionSkip: 9px;
|
2018-09-13 20:09:26 +00:00
|
|
|
settingsSectionIconLeft: 22px;
|
2018-09-09 12:10:54 +00:00
|
|
|
settingsSeparatorPadding: margins(22px, infoProfileSkip, 0px, infoProfileSkip);
|
2018-09-15 10:37:48 +00:00
|
|
|
settingsButtonRightSkip: 28px;
|
2018-09-05 21:01:50 +00:00
|
|
|
settingsButtonRight: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowActiveTextFg;
|
2018-09-07 09:40:25 +00:00
|
|
|
style: boxTextStyle;
|
2018-09-17 10:52:34 +00:00
|
|
|
maxHeight: 20px;
|
2018-09-05 21:01:50 +00:00
|
|
|
}
|
2018-09-06 10:18:49 +00:00
|
|
|
settingsScalePadding: margins(79px, 10px, 28px, 8px);
|
2018-09-17 10:52:34 +00:00
|
|
|
settingsBigScalePadding: margins(22px, 10px, 22px, 8px);
|
2018-09-06 10:18:49 +00:00
|
|
|
settingsSlider: SettingsSlider(defaultSettingsSlider) {
|
2018-09-10 12:18:39 +00:00
|
|
|
barFg: windowBgOver;
|
2018-09-06 10:18:49 +00:00
|
|
|
labelFg: windowSubTextFg;
|
|
|
|
labelFgActive: windowActiveTextFg;
|
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
settingsUpdateToggle: SettingsButton(settingsButton) {
|
2018-09-10 12:18:39 +00:00
|
|
|
height: 40px;
|
2018-09-17 10:52:34 +00:00
|
|
|
padding: margins(22px, 8px, 22px, 8px);
|
2018-09-07 09:40:25 +00:00
|
|
|
}
|
|
|
|
settingsUpdateState: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2019-11-02 17:06:47 +00:00
|
|
|
settingsUpdate: SettingsButton(infoMainButton, settingsButton) {
|
2018-09-07 09:40:25 +00:00
|
|
|
}
|
2018-09-17 10:52:34 +00:00
|
|
|
settingsUpdateStatePosition: point(22px, 29px);
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsDividerLabelPadding: margins(22px, 10px, 22px, 19px);
|
2018-09-06 17:58:44 +00:00
|
|
|
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsIconInformation: icon {{ "settings_information", menuIconFg }};
|
|
|
|
settingsIconNotifications: icon {{ "settings_notifications", menuIconFg }};
|
|
|
|
settingsIconChat: icon {{ "settings_chat", menuIconFg }};
|
2018-09-20 16:47:02 +00:00
|
|
|
settingsIconGeneral: icon {{ "settings_advanced", menuIconFg }};
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsIconPrivacySecurity: icon {{ "settings_privacy_security", menuIconFg }};
|
|
|
|
settingsIconLanguage: icon {{ "settings_language", menuIconFg }};
|
|
|
|
settingsIconInterfaceScale: icon {{ "settings_interface_scale", menuIconFg }};
|
|
|
|
settingsIconFaq: icon {{ "settings_faq", menuIconFg }};
|
2018-09-28 11:20:36 +00:00
|
|
|
settingsIconStickers: icon {{ "settings_stickers", menuIconFg }};
|
2019-01-02 12:11:13 +00:00
|
|
|
settingsIconEmoji: icon {{ "settings_emoji", menuIconFg }};
|
2018-09-28 11:20:36 +00:00
|
|
|
settingsIconThemes: icon {{ "settings_themes", menuIconFg }};
|
2018-09-07 12:19:56 +00:00
|
|
|
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsSetPhotoSkip: 7px;
|
|
|
|
|
|
|
|
settingsCheckbox: Checkbox(defaultBoxCheckbox) {
|
|
|
|
textPosition: point(15px, 1px);
|
|
|
|
}
|
2018-09-07 12:19:56 +00:00
|
|
|
settingsCheckboxPadding: margins(22px, 10px, 10px, 10px);
|
2018-09-06 17:58:44 +00:00
|
|
|
settingsLink: boxLinkButton;
|
|
|
|
settingsAdvancedNotificationsPadding: margins(22px, 20px, 10px, 10px);
|
2018-09-07 12:19:56 +00:00
|
|
|
settingsLinkLabel: defaultFlatLabel;
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsCheckboxesSkip: 12px;
|
|
|
|
|
|
|
|
settingsSendType: settingsCheckbox;
|
|
|
|
settingsSendTypePadding: margins(22px, 5px, 10px, 5px);
|
|
|
|
settingsSendTypeSkip: 5px;
|
2018-09-07 12:19:56 +00:00
|
|
|
|
|
|
|
settingsBackgroundThumb: 76px;
|
|
|
|
settingsThumbSkip: 16px;
|
2018-09-09 12:10:54 +00:00
|
|
|
settingsSubsectionTitle: FlatLabel(defaultFlatLabel) {
|
2018-09-07 12:19:56 +00:00
|
|
|
style: TextStyle(semiboldTextStyle) {
|
|
|
|
font: font(boxFontSize semibold);
|
|
|
|
linkFont: font(boxFontSize semibold);
|
|
|
|
linkFontOver: font(boxFontSize semibold underline);
|
|
|
|
}
|
|
|
|
textFg: windowActiveTextFg;
|
2019-03-19 10:39:19 +00:00
|
|
|
minWidth: 240px;
|
2018-09-07 12:19:56 +00:00
|
|
|
}
|
2018-09-15 10:37:48 +00:00
|
|
|
settingsSubsectionTitlePadding: margins(22px, 7px, 10px, 9px);
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsBackgroundPadding: margins(22px, 11px, 10px, 12px);
|
|
|
|
settingsTileSkip: 15px;
|
2018-09-07 12:19:56 +00:00
|
|
|
settingsFromGalleryTop: 2px;
|
|
|
|
settingsFromFileTop: 14px;
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsPrivacySecurityPadding: 12px;
|
2018-09-15 10:37:48 +00:00
|
|
|
settingsPrivacySkip: 14px;
|
2018-09-09 12:10:54 +00:00
|
|
|
|
|
|
|
settingsCloudPasswordLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
style: boxTextStyle;
|
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
|
|
|
settingsCloudPasswordLabelPadding: margins(22px, 8px, 10px, 8px);
|
2018-09-09 17:38:08 +00:00
|
|
|
|
2018-09-13 20:09:26 +00:00
|
|
|
settingsInfoPhotoHeight: 175px;
|
|
|
|
settingsInfoPhotoSize: 84px;
|
|
|
|
settingsInfoPhoto: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(settingsInfoPhotoSize, settingsInfoPhotoSize);
|
|
|
|
photoSize: settingsInfoPhotoSize;
|
|
|
|
}
|
|
|
|
settingsInfoPhotoTop: 17px;
|
|
|
|
settingsInfoPhotoSkip: 16px;
|
|
|
|
settingsInfoPhotoSet: defaultActiveButton;
|
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
settingsInfoRow: SettingsButton(settingsButton) {
|
2018-09-13 20:09:26 +00:00
|
|
|
height: 62px;
|
|
|
|
padding: margins(0px, 0px, 0px, 0px);
|
|
|
|
}
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsInfoIconPosition: point(22px, 18px);
|
2018-09-09 17:38:08 +00:00
|
|
|
settingsInfoValue: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowFg;
|
|
|
|
style: boxTextStyle;
|
|
|
|
maxHeight: 20px;
|
|
|
|
}
|
|
|
|
settingsInfoValuePosition: point(78px, 14px);
|
|
|
|
settingsInfoAbout: FlatLabel(settingsInfoValue) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
style: defaultTextStyle;
|
|
|
|
}
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsInfoAboutPosition: point(78px, 34px);
|
2018-09-09 17:38:08 +00:00
|
|
|
settingsInfoRightSkip: 60px;
|
2018-09-13 20:09:26 +00:00
|
|
|
settingsInfoEditRight: 14px;
|
|
|
|
settingsInfoEditIconOver: icon {{ "settings_edit", menuIconFgOver }};
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsBio: InputField(defaultInputField) {
|
|
|
|
textBg: transparent;
|
2018-09-13 20:09:26 +00:00
|
|
|
textMargins: margins(0px, 7px, 0px, 13px);
|
2018-09-10 12:18:39 +00:00
|
|
|
|
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
|
|
|
placeholderMargins: margins(2px, 0px, 2px, 0px);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: normalFont;
|
|
|
|
|
|
|
|
heightMin: 32px;
|
|
|
|
|
|
|
|
font: boxTextFont;
|
2018-09-09 17:38:08 +00:00
|
|
|
}
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsInfoAfterSkip: 14px;
|
|
|
|
settingsInfoName: icon {{ "settings_name", menuIconFg }};
|
|
|
|
settingsInfoPhone: icon {{ "settings_phone_number", menuIconFg }};
|
|
|
|
settingsInfoUsername: icon {{ "settings_username", menuIconFg }};
|
2018-09-09 17:38:08 +00:00
|
|
|
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsBioMargins: margins(20px, 6px, 20px, 6px);
|
2018-09-09 17:38:08 +00:00
|
|
|
settingsBioCountdown: FlatLabel(defaultFlatLabel) {
|
|
|
|
style: boxTextStyle;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2018-09-13 20:09:26 +00:00
|
|
|
settingsBioLabelPadding: margins(22px, 11px, 22px, 0px);
|
2018-09-19 09:06:21 +00:00
|
|
|
|
|
|
|
settingsPrivacyEditLabelPadding: margins(22px, 11px, 22px, 11px);
|
2018-09-26 11:28:16 +00:00
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
settingsChatButton: SettingsButton(settingsSectionButton) {
|
2018-09-28 11:20:36 +00:00
|
|
|
padding: margins(59px, 13px, 22px, 11px);
|
|
|
|
}
|
|
|
|
settingsChatIconLeft: 19px;
|
|
|
|
|
|
|
|
settingsThemesTopSkip: 10px;
|
|
|
|
settingsThemesBottomSkip: 8px;
|
2018-09-26 11:28:16 +00:00
|
|
|
settingsTheme: Checkbox(defaultCheckbox) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
textFgActive: windowActiveTextFg;
|
|
|
|
|
|
|
|
width: 80px;
|
|
|
|
margin: margins(0px, 0px, 0px, 0px);
|
|
|
|
|
2019-09-04 11:20:07 +00:00
|
|
|
textPosition: point(0px, 99px);
|
2018-09-26 11:28:16 +00:00
|
|
|
checkPosition: point(0px, 0px);
|
|
|
|
|
|
|
|
style: defaultTextStyle;
|
|
|
|
|
|
|
|
disabledOpacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2019-09-04 11:20:07 +00:00
|
|
|
settingsThemePreviewSize: size(80px, 92px);
|
2018-09-26 11:28:16 +00:00
|
|
|
settingsThemeBubbleSize: size(40px, 14px);
|
|
|
|
settingsThemeBubbleRadius: 2px;
|
|
|
|
settingsThemeBubblePosition: point(6px, 8px);
|
2019-09-04 11:20:07 +00:00
|
|
|
settingsThemeBubbleSkip: 6px;
|
|
|
|
settingsThemeRadioBottom: 12px;
|
2018-09-26 11:28:16 +00:00
|
|
|
settingsThemeMinSkip: 4px;
|
2018-12-06 15:47:28 +00:00
|
|
|
|
2019-09-05 10:51:36 +00:00
|
|
|
settingsThemeNotSupportedBg: windowBgOver;
|
|
|
|
settingsThemeNotSupportedIcon: icon {{ "theme_preview", menuIconFg }};
|
|
|
|
|
2019-11-02 17:06:47 +00:00
|
|
|
autoDownloadLimitButton: SettingsButton(settingsButton) {
|
2018-12-06 15:47:28 +00:00
|
|
|
padding: margins(22px, 10px, 22px, 0px);
|
|
|
|
}
|
2019-01-05 11:08:02 +00:00
|
|
|
settingsAudioVolumeSlider: MediaSlider(defaultContinuousSlider) {
|
|
|
|
seekSize: size(15px, 15px);
|
|
|
|
}
|
|
|
|
settingsAudioVolumeSliderPadding: margins(23px, 5px, 20px, 10px);
|
|
|
|
settingsAudioVolumeLabel: LabelSimple(defaultLabelSimple) {
|
|
|
|
font: boxTextFont;
|
|
|
|
textFg: windowBoldFg;
|
|
|
|
}
|
|
|
|
settingsAudioVolumeLabelPadding: margins(22px, 11px, 22px, 11px);
|
|
|
|
settingsLevelMeterPadding: margins(23px, 10px, 20px, 10px);
|
2019-03-19 13:50:36 +00:00
|
|
|
|
|
|
|
settingsForwardPrivacyPadding: 8px;
|
|
|
|
settingsForwardPrivacyArrowSkip: 32px;
|
|
|
|
settingsForwardPrivacyArrowSize: 6px;
|
|
|
|
settingsForwardPrivacyTooltipPadding: margins(8px, 6px, 8px, 6px);
|
2019-08-23 16:00:24 +00:00
|
|
|
|
2019-08-27 15:26:59 +00:00
|
|
|
settingsAccentColorSize: 24px;
|
|
|
|
settingsAccentColorSkip: 4px;
|
|
|
|
settingsAccentColorLine: 3px;
|