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
|
|
|
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsButton: SettingsButton(infoProfileButton) {
|
2022-03-01 09:51:22 +00:00
|
|
|
style: boxTextStyle;
|
2022-02-09 10:43:07 +00:00
|
|
|
padding: margins(60px, 10px, 22px, 10px);
|
|
|
|
iconLeft: 20px;
|
2018-09-07 09:40:25 +00:00
|
|
|
}
|
2022-12-19 14:36:02 +00:00
|
|
|
settingsButtonLight: SettingsButton(settingsButton) {
|
|
|
|
textFg: lightButtonFg;
|
|
|
|
textFgOver: lightButtonFgOver;
|
|
|
|
}
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsButtonNoIcon: SettingsButton(settingsButton) {
|
2018-09-15 10:37:48 +00:00
|
|
|
padding: margins(22px, 10px, 22px, 8px);
|
|
|
|
}
|
2023-01-30 14:01:10 +00:00
|
|
|
settingsButtonNoIconLocked : SettingsButton(settingsButtonNoIcon) {
|
|
|
|
toggle: Toggle(infoProfileToggle) {
|
|
|
|
lockIcon: icon {{ "info/info_rights_lock", menuIconFg }};
|
|
|
|
}
|
|
|
|
toggleOver: Toggle(infoProfileToggleOver) {
|
|
|
|
lockIcon: icon {{ "info/info_rights_lock", menuIconFgOver }};
|
|
|
|
}
|
|
|
|
}
|
2022-05-03 17:57:23 +00:00
|
|
|
settingsButtonActive: SettingsButton(infoMainButton, settingsButton) {
|
|
|
|
}
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsAttentionButton: SettingsButton(settingsButtonNoIcon) {
|
2018-11-07 09:39:31 +00:00
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
}
|
2022-12-19 14:36:02 +00:00
|
|
|
settingsAttentionButtonWithIcon: SettingsButton(settingsButton) {
|
|
|
|
textFg: attentionButtonFg;
|
|
|
|
textFgOver: attentionButtonFgOver;
|
|
|
|
}
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsOptionDisabled: SettingsButton(settingsButtonNoIcon) {
|
2022-02-02 12:33:41 +00:00
|
|
|
textFg: windowSubTextFg;
|
|
|
|
textFgOver: windowSubTextFg;
|
|
|
|
textBg: windowBg;
|
|
|
|
textBgOver: windowBg;
|
|
|
|
toggleOver: infoProfileToggle;
|
|
|
|
}
|
2022-02-09 10:43:07 +00:00
|
|
|
settingsSectionSkip: 6px;
|
2022-02-08 17:49:58 +00:00
|
|
|
settingsButtonRightSkip: 23px;
|
2023-01-05 10:48:46 +00:00
|
|
|
settingsScalePadding: margins(60px, 7px, 22px, 4px);
|
2022-02-09 10:43:07 +00:00
|
|
|
settingsBigScalePadding: margins(21px, 7px, 21px, 4px);
|
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;
|
|
|
|
}
|
2023-01-05 10:48:46 +00:00
|
|
|
settingsScale: MediaSlider(defaultContinuousSlider) {
|
|
|
|
seekSize: size(15px, 15px);
|
|
|
|
}
|
|
|
|
settingsScaleLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowActiveTextFg;
|
|
|
|
}
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsUpdateToggle: SettingsButton(settingsButtonNoIcon) {
|
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;
|
|
|
|
}
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsUpdate: SettingsButton(infoMainButton, settingsButtonNoIcon) {
|
2018-09-07 09:40:25 +00:00
|
|
|
}
|
2018-09-17 10:52:34 +00:00
|
|
|
settingsUpdateStatePosition: point(22px, 29px);
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsDividerLabelPadding: margins(22px, 8px, 22px, 16px);
|
2018-09-06 17:58:44 +00:00
|
|
|
|
2022-02-09 10:43:07 +00:00
|
|
|
settingsIconChat: icon {{ "settings/chat", settingsIconFg }};
|
|
|
|
settingsIconInterfaceScale: icon {{ "settings/interface_scale", settingsIconFg }};
|
|
|
|
settingsIconStickers: icon {{ "settings/stickers", settingsIconFg }};
|
|
|
|
settingsIconEmoji: icon {{ "settings/emoji", settingsIconFg }};
|
2018-09-07 12:19:56 +00:00
|
|
|
|
2023-08-04 06:07:37 +00:00
|
|
|
settingsPremiumIconStories: icon {{ "settings/stories", settingsIconFg }};
|
2022-05-18 18:53:25 +00:00
|
|
|
settingsPremiumIconChannelsOff: icon {{ "settings/premium/channels_off", settingsIconFg }};
|
|
|
|
settingsPremiumIconDouble: icon {{ "settings/premium/double", settingsIconFg }};
|
2022-09-07 15:52:36 +00:00
|
|
|
settingsPremiumIconStatus: icon {{ "settings/premium/status", settingsIconFg }};
|
2022-05-18 18:53:25 +00:00
|
|
|
settingsPremiumIconLike: icon {{ "settings/premium/like", settingsIconFg }};
|
|
|
|
settingsPremiumIconPlay: icon {{ "settings/premium/play", settingsIconFg }};
|
|
|
|
settingsPremiumIconSpeed: icon {{ "settings/premium/speed", settingsIconFg }};
|
|
|
|
settingsPremiumIconStar: icon {{ "settings/premium/star", settingsIconFg }};
|
|
|
|
settingsPremiumIconVoice: icon {{ "settings/premium/voice", settingsIconFg }};
|
2022-05-20 15:00:14 +00:00
|
|
|
settingsPremiumIconFiles: icon {{ "settings/premium/files", settingsIconFg }};
|
2023-01-30 10:10:42 +00:00
|
|
|
settingsPremiumIconTranslations: icon {{ "settings/premium/translations", settingsIconFg }};
|
2022-05-18 18:53:25 +00:00
|
|
|
|
2023-08-04 06:07:37 +00:00
|
|
|
settingsStoriesIconOrder: icon {{ "settings/premium/stories_order", premiumButtonBg1 }};
|
|
|
|
settingsStoriesIconStealth: icon {{ "menu/stealth", premiumButtonBg1 }};
|
|
|
|
settingsStoriesIconViews: icon {{ "menu/show_in_chat", premiumButtonBg1 }};
|
|
|
|
settingsStoriesIconExpiration: icon {{ "settings/premium/timer", premiumButtonBg1 }};
|
|
|
|
settingsStoriesIconDownload: icon {{ "menu/download", premiumButtonBg1 }};
|
|
|
|
settingsStoriesIconCaption: icon {{ "settings/premium/stories_caption", premiumButtonBg1 }};
|
2023-08-14 12:04:33 +00:00
|
|
|
settingsStoriesIconLinks: icon {{ "menu/links_profile", premiumButtonBg1 }};
|
2023-08-04 06:07:37 +00:00
|
|
|
|
2023-08-04 06:40:40 +00:00
|
|
|
settingsPremiumNewBadge: FlatLabel(defaultFlatLabel) {
|
|
|
|
style: TextStyle(semiboldTextStyle) {
|
|
|
|
font: font(10px semibold);
|
|
|
|
linkFont: font(10px semibold);
|
|
|
|
linkFontOver: font(10px semibold);
|
|
|
|
}
|
|
|
|
textFg: windowFgActive;
|
|
|
|
}
|
|
|
|
settingsPremiumNewBadgePosition: point(4px, 1px);
|
|
|
|
settingsPremiumNewBadgePadding: margins(4px, 1px, 4px, 1px);
|
|
|
|
|
2022-12-03 12:38:25 +00:00
|
|
|
settingsTTLChatsOff: icon {{ "settings/ttl/autodelete_off", windowSubTextFg }};
|
|
|
|
settingsTTLChatsOn: icon {{ "settings/ttl/autodelete_on", windowActiveTextFg }};
|
|
|
|
|
2022-05-03 17:57:23 +00:00
|
|
|
settingsIconAdd: icon {{ "settings/add", windowFgActive }};
|
|
|
|
settingsIconRemove: icon {{ "settings/remove", windowFgActive }};
|
2023-03-21 16:27:16 +00:00
|
|
|
settingsFolderShareIcon: icon {{ "settings/folder_links", lightButtonFg }};
|
2022-05-03 17:57:23 +00:00
|
|
|
|
2018-09-10 12:18:39 +00:00
|
|
|
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;
|
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
|
|
|
}
|
2021-02-08 18:14:51 +00:00
|
|
|
settingsSubsectionTitleRight: FlatLabel(settingsSubsectionTitle) {
|
|
|
|
minWidth: 0px;
|
|
|
|
}
|
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;
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsPrivacyOption: Checkbox(settingsCheckbox) {
|
|
|
|
textPosition: point(13px, 1px);
|
|
|
|
}
|
2018-09-10 12:18:39 +00:00
|
|
|
settingsPrivacySecurityPadding: 12px;
|
2018-09-15 10:37:48 +00:00
|
|
|
settingsPrivacySkip: 14px;
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsPrivacySkipTop: 4px;
|
2018-09-09 12:10:54 +00:00
|
|
|
|
2022-05-05 18:45:49 +00:00
|
|
|
settingsCloudPasswordIconSize: 100px;
|
2018-09-09 17:38:08 +00:00
|
|
|
|
2022-05-03 23:50:54 +00:00
|
|
|
settingLocalPasscodeInputField: InputField(defaultInputField) {
|
|
|
|
width: 256px;
|
|
|
|
}
|
|
|
|
settingLocalPasscodeDescription: FlatLabel(changePhoneDescription) {
|
|
|
|
minWidth: 256px;
|
|
|
|
}
|
2022-05-11 23:27:46 +00:00
|
|
|
settingLocalPasscodeDescriptionHeight: 52px;
|
2022-05-03 23:50:54 +00:00
|
|
|
settingLocalPasscodeError: FlatLabel(changePhoneError) {
|
|
|
|
minWidth: 256px;
|
|
|
|
}
|
|
|
|
settingLocalPasscodeDescriptionBottomSkip: 15px;
|
|
|
|
settingLocalPasscodeIconPadding: margins(0px, 19px, 0px, 5px);
|
2022-05-04 20:03:42 +00:00
|
|
|
settingLocalPasscodeButtonPadding: margins(0px, 19px, 0px, 35px);
|
2022-05-03 23:50:54 +00:00
|
|
|
|
2022-03-15 11:12:49 +00:00
|
|
|
settingsInfoPhotoHeight: 161px;
|
|
|
|
settingsInfoPhotoSize: 100px;
|
2018-09-13 20:09:26 +00:00
|
|
|
settingsInfoPhoto: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(settingsInfoPhotoSize, settingsInfoPhotoSize);
|
|
|
|
photoSize: settingsInfoPhotoSize;
|
|
|
|
}
|
2022-03-15 11:12:49 +00:00
|
|
|
settingsInfoPhotoTop: 0px;
|
|
|
|
settingsInfoPhotoSkip: 7px;
|
|
|
|
settingsInfoNameSkip: -1px;
|
2022-03-15 12:35:28 +00:00
|
|
|
settingsInfoUploadLeft: 6px;
|
2022-08-11 17:22:21 +00:00
|
|
|
settingsInfoPeerBadge: InfoPeerBadge {
|
2022-08-11 17:56:07 +00:00
|
|
|
premium: icon {{ "dialogs/dialogs_premium", dialogsVerifiedIconBg }};
|
2022-08-31 08:29:09 +00:00
|
|
|
premiumFg: dialogsVerifiedIconBg;
|
2022-08-11 17:22:21 +00:00
|
|
|
sizeTag: 0; // Normal
|
|
|
|
}
|
2018-09-13 20:09:26 +00:00
|
|
|
|
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;
|
|
|
|
|
2022-03-15 11:12:49 +00:00
|
|
|
border: 0px;
|
|
|
|
borderActive: 0px;
|
|
|
|
|
2018-09-10 12:18:39 +00:00
|
|
|
heightMin: 32px;
|
|
|
|
|
|
|
|
font: boxTextFont;
|
2018-09-09 17:38:08 +00:00
|
|
|
}
|
|
|
|
|
2022-03-15 11:12:49 +00:00
|
|
|
settingsBioMargins: margins(22px, 6px, 22px, 4px);
|
2018-09-09 17:38:08 +00:00
|
|
|
settingsBioCountdown: FlatLabel(defaultFlatLabel) {
|
|
|
|
style: boxTextStyle;
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2022-03-15 11:12:49 +00:00
|
|
|
|
|
|
|
settingsCoverName: FlatLabel(defaultFlatLabel) {
|
2022-03-16 07:20:39 +00:00
|
|
|
maxHeight: 24px;
|
2022-03-15 11:12:49 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(17px semibold);
|
|
|
|
linkFont: font(17px semibold);
|
|
|
|
linkFontOver: font(17px semibold);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
settingsCoverStatus: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
2018-09-19 09:06:21 +00:00
|
|
|
|
2018-09-28 11:20:36 +00:00
|
|
|
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 }};
|
|
|
|
|
2023-04-19 09:33:07 +00:00
|
|
|
chatThemeTitlePadding: margins(22px, 13px, 22px, 9px);
|
|
|
|
chatThemePreviewSize: size(80px, 108px);
|
|
|
|
chatThemeBubbleSize: size(48px, 22px);
|
|
|
|
chatThemeBubbleRadius: 10px;
|
|
|
|
chatThemeBubblePosition: point(6px, 12px);
|
|
|
|
chatThemeBubbleSkip: 6px;
|
|
|
|
chatThemeEntrySkip: 10px;
|
|
|
|
chatThemeEntryMargin: margins(16px, 10px, 16px, 8px);
|
|
|
|
chatThemeEmptyPreviewTop: 16px;
|
|
|
|
chatThemeEmojiBottom: 12px;
|
|
|
|
chatThemeButtonMargin: margins(10px, 0px, 10px, 8px);
|
|
|
|
|
2022-02-13 13:30:43 +00:00
|
|
|
autoDownloadLimitButton: SettingsButton(settingsButtonNoIcon) {
|
2018-12-06 15:47:28 +00:00
|
|
|
padding: margins(22px, 10px, 22px, 0px);
|
|
|
|
}
|
2020-04-29 08:08:34 +00:00
|
|
|
settingsLevelMeterPadding: margins(22px, 10px, 20px, 10px);
|
2019-03-19 13:50:36 +00:00
|
|
|
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsForwardPrivacyPadding: 10px;
|
2019-03-19 13:50:36 +00:00
|
|
|
settingsForwardPrivacyArrowSkip: 32px;
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsForwardPrivacyArrowSize: 7px;
|
|
|
|
settingsForwardPrivacyTooltipPadding: margins(12px, 7px, 12px, 7px);
|
2019-08-23 16:00:24 +00:00
|
|
|
|
2019-08-27 15:26:59 +00:00
|
|
|
settingsAccentColorSize: 24px;
|
|
|
|
settingsAccentColorSkip: 4px;
|
|
|
|
settingsAccentColorLine: 3px;
|
2020-02-04 23:50:29 +00:00
|
|
|
|
2022-05-02 21:51:22 +00:00
|
|
|
settingsFilterDividerLabel: FlatLabel(boxDividerLabel) {
|
|
|
|
minWidth: 258px;
|
|
|
|
maxHeight: 0px;
|
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
settingsFilterDividerLabelPadding: margins(0px, 16px, 0px, 22px);
|
|
|
|
settingsFilterIconSize: 74px;
|
|
|
|
settingsFilterIconPadding: margins(0px, 17px, 0px, 5px);
|
2020-03-24 10:49:50 +00:00
|
|
|
|
2021-11-25 15:46:37 +00:00
|
|
|
settingsDeviceName: InputField(defaultInputField) {
|
|
|
|
textBg: transparent;
|
|
|
|
textMargins: margins(1px, 3px, 1px, 4px);
|
|
|
|
|
|
|
|
placeholderFg: placeholderFg;
|
|
|
|
placeholderFgActive: placeholderFgActive;
|
|
|
|
placeholderFgError: placeholderFgActive;
|
|
|
|
placeholderMargins: margins(1px, 0px, 1px, 0px);
|
|
|
|
placeholderScale: 0.;
|
|
|
|
placeholderFont: normalFont;
|
|
|
|
|
|
|
|
heightMin: 29px;
|
|
|
|
|
|
|
|
font: boxTextFont;
|
|
|
|
}
|
|
|
|
|
2020-02-04 23:50:29 +00:00
|
|
|
dictionariesSectionButton: SettingsButton(settingsUpdateToggle) {
|
2022-03-01 09:51:22 +00:00
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(14px semibold);
|
|
|
|
linkFont: font(14px semibold);
|
|
|
|
linkFontOver: font(14px semibold underline);
|
|
|
|
}
|
2020-02-04 23:50:29 +00:00
|
|
|
}
|
2021-11-30 12:06:41 +00:00
|
|
|
|
|
|
|
sessionsScroll: boxScroll;
|
|
|
|
sessionsHeight: 350px;
|
2021-11-30 16:38:47 +00:00
|
|
|
sessionLocationTop: 54px;
|
2021-11-30 12:06:41 +00:00
|
|
|
sessionCurrentSkip: 8px;
|
|
|
|
sessionSubtitleSkip: 14px;
|
|
|
|
sessionInfoFg: windowSubTextFg;
|
2023-08-18 15:03:50 +00:00
|
|
|
sessionTerminateTop: 8px;
|
|
|
|
sessionTerminateSkip: 11px;
|
2021-11-30 12:06:41 +00:00
|
|
|
sessionTerminate: IconButton {
|
2023-08-18 15:03:50 +00:00
|
|
|
width: 34px;
|
|
|
|
height: 34px;
|
2021-11-30 12:06:41 +00:00
|
|
|
|
|
|
|
icon: smallCloseIcon;
|
|
|
|
iconOver: smallCloseIconOver;
|
2023-08-18 15:03:50 +00:00
|
|
|
iconPosition: point(12px, 12px);
|
2021-11-30 12:06:41 +00:00
|
|
|
}
|
|
|
|
sessionIconWindows: icon{{ "settings/devices/device_desktop_win", historyPeerUserpicFg }};
|
|
|
|
sessionIconMac: icon{{ "settings/devices/device_desktop_mac", historyPeerUserpicFg }};
|
|
|
|
sessionIconUbuntu: icon{{ "settings/devices/device_linux_ubuntu", historyPeerUserpicFg }};
|
|
|
|
sessionIconLinux: icon{{ "settings/devices/device_linux", historyPeerUserpicFg }};
|
|
|
|
sessionIconiPhone: icon{{ "settings/devices/device_phone_ios", historyPeerUserpicFg }};
|
|
|
|
sessionIconiPad: icon{{ "settings/devices/device_tablet_ios", historyPeerUserpicFg }};
|
|
|
|
sessionIconAndroid: icon{{ "settings/devices/device_phone_android", historyPeerUserpicFg }};
|
|
|
|
sessionIconWeb: icon{{ "settings/devices/device_web_other", historyPeerUserpicFg }};
|
|
|
|
sessionIconChrome: icon{{ "settings/devices/device_web_chrome", historyPeerUserpicFg }};
|
|
|
|
sessionIconEdge: icon{{ "settings/devices/device_web_edge", historyPeerUserpicFg }};
|
|
|
|
sessionIconFirefox: icon{{ "settings/devices/device_web_firefox", historyPeerUserpicFg }};
|
|
|
|
sessionIconSafari: icon{{ "settings/devices/device_web_safari", historyPeerUserpicFg }};
|
|
|
|
sessionIconOther: icon{{ "settings/devices/device_other", historyPeerUserpicFg }};
|
|
|
|
sessionBigUserpicSize: 70px;
|
|
|
|
sessionBigLottieSize: 52px;
|
|
|
|
sessionBigIconOther: icon{{ "settings/devices/device_other_large", historyPeerUserpicFg }};
|
|
|
|
sessionBigIconWeb: icon{{ "settings/devices/device_web_other_large", historyPeerUserpicFg }};
|
|
|
|
sessionBigCoverPadding: margins(0px, 18px, 0px, 7px);
|
|
|
|
sessionBigName: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: boxTitleFg;
|
|
|
|
maxHeight: 29px;
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(20px semibold);
|
|
|
|
linkFont: font(20px semibold);
|
|
|
|
linkFontOver: font(20px semibold underline);
|
|
|
|
}
|
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
sessionDateLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
sessionDateSkip: 19px;
|
2023-08-18 15:03:50 +00:00
|
|
|
sessionValuePadding: margins(37px, 5px, 0px, 0px);
|
2021-11-30 12:06:41 +00:00
|
|
|
sessionValueLabel: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
sessionValueSkip: 8px;
|
2023-08-18 15:03:50 +00:00
|
|
|
sessionValueIconPosition: point(20px, 9px);
|
2021-11-30 16:38:47 +00:00
|
|
|
|
|
|
|
sessionListItem: PeerListItem(defaultPeerListItem) {
|
|
|
|
button: OutlineButton(defaultPeerListButton) {
|
|
|
|
font: normalFont;
|
|
|
|
padding: margins(11px, 5px, 11px, 5px);
|
|
|
|
}
|
|
|
|
height: 84px;
|
|
|
|
photoPosition: point(21px, 10px);
|
|
|
|
nameStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: msgNameFont;
|
|
|
|
}
|
2022-02-25 13:11:49 +00:00
|
|
|
namePosition: point(78px, 11px);
|
|
|
|
statusPosition: point(78px, 32px);
|
2021-11-30 16:38:47 +00:00
|
|
|
photoSize: 42px;
|
|
|
|
statusFg: boxTextFg;
|
|
|
|
statusFgOver: boxTextFg;
|
|
|
|
}
|
|
|
|
sessionList: PeerList(defaultPeerList) {
|
|
|
|
item: sessionListItem;
|
|
|
|
padding: margins(0px, 4px, 0px, 0px);
|
|
|
|
}
|
2023-08-18 15:03:50 +00:00
|
|
|
websiteListItem: PeerListItem(sessionListItem) {
|
|
|
|
height: 72px;
|
|
|
|
photoPosition: point(18px, 10px);
|
|
|
|
namePosition: point(64px, 6px);
|
|
|
|
statusPosition: point(64px, 26px);
|
|
|
|
photoSize: 32px;
|
|
|
|
}
|
|
|
|
websiteList: PeerList(sessionList) {
|
|
|
|
item: websiteListItem;
|
|
|
|
}
|
|
|
|
websiteLocationTop: 46px;
|
|
|
|
websiteBigUserpic: UserpicButton(defaultUserpicButton) {
|
|
|
|
size: size(70px, 70px);
|
|
|
|
photoSize: 70px;
|
|
|
|
}
|
2022-02-08 17:25:24 +00:00
|
|
|
|
|
|
|
settingsPhotoLeft: 22px;
|
|
|
|
settingsPhotoTop: 8px;
|
|
|
|
settingsPhotoBottom: 16px;
|
|
|
|
settingsNameLeft: 112px;
|
|
|
|
settingsNameTop: 12px;
|
|
|
|
settingsPhoneLeft: settingsNameLeft;
|
|
|
|
settingsPhoneTop: 37px;
|
|
|
|
settingsUsernameLeft: settingsNameLeft;
|
|
|
|
settingsUsernameTop: 58px;
|
2022-02-13 13:30:43 +00:00
|
|
|
settingsPeerToPeerSkip: 9px;
|
2022-02-09 10:43:07 +00:00
|
|
|
|
|
|
|
settingsIconRadius: 6px;
|
2022-03-08 11:23:21 +00:00
|
|
|
|
2022-04-14 05:45:52 +00:00
|
|
|
settingsReactionSize: 25px;
|
|
|
|
settingsReactionRightSkip: 0px;
|
2022-04-12 21:05:21 +00:00
|
|
|
settingsReactionCornerSize: size(28px, 22px);
|
|
|
|
settingsReactionCornerSkip: point(11px, -6px);
|
2022-04-14 05:45:52 +00:00
|
|
|
settingsReactionMessageSize: 18px;
|
2022-04-12 21:05:21 +00:00
|
|
|
|
2022-04-14 05:45:52 +00:00
|
|
|
settingsReactionRightIcon: 20px;
|
2022-04-13 16:20:30 +00:00
|
|
|
|
2022-03-08 11:23:21 +00:00
|
|
|
notifyPreviewMargins: margins(40px, 20px, 40px, 58px);
|
|
|
|
notifyPreviewUserpicSize: 36px;
|
|
|
|
notifyPreviewUserpicPosition: point(14px, 11px);
|
|
|
|
notifyPreviewTitlePosition: point(64px, 9px);
|
|
|
|
notifyPreviewTextPosition: point(64px, 30px);
|
|
|
|
notifyPreviewChecksSkip: 12px;
|
|
|
|
notifyPreviewBottomSkip: 9px;
|
2022-05-18 18:53:25 +00:00
|
|
|
|
2022-05-23 08:04:31 +00:00
|
|
|
settingsPremiumButtonPadding: margins(11px, 11px, 11px, 3px);
|
2022-05-22 23:06:35 +00:00
|
|
|
settingsPremiumTopBarBackIcon: icon {{ "info/info_back", premiumButtonFg }};
|
|
|
|
settingsPremiumTopBarBackIconOver: icon {{ "info/info_back", premiumButtonFg }};
|
2022-08-23 18:07:00 +00:00
|
|
|
settingsPremiumStarSize: size(84px, 81px);
|
|
|
|
settingsPremiumStarTopSkip: 37px;
|
2022-05-22 23:06:35 +00:00
|
|
|
settingsPremiumTopBarBack: IconButton(infoTopBarBack) {
|
|
|
|
icon: settingsPremiumTopBarBackIcon;
|
|
|
|
iconOver: settingsPremiumTopBarBackIconOver;
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
2022-08-23 20:32:47 +00:00
|
|
|
color: callMuteRipple;
|
2022-05-22 23:06:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
settingsPremiumLayerTopBarBack: IconButton(infoLayerTopBarBack) {
|
|
|
|
icon: settingsPremiumTopBarBackIcon;
|
2022-06-15 15:31:13 +00:00
|
|
|
iconOver: settingsPremiumTopBarBackIconOver;
|
2022-05-22 23:06:35 +00:00
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
2022-08-23 20:32:47 +00:00
|
|
|
color: callMuteRipple;
|
2022-05-22 23:06:35 +00:00
|
|
|
}
|
|
|
|
}
|
2022-05-23 00:00:13 +00:00
|
|
|
settingsPremiumTopBarClose: IconButton(infoTopBarClose) {
|
|
|
|
icon: icon {{ "info/info_close", premiumButtonFg }};
|
|
|
|
iconOver: icon {{ "info/info_close", premiumButtonFg }};
|
|
|
|
ripple: RippleAnimation(defaultRippleAnimation) {
|
2022-08-23 20:32:47 +00:00
|
|
|
color: callMuteRipple;
|
2022-05-23 00:00:13 +00:00
|
|
|
}
|
|
|
|
}
|
2022-06-15 15:31:13 +00:00
|
|
|
settingsPremiumMoveLeft: IconButton(settingsPremiumLayerTopBarBack) {
|
|
|
|
width: 52px;
|
|
|
|
height: 56px;
|
|
|
|
iconPosition: point(-1px, -1px);
|
|
|
|
}
|
|
|
|
settingsPremiumMoveRightIcon: icon {{ "info/info_back-flip_horizontal", premiumButtonFg }};
|
|
|
|
settingsPremiumMoveRightIconOver: icon {{ "info/info_back-flip_horizontal", premiumButtonFg }};
|
|
|
|
settingsPremiumMoveRight: IconButton(settingsPremiumMoveLeft) {
|
|
|
|
icon: settingsPremiumMoveRightIcon;
|
|
|
|
iconOver: settingsPremiumMoveRightIconOver;
|
|
|
|
}
|
2022-08-24 22:01:04 +00:00
|
|
|
settingsPremiumRowTitlePadding: margins(59px, 5px, 46px, 1px);
|
|
|
|
settingsPremiumRowAboutPadding: margins(59px, 0px, 46px, 6px);
|
2022-06-13 11:27:20 +00:00
|
|
|
settingsPremiumPreviewTitlePadding: margins(24px, 13px, 24px, 3px);
|
|
|
|
settingsPremiumPreviewAboutPadding: margins(24px, 0px, 24px, 11px);
|
|
|
|
settingsPremiumPreviewLinePadding: margins(18px, 0px, 18px, 8px);
|
2023-08-04 06:07:37 +00:00
|
|
|
settingsPremiumPreviewIconTitlePadding: margins(62px, 13px, 24px, 1px);
|
|
|
|
settingsPremiumPreviewIconAboutPadding: margins(62px, 0px, 24px, 0px);
|
|
|
|
settingsPremiumPreviewIconPosition: point(20px, 7px);
|
2022-05-24 11:37:05 +00:00
|
|
|
|
2022-08-24 22:01:04 +00:00
|
|
|
settingsPremiumTitlePadding: margins(0px, 18px, 0px, 11px);
|
2022-08-23 18:07:00 +00:00
|
|
|
settingsPremiumAboutTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(12px);
|
|
|
|
linkFont: font(12px underline);
|
|
|
|
linkFontOver: font(12px underline);
|
|
|
|
lineHeight: 18px;
|
|
|
|
}
|
2022-06-13 09:27:38 +00:00
|
|
|
settingsPremiumAbout: FlatLabel(defaultFlatLabel) {
|
2022-08-23 18:07:00 +00:00
|
|
|
style: settingsPremiumAboutTextStyle;
|
2022-06-13 09:27:38 +00:00
|
|
|
palette: TextPalette(defaultTextPalette) {
|
|
|
|
linkFg: premiumButtonFg;
|
|
|
|
}
|
|
|
|
align: align(top);
|
|
|
|
textFg: premiumButtonFg;
|
|
|
|
minWidth: 190px;
|
2022-05-24 11:37:05 +00:00
|
|
|
}
|
2022-09-01 20:28:25 +00:00
|
|
|
settingsPremiumArrowShift: point(-5px, -1px);
|
|
|
|
settingsPremiumArrow: icon{{ "settings/premium/arrow", menuIconFg }};
|
|
|
|
settingsPremiumArrowOver: icon{{ "settings/premium/arrow", menuIconFgOver }};
|
2022-07-22 03:38:19 +00:00
|
|
|
|
2022-08-25 17:30:10 +00:00
|
|
|
settingsPremiumOptionsPadding: margins(0px, 9px, 0px, 2px);
|
2022-08-24 22:01:04 +00:00
|
|
|
settingsPremiumTopHeight: 220px;
|
2022-08-23 18:07:00 +00:00
|
|
|
settingsPremiumUserHeight: 223px;
|
|
|
|
settingsPremiumUserTitlePadding: margins(0px, 16px, 0px, 6px);
|
|
|
|
settingsPremiumUserTitle: FlatLabel(boxTitle) {
|
|
|
|
style: TextStyle(defaultTextStyle) {
|
|
|
|
font: boxTitleFont;
|
|
|
|
linkFont: boxTitleFont;
|
|
|
|
linkFontOver: font(16px semibold underline);
|
|
|
|
lineHeight: 14px;
|
|
|
|
}
|
|
|
|
minWidth: 300px;
|
|
|
|
maxHeight: 0px;
|
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
settingsPremiumUserAbout: FlatLabel(boxDividerLabel) {
|
|
|
|
style: settingsPremiumAboutTextStyle;
|
|
|
|
minWidth: 315px;
|
|
|
|
maxHeight: 0px;
|
|
|
|
align: align(top);
|
|
|
|
}
|
|
|
|
|
2022-07-22 03:38:19 +00:00
|
|
|
settingsPremiumLock: icon{{ "emoji/premium_lock", windowActiveTextFg, point(0px, 1px) }};
|
|
|
|
settingsPremiumLockSkip: 3px;
|
2023-01-12 12:27:50 +00:00
|
|
|
|
2023-02-09 09:05:21 +00:00
|
|
|
settingsBlockedListSubtitleAddPadding: margins(0px, 1px, 0px, -4px);
|
2023-08-23 09:23:28 +00:00
|
|
|
settingsBlockedListIconPadding: margins(0px, 24px, 0px, 5px);
|
2023-02-09 09:05:21 +00:00
|
|
|
settingsBlockedList: PeerList(peerListBox) {
|
|
|
|
padding: margins(0px, 0px, 0px, membersMarginBottom);
|
|
|
|
}
|
2023-08-23 09:23:28 +00:00
|
|
|
settingsBlockedHeightMin: 240px;
|
2023-02-09 09:05:21 +00:00
|
|
|
|
2023-08-22 17:13:21 +00:00
|
|
|
settingsNotificationType: SettingsButton(settingsButton) {
|
|
|
|
height: 40px;
|
|
|
|
padding: margins(60px, 4px, 22px, 4px);
|
|
|
|
}
|
|
|
|
settingsNotificationTypeDetails: FlatLabel(defaultFlatLabel) {
|
|
|
|
textFg: windowSubTextFg;
|
|
|
|
}
|
|
|
|
|
2023-01-12 12:27:50 +00:00
|
|
|
requestPeerRestriction: FlatLabel(defaultFlatLabel) {
|
|
|
|
minWidth: 240px;
|
|
|
|
textFg: membersAboutLimitFg;
|
|
|
|
style: TextStyle(boxTextStyle) {
|
|
|
|
lineHeight: 22px;
|
|
|
|
}
|
|
|
|
}
|
2023-02-25 12:17:48 +00:00
|
|
|
|
|
|
|
powerSavingButton: SettingsButton(settingsButton) {
|
|
|
|
style: boxTextStyle;
|
|
|
|
padding: margins(57px, 8px, 22px, 8px);
|
|
|
|
iconLeft: 20px;
|
|
|
|
}
|
|
|
|
powerSavingButtonNoIcon: SettingsButton(powerSavingButton) {
|
|
|
|
padding: margins(22px, 8px, 22px, 8px);
|
|
|
|
}
|
|
|
|
powerSavingSubtitlePadding: margins(0px, 4px, 0px, -2px);
|
2023-03-28 14:14:53 +00:00
|
|
|
|
|
|
|
filterInviteBox: Box(defaultBox) {
|
2023-03-29 13:23:21 +00:00
|
|
|
buttonPadding: margins(10px, 9px, 10px, 9px);
|
|
|
|
buttonHeight: 42px;
|
2023-03-28 14:14:53 +00:00
|
|
|
button: RoundButton(defaultActiveButton) {
|
2023-03-29 13:23:21 +00:00
|
|
|
height: 42px;
|
2023-03-28 14:14:53 +00:00
|
|
|
textTop: 12px;
|
|
|
|
font: font(13px semibold);
|
|
|
|
}
|
|
|
|
}
|
2023-03-29 13:23:21 +00:00
|
|
|
filterInviteButtonStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(13px semibold);
|
|
|
|
linkFont: font(13px underline);
|
|
|
|
linkFontOver: font(13px underline);
|
|
|
|
}
|
|
|
|
filterInviteButtonBadgeStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(12px semibold);
|
|
|
|
linkFont: font(12px underline);
|
|
|
|
linkFontOver: font(12px underline);
|
|
|
|
}
|
|
|
|
filterInviteButtonBadgePadding: margins(5px, 0px, 5px, 2px);
|
|
|
|
filterInviteButtonBadgeSkip: 5px;
|
2023-03-30 13:51:52 +00:00
|
|
|
filterLinkDividerLabelPadding: margins(0px, 10px, 0px, 17px);
|
2023-03-29 13:23:21 +00:00
|
|
|
filterLinkTitlePadding: margins(0px, 15px, 0px, 17px);
|
|
|
|
filterLinkAboutTextStyle: TextStyle(defaultTextStyle) {
|
|
|
|
font: font(12px);
|
|
|
|
linkFont: font(12px underline);
|
|
|
|
linkFontOver: font(12px underline);
|
|
|
|
lineHeight: 17px;
|
|
|
|
}
|
|
|
|
filterLinkAbout: FlatLabel(defaultFlatLabel) {
|
|
|
|
style: filterLinkAboutTextStyle;
|
|
|
|
align: align(top);
|
|
|
|
minWidth: 190px;
|
|
|
|
}
|
|
|
|
filterLinkAboutTop: 170px;
|
|
|
|
filterLinkAboutBottom: 15px;
|
|
|
|
filterLinkPreview: 96px;
|
|
|
|
filterLinkPreviewRadius: 13px;
|
|
|
|
filterLinkPreviewTop: 30px;
|
|
|
|
filterLinkPreviewColumn: 65px;
|
|
|
|
filterLinkPreviewAllBottom: 18px;
|
|
|
|
filterLinkPreviewAllTop: 17px;
|
|
|
|
filterLinkPreviewMyBottom: 74px;
|
|
|
|
filterLinkPreviewMyTop: 73px;
|
|
|
|
filterLinkPreviewChatSize: 36px;
|
|
|
|
filterLinkPreviewChatSkip: 10px;
|
|
|
|
filterLinkPreviewBadgeLeft: 40px;
|
|
|
|
filterLinkPreviewBadgeTop: 38px;
|
|
|
|
filterLinkSubsectionTitlePadding: margins(0px, 5px, 0px, -4px);
|
|
|
|
filterLinkChatsList: PeerList(peerListBox) {
|
|
|
|
padding: margins(0px, 0px, 0px, membersMarginBottom);
|
|
|
|
}
|