/*
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
*/
using "ui/basic.style";
using "ui/widgets/widgets.style";
using "info/info.style";
using "boxes/boxes.style";

settingsButton: SettingsButton(infoProfileButton) {
	style: boxTextStyle;
	padding: margins(60px, 10px, 22px, 10px);
	iconLeft: 20px;
}
settingsButtonRightLabelSpoiler: SettingsButton(settingsButton) {
	rightLabel: FlatLabel(defaultSettingsRightLabel) {
		palette: TextPalette(defaultTextPalette) {
			spoilerFg: windowActiveTextFg;
		}
	}
}
settingsButtonNoIcon: SettingsButton(settingsButton) {
	padding: margins(22px, 10px, 22px, 8px);
}
settingsButtonLight: SettingsButton(settingsButton) {
	textFg: lightButtonFg;
	textFgOver: lightButtonFgOver;
}
settingsButtonLightNoIcon: SettingsButton(settingsButtonLight, settingsButtonNoIcon) {
}
settingsButtonNoIconLocked: SettingsButton(settingsButtonNoIcon) {
	toggle: Toggle(infoProfileToggle) {
		lockIcon: icon {{ "info/info_rights_lock", menuIconFg }};
	}
	toggleOver: Toggle(infoProfileToggleOver) {
		lockIcon: icon {{ "info/info_rights_lock", menuIconFgOver }};
	}
}
settingsButtonActive: SettingsButton(infoMainButton, settingsButton) {
}
settingsAttentionButton: SettingsButton(settingsButtonNoIcon) {
	textFg: attentionButtonFg;
	textFgOver: attentionButtonFgOver;
}
settingsAttentionButtonWithIcon: SettingsButton(settingsButton) {
	textFg: attentionButtonFg;
	textFgOver: attentionButtonFgOver;
}
settingsOptionDisabled: SettingsButton(settingsButtonNoIcon) {
	textFg: windowSubTextFg;
	textFgOver: windowSubTextFg;
	textBg: windowBg;
	textBgOver: windowBg;
	toggleOver: infoProfileToggle;
}
settingsButtonRightSkip: 23px;
settingsScalePadding: margins(60px, 7px, 22px, 4px);
settingsBigScalePadding: margins(21px, 7px, 21px, 4px);
settingsSlider: SettingsSlider(defaultSettingsSlider) {
	barFg: windowBgOver;
	labelFg: windowSubTextFg;
	labelFgActive: windowActiveTextFg;
}
settingsScale: MediaSlider(defaultContinuousSlider) {
	seekSize: size(15px, 15px);
}
settingsScaleLabel: FlatLabel(defaultFlatLabel) {
	textFg: windowActiveTextFg;
}
settingsUpdateToggle: SettingsButton(settingsButtonNoIcon) {
	height: 40px;
	padding: margins(22px, 8px, 22px, 8px);
}
settingsUpdateState: FlatLabel(defaultFlatLabel) {
	textFg: windowSubTextFg;
}
settingsUpdate: SettingsButton(infoMainButton, settingsButtonNoIcon) {
}
settingsUpdateStatePosition: point(22px, 29px);

settingsIconChat: icon {{ "settings/chat", settingsIconFg }};
settingsIconInterfaceScale: icon {{ "settings/interface_scale", settingsIconFg }};
settingsIconStickers: icon {{ "settings/stickers", settingsIconFg }};
settingsIconEmoji: icon {{ "settings/emoji", settingsIconFg }};

