tdesktop/Telegram/SourceFiles/settings/settings.style

218 lines
6.8 KiB
Plaintext
Raw Normal View History

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
settingsSectionButton: SettingsButton(infoProfileButton) {
2018-09-07 09:40:25 +00:00
font: boxTextFont;
padding: margins(79px, 13px, 22px, 11px);
2018-09-07 09:40:25 +00:00
}
settingsButton: SettingsButton(settingsSectionButton) {
padding: margins(22px, 10px, 22px, 8px);
}
settingsAttentionButton: SettingsButton(settingsButton) {
2018-11-07 09:39:31 +00:00
textFg: attentionButtonFg;
textFgOver: attentionButtonFgOver;
}
settingsSectionSkip: 9px;
2018-09-13 20:09:26 +00:00
settingsSectionIconLeft: 22px;
settingsSeparatorPadding: margins(22px, infoProfileSkip, 0px, infoProfileSkip);
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
}
settingsScalePadding: margins(79px, 10px, 28px, 8px);
2018-09-17 10:52:34 +00:00
settingsBigScalePadding: margins(22px, 10px, 22px, 8px);
settingsSlider: SettingsSlider(defaultSettingsSlider) {
barFg: windowBgOver;
labelFg: windowSubTextFg;
labelFgActive: windowActiveTextFg;
}
settingsUpdateToggle: SettingsButton(settingsButton) {
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;
}
settingsUpdate: SettingsButton(infoMainButton, settingsButton) {
2018-09-07 09:40:25 +00:00
}
2018-09-17 10:52:34 +00:00
settingsUpdateStatePosition: point(22px, 29px);
settingsDividerLabelPadding: margins(22px, 10px, 22px, 19px);
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 }};
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
settingsSetPhotoSkip: 7px;
settingsCheckbox: Checkbox(defaultBoxCheckbox) {
textPosition: point(15px, 1px);
}
2018-09-07 12:19:56 +00:00
settingsCheckboxPadding: margins(22px, 10px, 10px, 10px);
settingsLink: boxLinkButton;
settingsAdvancedNotificationsPadding: margins(22px, 20px, 10px, 10px);
2018-09-07 12:19:56 +00:00
settingsLinkLabel: defaultFlatLabel;
settingsCheckboxesSkip: 12px;
settingsSendType: settingsCheckbox;
settingsSendTypePadding: margins(22px, 5px, 10px, 5px);
settingsSendTypeSkip: 5px;
2018-09-07 12:19:56 +00:00
settingsBackgroundThumb: 76px;
settingsThumbSkip: 16px;
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;
minWidth: 240px;
2018-09-07 12:19:56 +00:00
}
settingsSubsectionTitlePadding: margins(22px, 7px, 10px, 9px);
settingsBackgroundPadding: margins(22px, 11px, 10px, 12px);
settingsTileSkip: 15px;
2018-09-07 12:19:56 +00:00
settingsFromGalleryTop: 2px;
settingsFromFileTop: 14px;
settingsPrivacySecurityPadding: 12px;
settingsPrivacySkip: 14px;
settingsCloudPasswordLabel: FlatLabel(defaultFlatLabel) {
textFg: windowSubTextFg;
style: boxTextStyle;
maxHeight: 20px;
}
settingsCloudPasswordLabelPadding: margins(22px, 8px, 10px, 8px);
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;
settingsInfoRow: SettingsButton(settingsButton) {
2018-09-13 20:09:26 +00:00
height: 62px;
padding: margins(0px, 0px, 0px, 0px);
}
settingsInfoIconPosition: point(22px, 18px);
settingsInfoValue: FlatLabel(defaultFlatLabel) {
textFg: windowFg;
style: boxTextStyle;
maxHeight: 20px;
}
settingsInfoValuePosition: point(78px, 14px);
settingsInfoAbout: FlatLabel(settingsInfoValue) {
textFg: windowSubTextFg;
style: defaultTextStyle;
}
settingsInfoAboutPosition: point(78px, 34px);
settingsInfoRightSkip: 60px;
2018-09-13 20:09:26 +00:00
settingsInfoEditRight: 14px;
settingsInfoEditIconOver: icon {{ "settings_edit", menuIconFgOver }};
settingsBio: InputField(defaultInputField) {
textBg: transparent;
2018-09-13 20:09:26 +00:00
textMargins: margins(0px, 7px, 0px, 13px);
placeholderFg: placeholderFg;
placeholderFgActive: placeholderFgActive;
placeholderFgError: placeholderFgActive;
placeholderMargins: margins(2px, 0px, 2px, 0px);
placeholderScale: 0.;
placeholderFont: normalFont;
heightMin: 32px;
font: boxTextFont;
}
settingsInfoAfterSkip: 14px;
settingsInfoName: icon {{ "settings_name", menuIconFg }};
settingsInfoPhone: icon {{ "settings_phone_number", menuIconFg }};
settingsInfoUsername: icon {{ "settings_username", menuIconFg }};
settingsBioMargins: margins(20px, 6px, 20px, 6px);
settingsBioCountdown: FlatLabel(defaultFlatLabel) {
style: boxTextStyle;
textFg: windowSubTextFg;
}
2018-09-13 20:09:26 +00:00
settingsBioLabelPadding: margins(22px, 11px, 22px, 0px);
settingsPrivacyEditLabelPadding: margins(22px, 11px, 22px, 11px);
settingsChatButton: SettingsButton(settingsSectionButton) {
2018-09-28 11:20:36 +00:00
padding: margins(59px, 13px, 22px, 11px);
}
settingsChatIconLeft: 19px;
settingsThemesTopSkip: 10px;
settingsThemesBottomSkip: 8px;
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);
checkPosition: point(0px, 0px);
style: defaultTextStyle;
disabledOpacity: 0.5;
}
2019-09-04 11:20:07 +00:00
settingsThemePreviewSize: size(80px, 92px);
settingsThemeBubbleSize: size(40px, 14px);
settingsThemeBubbleRadius: 2px;
settingsThemeBubblePosition: point(6px, 8px);
2019-09-04 11:20:07 +00:00
settingsThemeBubbleSkip: 6px;
settingsThemeRadioBottom: 12px;
settingsThemeMinSkip: 4px;
2018-12-06 15:47:28 +00:00
settingsThemeNotSupportedBg: windowBgOver;
settingsThemeNotSupportedIcon: icon {{ "theme_preview", menuIconFg }};
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);
settingsForwardPrivacyPadding: 8px;
settingsForwardPrivacyArrowSkip: 32px;
settingsForwardPrivacyArrowSize: 6px;
settingsForwardPrivacyTooltipPadding: margins(8px, 6px, 8px, 6px);
2019-08-27 15:26:59 +00:00
settingsAccentColorSize: 24px;
settingsAccentColorSkip: 4px;
settingsAccentColorLine: 3px;