settingsPremiumIconWallpapers: icon {{ "settings/photo", settingsIconFg }};
settingsPremiumIconStories: icon {{ "settings/stories", settingsIconFg }};
settingsPremiumIconChannelsOff: icon {{ "settings/premium/channels_off", settingsIconFg }};
settingsPremiumIconDouble: icon {{ "settings/premium/double", settingsIconFg }};
settingsPremiumIconStatus: icon {{ "settings/premium/status", settingsIconFg }};
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 }};
settingsPremiumIconFiles: icon {{ "settings/premium/files", settingsIconFg }};
settingsPremiumIconTranslations: icon {{ "settings/premium/translations", settingsIconFg }};
settingsPremiumIconTags: icon {{ "settings/premium/tags", settingsIconFg }};
settingsPremiumIconLastSeen: icon {{ "settings/premium/lastseen", settingsIconFg }};
settingsPremiumIconPrivacy: icon {{ "settings/premium/privacy", settingsIconFg }};
settingsPremiumIconBusiness: icon {{ "settings/premium/market", settingsIconFg }};
settingsPremiumIconEffects: icon {{ "settings/premium/effects", settingsIconFg }};
settingsPremiumIconChecklist: icon {{ "settings/premium/checklist", settingsIconFg }};
settingsPremiumIconPeerColors: icon {{ "settings/premium/peer_colors-24x24", settingsIconFg }};
settingsPremiumIconNoForwards: icon {{ "menu/share_off-24x24", settingsIconFg }};
settingsPremiumIconAiCompose: icon{
	{ size(24px, 24px), transparent },
	{ "chat/ai_letters-20x20", settingsIconFg, point(2px, 2px) },
	{ "chat/ai_star1-20x20", settingsIconFg, point(2px, 2px) },
	{ "chat/ai_star2-20x20", settingsIconFg, point(2px, 2px) },
};

settingsIconChatAutomation: icon {
	{ size(24px, 24px), transparent },
	{ "chat/ai_letters-20x20", menuIconColor, point(2px, 2px) },
	{ "chat/ai_star1-20x20", menuIconColor, point(2px, 2px) },
	{ "chat/ai_star2-20x20", menuIconColor, point(2px, 2px) },
};

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 }};
settingsStoriesIconLinks: icon {{ "menu/links_profile", premiumButtonBg1 }};

settingsBusinessIconLocation: icon {{ "settings/premium/business/business_location", settingsIconFg }};
settingsBusinessIconHours: icon {{ "settings/premium/business/business_hours", settingsIconFg }};
settingsBusinessIconReplies: icon {{ "settings/premium/business/business_quick", settingsIconFg }};
settingsBusinessIconGreeting: icon {{ "settings/premium/status", settingsIconFg }};
settingsBusinessIconAway: icon {{ "settings/premium/business/business_away", settingsIconFg }};
settingsBusinessIconChatbots: icon {{ "settings/premium/business/business_chatbots", settingsIconFg }};
settingsBusinessIconChatIntro: icon {{ "settings/premium/business/business_intro", settingsIconFg }};
settingsBusinessIconChatLinks: icon {{ "settings/premium/business/business_links", settingsIconFg }};

settingsBusinessPromoLocation: icon {{ "settings/premium/promo/business_location", premiumButtonBg1 }};
settingsBusinessPromoHours: icon {{ "settings/premium/promo/business_hours", premiumButtonBg1 }};
settingsBusinessPromoReplies: icon {{ "settings/premium/promo/business_quickreply", premiumButtonBg1 }};
settingsBusinessPromoGreeting: icon {{ "settings/premium/promo/business_greeting", premiumButtonBg1 }};
settingsBusinessPromoAway: icon {{ "settings/premium/promo/business_away", premiumButtonBg1 }};
settingsBusinessPromoChatbots: icon {{ "settings/premium/promo/business_chatbot", premiumButtonBg1 }};
settingsBusinessPromoChatIntro: icon {{ "settings/premium/promo/business_intro", premiumButtonBg1 }};
settingsBusinessPromoChatLinks: icon {{ "settings/premium/promo/business_chatlink", premiumButtonBg1 }};

settingsStarRefEarnStars: icon {{ "settings/premium/business/earn_stars", settingsIconFg }};

settingsPremiumNewBadge: FlatLabel(defaultFlatLabel) {
	style: TextStyle(semiboldTextStyle) {
		font: font(10px semibold);
	}
	textFg: windowFgActive;
}
settingsPremiumNewBadgePosition: point(4px, 1px);
settingsPremiumNewBadgePadding: margins(4px, 1px, 4px, 1px);

settingsTTLChatsOff: icon {{ "settings/ttl/autodelete_off", windowSubTextFg }};
settingsTTLChatsOn: icon {{ "settings/ttl/autodelete_on", windowActiveTextFg }};

settingsIconAdd: icon {{ "settings/add", windowFgActive }};
settingsIconRemove: icon {{ "settings/remove", windowFgActive }};
settingsFolderShareIcon: icon {{ "settings/folder_links", lightButtonFg }};

settingsCheckbox: Checkbox(defaultBoxCheckbox) {
	textPosition: point(15px, 1px);
}
settingsCheckboxPadding: margins(22px, 10px, 10px, 10px);
settingsLink: boxLinkButton;
settingsCheckboxesSkip: 12px;

settingsSendType: settingsCheckbox;
settingsSendTypePadding: margins(22px, 5px, 10px, 5px);
settingsSendTypeSkip: 5px;

settingsBackgroundThumb: 76px;
settingsThumbSkip: 16px;
settingsBackgroundPadding: margins(22px, 11px, 10px, 12px);
settingsTileSkip: 15px;
settingsFromGalleryTop: 2px;
settingsFromFileTop: 14px;
settingsPrivacyOption: Checkbox(settingsCheckbox) {
	textPosition: point(13px, 1px);
}
settingsPrivacySecurityPadding: 12px;
settingsPrivacySkip: 14px;
settingsPrivacySkipTop: 4px;
settingsPrivacyPremium: icon{{ "profile_premium", premiumButtonFg }};

settingsCloudPasswordIconSize: 100px;

settingLocalPasscodeInputField: InputField(defaultInputField) {
	width: 256px;
}
settingLocalPasscodeDescription: FlatLabel(changePhoneDescription) {
	minWidth: 256px;
}
settingLocalPasscodeError: FlatLabel(changePhoneError) {
	minWidth: 256px;
}
settingLocalPasscodeDescriptionBottomSkip: 15px;
settingLocalPasscodeIconPadding: margins(0px, 19px, 0px, 5px);
settingLocalPasscodeButtonPadding: margins(0px, 19px, 0px, 35px);

settingsInfoPhotoHeight: 162px;
settingsInfoPhotoSize: 100px;
settingsInfoPhoto: UserpicButton(defaultUserpicButton) {
	size: size(settingsInfoPhotoSize, settingsInfoPhotoSize);
	photoSize: settingsInfoPhotoSize;
}
settingsInfoPhotoTop: 2px;
settingsInfoPhotoSkip: 7px;
settingsInfoNameSkip: -1px;
settingsInfoUploadLeft: 6px;
settingsInfoPeerBadge: InfoPeerBadge {
	verified: icon {
		{ "dialogs/dialogs_verified_star", dialogsVerifiedIconBg },
		{ "dialogs/dialogs_verified_check", dialogsVerifiedIconFg },
	};
	premium: icon {{ "dialogs/dialogs_premium", dialogsVerifiedIconBg }};
	premiumFg: dialogsVerifiedIconBg;
	sizeTag: 0; // Normal
}
settingsCoverBadge: InfoPeerBadge(infoPeerBadge) {
	position: point(4px, 2px);
}

settingsBio: InputField(defaultInputField) {
	textBg: transparent;
	textMargins: margins(0px, 7px, 0px, 13px);

	placeholderFg: placeholderFg;
	placeholderFgActive: placeholderFgActive;
	placeholderFgError: placeholderFgActive;
	placeholderMargins: margins(2px, 0px, 2px, 0px);
	placeholderScale: 0.;
	placeholderFont: normalFont;

	border: 0px;
	borderActive: 0px;

	heightMin: 32px;
}

settingsBioMargins: margins(22px, 6px, 22px, 4px);
settingsBioHighlightMargin: margins(-22px, 0px, -22px, 0px);
settingsBioCountdown: FlatLabel(defaultFlatLabel) {
	style: boxTextStyle;
	textFg: windowSubTextFg;
}

settingsCoverName: FlatLabel(defaultFlatLabel) {
	maxHeight: 24px;
	style: TextStyle(defaultTextStyle) {
		font: font(17px semibold);
	}
}
settingsCoverStatus: FlatLabel(defaultFlatLabel) {
	textFg: windowSubTextFg;
}

settingsThemesTopSkip: 10px;
settingsThemesBottomSkip: 8px;
settingsTheme: Checkbox(defaultCheckbox) {
	textFg: windowSubTextFg;
	textFgActive: windowActiveTextFg;

	width: 80px;
	margin: margins(0px, 0px, 0px, 0px);

	textPosition: point(0px, 99px);
	checkPosition: point(0px, 0px);

	style: defaultTextStyle;

	disabledOpacity: 0.5;
}

settingsThemePreviewSize: size(80px, 92px);
settingsThemeBubbleSize: size(40px, 14px);
settingsThemeBubbleRadius: 2px;
settingsThemeBubblePosition: point(6px, 8px);
settingsThemeBubbleSkip: 6px;
settingsThemeRadioBottom: 12px;
settingsThemeMinSkip: 4px;

settingsThemeNotSupportedBg: windowBgOver;
settingsThemeNotSupportedIcon: icon {{ "theme_preview", menuIconFg }};

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);
chatThemeGiftTaken: icon {{ "mediaview/mini_repost", msgFileInBg }};

autoDownloadLimitButton: SettingsButton(settingsButtonNoIcon) {
	padding: margins(22px, 10px, 22px, 0px);
}
settingsLevelMeterPadding: margins(22px, 10px, 20px, 10px);

settingsForwardPrivacyPadding: 10px;
settingsForwardPrivacyArrowSkip: 32px;
settingsForwardPrivacyArrowSize: 7px;
settingsForwardPrivacyTooltipPadding: margins(12px, 7px, 12px, 7px);

settingsAccentColorSize: 24px;
settingsAccentColorSkip: 4px;
settingsAccentColorLine: 3px;

settingsFilterDividerLabel: FlatLabel(boxDividerLabel) {
	minWidth: 200px;
	maxHeight: 0px;
	align: align(top);
}
settingsFilterDividerLabelPadding: margins(0px, 16px, 0px, 22px);
settingsFilterIconSize: 74px;
settingsFilterIconPadding: margins(0px, 17px, 0px, 5px);

settingsFilterTagPreviewSkip: 14px;

settingsFilterAddRecommended: RoundButton(defaultActiveButton) {
	width: -32px;
	height: 26px;
	textTop: 4px;
}

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;
}

dictionariesSectionButton: SettingsButton(settingsUpdateToggle) {
	style: TextStyle(defaultTextStyle) {
		font: font(14px semibold);
	}
}

sessionLocationTop: 54px;
sessionCurrentSkip: 8px;
sessionSubtitleSkip: 14px;
sessionInfoFg: windowSubTextFg;
sessionTerminateTop: 8px;
sessionTerminateSkip: 11px;
sessionTerminate: IconButton {
	width: 34px;
	height: 34px;

	icon: smallCloseIcon;
	iconOver: smallCloseIconOver;
	iconPosition: point(12px, 12px);
}
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);
	}
	align: align(top);
}
sessionDateLabel: FlatLabel(defaultFlatLabel) {
	textFg: windowSubTextFg;
	align: align(top);
}
sessionDateSkip: 19px;
sessionValuePadding: margins(37px, 5px, 0px, 0px);
sessionValueLabel: FlatLabel(defaultFlatLabel) {
	textFg: windowSubTextFg;
}
sessionValueSkip: 8px;
sessionValueIconPosition: point(20px, 9px);

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;
	}
	namePosition: point(78px, 11px);
	statusPosition: point(78px, 32px);
	photoSize: 42px;
	statusFg: boxTextFg;
	statusFgOver: boxTextFg;
}
sessionList: PeerList(defaultPeerList) {
	item: sessionListItem;
	padding: margins(0px, 4px, 0px, 0px);
}
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;
}

settingsPhotoLeft: 22px;
settingsPhotoTop: 8px;
settingsPhotoBottom: 16px;
settingsPhotoHighlightMargin: margins(-4px, -4px, -4px, -4px);
settingsNameLeft: 112px;
settingsNameTop: 12px;
settingsPhoneLeft: settingsNameLeft;
settingsPhoneTop: 37px;
settingsUsernameLeft: settingsNameLeft;
settingsUsernameTop: 58px;
settingsPeerToPeerSkip: 9px;

settingsIconRadius: 6px;

settingsReactionSize: 25px;
settingsReactionRightSkip: 0px;
settingsReactionCornerSize: size(28px, 22px);
settingsReactionCornerSkip: point(11px, -6px);
settingsReactionMessageSize: 18px;

settingsReactionRightIcon: 20px;

notifyPreviewMargins: margins(40px, 20px, 40px, 58px);
notifyPreviewUserpicSize: 36px;
notifyPreviewUserpicPosition: point(14px, 11px);
notifyPreviewTitlePosition: point(64px, 9px);
notifyPreviewTextPosition: point(64px, 30px);
notifyPreviewChecksSkip: 12px;
notifyPreviewBottomSkip: 9px;

settingsPremiumButtonPadding: margins(11px, 11px, 11px, 3px);
settingsPremiumTopBarBackIcon: icon {{ "info/info_back", premiumButtonFg }};
settingsPremiumTopBarBackIconOver: icon {{ "info/info_back", premiumButtonFg }};
settingsPremiumTopBarBack: IconButton(infoTopBarBack) {
	icon: settingsPremiumTopBarBackIcon;
	iconOver: settingsPremiumTopBarBackIconOver;
	ripple: RippleAnimation(defaultRippleAnimation) {
		color: callMuteRipple;
	}
}
settingsPremiumLayerTopBarBack: IconButton(infoLayerTopBarBack) {
	icon: settingsPremiumTopBarBackIcon;
	iconOver: settingsPremiumTopBarBackIconOver;
	ripple: RippleAnimation(defaultRippleAnimation) {
		color: callMuteRipple;
	}
}
settingsPremiumTopBarClose: IconButton(infoTopBarClose) {
	icon: icon {{ "info/info_close", premiumButtonFg }};
	iconOver: icon {{ "info/info_close", premiumButtonFg }};
	ripple: RippleAnimation(defaultRippleAnimation) {
		color: callMuteRipple;
	}
}
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;
}
settingsPremiumRowTitlePadding: margins(59px, 5px, 46px, 1px);
settingsPremiumRowAboutPadding: margins(59px, 0px, 46px, 6px);
settingsPremiumPreviewTitlePadding: margins(24px, 13px, 24px, 3px);
settingsPremiumPreviewAboutPadding: margins(24px, 0px, 24px, 11px);
settingsPremiumPreviewLinePadding: margins(18px, 0px, 18px, 8px);
settingsPremiumPreviewIconTitlePadding: margins(62px, 13px, 24px, 1px);
settingsPremiumPreviewIconAboutPadding: margins(62px, 0px, 24px, 0px);
settingsPremiumPreviewIconPosition: point(20px, 7px);

settingsPremiumArrowShift: point(-5px, -1px);
settingsPremiumArrow: icon{{ "settings/premium/arrow", menuIconFg }};
settingsPremiumArrowOver: icon{{ "settings/premium/arrow", menuIconFgOver }};

settingsPremiumOptionsPadding: margins(0px, 9px, 0px, 2px);
settingsPremiumTopHeight: 202px;
settingsPremiumUserHeight: 205px;
settingsPremiumUserTitlePadding: margins(0px, 16px, 0px, 6px);
settingsPremiumUserTitle: FlatLabel(boxTitle) {
	style: TextStyle(defaultTextStyle) {
		font: boxTitleFont;
		lineHeight: 20px;
	}
	minWidth: 300px;
	maxHeight: 0px;
	align: align(top);
}

settingsBlockedListSubtitleAddPadding: margins(0px, 1px, 0px, -4px);
settingsBlockedListIconPadding: margins(0px, 24px, 0px, 5px);
settingsBlockedList: PeerList(peerListBox) {
	padding: margins(0px, 0px, 0px, membersMarginBottom);
}
settingsBlockedHeightMin: 240px;

settingsNotificationType: SettingsButton(settingsButton) {
	height: 40px;
	padding: margins(60px, 4px, 22px, 4px);
}
settingsNotificationTypeDetails: FlatLabel(defaultFlatLabel) {
	textFg: windowSubTextFg;
}

settingsSearchResult: SettingsButton(settingsButton) {
	height: 40px;
	padding: margins(60px, 4px, 22px, 4px);
}
settingsSearchResultNoIcon: SettingsButton(settingsSearchResult) {
	padding: margins(22px, 4px, 22px, 4px);
}
settingsSearchResultDetails: FlatLabel(settingsNotificationTypeDetails) {
}
settingsSearchNoResults: FlatLabel(defaultFlatLabel) {
	textFg: windowSubTextFg;
	align: align(center);
}
settingsSearchNoResultsPadding: margins(22px, 32px, 22px, 32px);

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);

filterInviteBox: Box(defaultBox) {
	buttonPadding: margins(10px, 9px, 10px, 9px);
	buttonHeight: 42px;
	button: RoundButton(defaultActiveButton) {
		height: 42px;
		textTop: 12px;
		style: semiboldTextStyle;
	}
}
filterInviteButtonStyle: TextStyle(defaultTextStyle) {
	font: font(13px semibold);
}
filterInviteButtonBadgeStyle: TextStyle(defaultTextStyle) {
	font: font(12px semibold);
}
filterInviteButtonBadgePadding: margins(5px, 0px, 5px, 2px);
filterInviteButtonBadgeSkip: 5px;
filterLinkDividerLabelPadding: margins(0px, 10px, 0px, 17px);
filterLinkTitlePadding: margins(0px, 15px, 0px, 17px);
filterLinkAboutTextStyle: TextStyle(defaultTextStyle) {
	font: font(12px);
	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: 15px;
filterLinkPreviewMyBottom: 74px;
filterLinkPreviewMyTop: 71px;
filterLinkPreviewChatSize: 36px;
filterLinkPreviewChatSkip: 10px;
filterLinkPreviewBadgeLeft: 40px;
filterLinkPreviewBadgeTop: 38px;
filterLinkSubsectionTitlePadding: margins(0px, 5px, 0px, -4px);
filterLinkChatsList: PeerList(peerListBox) {
	padding: margins(0px, 0px, 0px, membersMarginBottom);
}

settingsColorSampleCutout: 3px;
settingsColorProfileSampleShift: 5px;
settingsColorSampleSize: 20px;
settingsColorSampleCenter: 6px;
settingsColorSampleCenterRadius: 2px;
settingsColorSamplePadding: margins(8px, 2px, 8px, 2px);
settingsColorSampleSkip: 6px;
settingsColorButton: SettingsButton(settingsButton) {
	padding: margins(60px, 10px, 48px, 10px);
}
settingsColorRadioMargin: 17px;
settingsColorRadioSkip: 13px;
settingsColorRadioStroke: 2px;
settingsLevelBadgeLock: IconEmoji{
	icon: icon {{ "chat/mini_lock", premiumButtonFg }};
	padding: margins(0px, 4px, 0px, 0px);
	useIconColor: true;
}

messagePrivacyTopSkip: 8px;
messagePrivacyRadioSkip: 6px;
messagePrivacyBottomSkip: 10px;
messagePrivacyCheck: Checkbox(settingsPrivacyOption) {
	textPosition: point(13px, 1px);
}
messagePrivacySubscribe: SettingsButton(settingsButtonLight) {
	padding: margins(56px, 10px, 22px, 8px);
	iconLeft: 20px;
}
messagePrivacyLock: icon {{ "info/info_rights_lock", checkboxFg }};

peerAppearanceButton: SettingsButton(settingsButtonLight) {
	padding: margins(60px, 8px, 22px, 8px);
	iconLeft: 20px;
}
peerAppearanceCoverLabelMargin: margins(22px, 0px, 22px, 17px);
peerAppearanceIconPadding: margins(0px, 15px, 0px, 5px);
peerAppearanceDividerTextMargin: margins(22px, 8px, 22px, 11px);

settingsChatbotsUsername: InputField(defaultMultiSelectSearchField) {
}
settingsChatbotsAccess: Checkbox(defaultCheckbox) {
	textPosition: point(18px, 2px);
}
settingsLocationAddress: InputField(defaultMultiSelectSearchField) {
}
settingsChatbotsUsernameMargins: margins(20px, 0px, 20px, 8px);
settingsChatbotsAccessMargins: margins(22px, 5px, 22px, 9px);
settingsChatbotsAccessSkip: 4px;
settingsChatbotsBottomTextMargin: margins(22px, 8px, 22px, 3px);
settingsChatbotsAdd: SettingsButton(settingsButton) {
	iconLeft: 22px;
}
settingsChatbotsRemove: SettingsButton(settingsAttentionButtonWithIcon, settingsChatbotsAdd) {
	iconLeft: 16px;
}
settingsChatbotsRemoveIcon: infoIconDeleteRed;
settingsWorkingHoursWeek: SettingsButton(settingsButtonNoIcon) {
	height: 40px;
	padding: margins(22px, 4px, 22px, 4px);
}
settingsWorkingHoursDetails: settingsNotificationTypeDetails;
settingsWorkingHoursPicker: 200px;
settingsWorkingHoursPickerItemHeight: 40px;

settingsAwaySchedulePadding: margins(0px, 8px, 0px, 8px);

settingsAddReplyLabel: FlatLabel(defaultFlatLabel) {
	minWidth: 256px;
}
settingsAddReplyField: InputField(defaultInputField) {
	textBg: transparent;
	textMargins: margins(0px, 10px, 32px, 2px);

	placeholderFg: placeholderFg;
	placeholderFgActive: placeholderFgActive;
	placeholderFgError: placeholderFgActive;
	placeholderMargins: margins(2px, 0px, 2px, 0px);
	placeholderScale: 0.;

	heightMin: 36px;
}
settingsChatbotsNotFound: FlatLabel(defaultFlatLabel) {
	textFg: windowSubTextFg;
	align: align(top);
}
settingsChatbotsAddButton: RoundButton(defaultActiveButton) {
	width: -16px;
	height: 26px;
	textTop: 4px;
}
settingsChatbotsAddMargin: 14px;

settingsChatIntroField: InputField(defaultMultiSelectSearchField) {
	textMargins: margins(2px, 0px, 32px, 0px);
}
settingsChatIntroFieldMargins: margins(20px, 15px, 20px, 8px);

settingsChatLinkEmojiTop: 2px;
settingsChatLinkField: InputField(defaultInputField) {
	textBg: transparent;
	textMargins: margins(2px, 8px, 2px, 8px);

	placeholderFg: placeholderFg;
	placeholderFgActive: placeholderFgActive;
	placeholderFgError: placeholderFgActive;
	placeholderMargins: margins(0px, 0px, 0px, 0px);
	placeholderScale: 0.;
	placeholderFont: normalFont;

	border: 0px;
	borderActive: 0px;

	heightMin: 32px;

	style: defaultTextStyle;
}

settingsQuickDialogActionsTriggerFont: font(11px);

settingsGiftIconEmoji: IconEmoji {
	icon: icon{{ "settings/mini_gift", windowFg }};
	padding: margins(1px, 2px, 1px, 0px);
}

settingsCreditsButton: SettingsButton(settingsButton) {
	padding: margins(62px, 8px, 22px, 8px);
}
settingsButtonIconGift: icon {{ "settings/gift", menuIconColor }};
settingsButtonIconEarn: icon {{ "settings/earn", menuIconColor }};

settingsIconPasskeys: icon {{ "menu/permissions", windowBgActive }};
settingsIconPasskeysAboutIcon1: icon {{ "menu/permissions", boxTextFg }};
settingsIconPasskeysAboutIcon2: icon {{ "menu/passcode_winhello", boxTextFg }};
settingsIconPasskeysAboutIcon3: icon {{ "menu/lock", boxTextFg }};

settingsAgeVerifyBox: Box(filterInviteBox) {
	buttonPadding: margins(24px, 24px, 24px, 24px);
}
settingsAgeVerifyText: FlatLabel(defaultFlatLabel) {
	minWidth: 200px;
	align: align(top);
}
settingsAgeVerifyMargin: margins(0px, 6px, 0px, 6px);
settingsAgeVerifyTitle: FlatLabel(boxTitle) {
	align: align(top);
}
settingsAgeVerifyIcon: icon {{ "settings/filled_verify_age-48x48", windowFgActive }};
settingsAgeVerifyIconPadding: margins(16px, 16px, 16px, 16px);
settingsAgeVerifyIconMargin: margins(0px, 24px, 0px, 14px);

DetailedSettingsButtonStyle {
	button: SettingsButton;
	description: FlatLabel;
	iconRadius: pixels;
	iconPadding: pixels;
	iconForegroundPadding: pixels;
	descriptionTopSkip: pixels;
	descriptionBottomSkip: pixels;
	descriptionRightSkip: pixels;
}

detailedSettingsButtonStyle: DetailedSettingsButtonStyle {
	button: SettingsButton(settingsButtonNoIconLocked) {
		style: defaultTextStyle;
		textBg: transparent;
		textBgOver: transparent;
		padding: margins(68px, 8px, 22px, 8px);
		iconLeft: 17px;
	}
	description: FlatLabel(defaultFlatLabel) {
		textFg: windowSubTextFg;
	}
	iconRadius: 10px;
	iconPadding: 6px;
	iconForegroundPadding: 3px;
	descriptionTopSkip: 0px;
	descriptionBottomSkip: 8px;
	descriptionRightSkip: 4px;
}

settingsToastStarIcon: icon {{ "toast/star", toastFg }};
