/*
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 "boxes/boxes.style";
using "ui/effects/premium.style";
using "statistics/statistics.style";

giveawayTypeListItem: PeerListItem(defaultPeerListItem) {
	height: 52px;
	photoPosition: point(58px, 6px);
	namePosition: point(110px, 8px);
	statusPosition: point(110px, 28px);
	photoSize: 42px;
}
giveawayUserpic: icon {{ "boosts/filled_gift", windowFgActive }};
giveawayUserpicSkip: 1px;
giveawayUserpicGroup: icon {{ "limits/groups", windowFgActive }};
giveawayRadioPosition: point(21px, 16px);

giveawayGiftCodeCountryButton: SettingsButton(reportReasonButton) {
}
giveawayGiftCodeCountrySelect: MultiSelect(defaultMultiSelect) {
}

giveawayGiftCodeChannelDeleteIcon: icon {{ "dialogs/dialogs_cancel_search", dialogsMenuIconFg }};
giveawayGiftCodeChannelDeleteIconOver: icon {{ "dialogs/dialogs_cancel_search", dialogsMenuIconFgOver }};

giveawayLoadingLabel: FlatLabel(membersAbout) {
}
giveawayGiftCodeTopHeight: 195px;
giveawayGiftCodeLink: FlatLabel(defaultFlatLabel) {
	margin: margins(10px, 12px, 10px, 8px);
	textFg: menuIconColor;
	maxHeight: 24px;
}
giveawayGiftCodeLinkCopy: icon{{ "menu/copy", menuIconColor }};
giveawayGiftCodeLinkHeight: 42px;
giveawayGiftCodeLinkCopyWidth: 40px;
giveawayGiftCodeLinkMargin: margins(24px, 8px, 24px, 12px);

giveawayGiftCodeGiftOption: PremiumOption(premiumGiftOption) {
	badgeShift: point(5px, 0px);
}
giveawayGiftCodeStartButton: RoundButton(defaultActiveButton) {
	height: 42px;
	textTop: 12px;
	radius: 6px;
}
giveawayGiftCodeQuantitySubtitle: FlatLabel(defaultFlatLabel) {
	style: TextStyle(semiboldTextStyle) {
		font: font(boxFontSize semibold);
	}
	textFg: windowActiveTextFg;
	minWidth: 240px;
	align: align(right);
}
giveawayGiftCodeQuantityFloat: FlatLabel(defaultFlatLabel) {
	style: semiboldTextStyle;
	textFg: windowActiveTextFg;
	minWidth: 50px;
	align: align(center);
}

boostLinkStatsButton: IconButton(defaultIconButton) {
	width: giveawayGiftCodeLinkCopyWidth;
	height: giveawayGiftCodeLinkHeight;
	icon: icon{{ "menu/stats", menuIconColor }};
	iconOver: icon{{ "menu/stats", menuIconColor }};
	ripple: emptyRippleAnimation;
}

giveawayGiftCodeTable: Table(defaultTable) {
	labelMinWidth: 91px;
}
giveawayGiftCodeTableMargin: margins(24px, 4px, 24px, 4px);
giveawayGiftCodeLabelMargin: margins(13px, 10px, 13px, 10px);
giveawayGiftCodeValueMultiline: FlatLabel(defaultTableValue) {
	minWidth: 128px;
	maxHeight: 100px;
	style: TextStyle(defaultTextStyle) {
		font: font(10px);
		linkUnderline: kLinkUnderlineNever;
	}
}
giveawayGiftMessage: FlatLabel(defaultTableValue) {
	minWidth: 128px;
	maxHeight: 0px;
}
giveawayGiftMessageRemove: IconButton(defaultIconButton) {
	width: 32px;
	height: 32px;
	icon: icon{{ "menu/delete", windowActiveTextFg }};
	iconOver: icon{{ "menu/delete", windowActiveTextFg }};
	rippleAreaPosition: point(0px, 0px);
	rippleAreaSize: 32px;
	ripple: RippleAnimation(defaultRippleAnimation) {
		color: lightButtonBgRipple;
	}
}
giveawayGiftCodeValueMargin: margins(13px, 9px, 13px, 9px);
giveawayGiftCodePeerMargin: margins(11px, 6px, 11px, 4px);
giveawayGiftCodeUserpic: UserpicButton(defaultUserpicButton) {
	size: size(24px, 24px);
	photoSize: 24px;
	photoPosition: point(-1px, -1px);
}
giveawayGiftCodeNamePosition: point(32px, 4px);
giveawayGiftCodeCover: PremiumCover(userPremiumCover) {
	starSize: size(92px, 90px);
	starTopSkip: 20px;
	titlePadding: margins(0px, 15px, 0px, 17px);
	titleFont: font(15px semibold);
	about: FlatLabel(userPremiumCoverAbout) {
		textFg: windowBoldFg;
		style: TextStyle(premiumAboutTextStyle) {
			lineHeight: 17px;
		}
	}
}
giveawayGiftCodeCoverClosePosition: point(5px, 0px);
giveawayGiftCodeCoverDividerPadding: margins(0px, 11px, 0px, 5px);
giveawayGiftCodeTypeDividerPadding: margins(0px, 7px, 0px, 5px);
giveawayGiftCodeSliderPadding: margins(0px, 24px, 0px, 10px);
giveawayGiftCodeSliderFloatSkip: 6px;
giveawayGiftCodeChannelsSubsectionPadding: margins(0px, -1px, 0px, -4px);
giveawayGiftCodeAdditionalPaddingMin: margins(50px, 4px, 22px, 0px);
giveawayGiftCodeAdditionalField: InputField(defaultMultiSelectSearchField) {
}
giveawayGiftCodeAdditionalLabel: FlatLabel(defaultFlatLabel) {
	style: semiboldTextStyle;
}
giveawayGiftCodeAdditionalLabelSkip: 12px;

giveawayGiftCodeChannelsPeerList: PeerList(boostsListBox) {
	padding: margins(0px, 7px, 0px, 0px);
}
giveawayGiftCodeMembersPeerList: PeerList(defaultPeerList) {
	item: PeerListItem(defaultPeerListItem) {
		height: 50px;
		namePosition: point(62px, 7px);
		statusPosition: point(62px, 27px);
	}
}
giveawayRadioMembersPosition: point(21px, 14px);

giveawayGiftCodeChannelsAddButton: SettingsButton(defaultSettingsButton) {
	textFg: lightButtonFg;
	textFgOver: lightButtonFgOver;
	padding: margins(70px, 10px, 22px, 8px);
	iconLeft: 28px;
}
giveawayGiftCodeChannelsDividerPadding: margins(0px, 5px, 0px, 5px);

giveawayGiftCodeFooter: FlatLabel(defaultFlatLabel) {
	align: align(top);
	textFg: windowBoldFg;
}
giveawayGiftCodeFooterMargin: margins(0px, 9px, 0px, 4px);
giveawayGiftCodeBoxButton: RoundButton(defaultActiveButton) {
	height: 42px;
	textTop: 12px;
	style: semiboldTextStyle;
}
giveawayGiftCodeBox: Box(defaultBox) {
	buttonPadding: margins(22px, 11px, 22px, 22px);
	buttonHeight: 42px;
	buttonWide: true;
	button: giveawayGiftCodeBoxButton;
	shadowIgnoreTopSkip: true;
}
giveawayGiftCodeBoxUpgradeNext: RoundButton(defaultLightButton, giveawayGiftCodeBoxButton) {
}
giveawayRefundedLabel: FlatLabel(boxLabel) {
	align: align(top);
	style: semiboldTextStyle;
	textFg: attentionButtonFg;
}
giveawayRefundedPadding: margins(8px, 10px, 8px, 10px);

startGiveawayBox: Box(premiumGiftBox) {
	shadowIgnoreTopSkip: true;
}
startGiveawayBoxTitleClose: IconButton(boxTitleClose) {
	ripple: universalRippleAnimation;
}
startGiveawayCover: PremiumCover(giveawayGiftCodeCover) {
	bg: boxDividerBg;
	additionalShadowForDarkThemes: false;
}

startGiveawayButtonLabelSimple: LabelSimple {
	font: semiboldFont;
	textFg: activeButtonFg;
}
startGiveawayButtonMiniIcon: icon{{ "boosts/boost_mini2", activeButtonBg }};
startGiveawayButtonMiniIconSkip: 5px;
startGiveawayButtonBadgeTextPadding: margins(16px, -1px, 6px, 0px);
startGiveawayButtonTextStyle: TextStyle(defaultTextStyle) {
	font: semiboldFont;
}

startGiveawayButtonLoading: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
	color: activeButtonFg;
	thickness: 2px;
}

darkGiftCodeBox: Box(giveawayGiftCodeBox) {
	bg: groupCallMembersBg;
	title: FlatLabel(boxTitle) {
		textFg: groupCallMembersFg;
	}
	titleAdditionalFg: groupCallMemberNotJoinedStatus;
}
darkGiftLink: icon {{ "menu/copy", groupCallMembersFg }};
darkGiftShare: icon {{ "menu/share", groupCallMembersFg }};
darkGiftTheme: icon {{ "menu/colors", groupCallMembersFg }};
darkGiftTransfer: icon {{ "chat/input_replace", groupCallMembersFg }};
darkGiftCraft: icon {{ "menu/craft_start-24x24", groupCallMembersFg }};
darkGiftNftWear: icon {{ "menu/nft_wear", groupCallMembersFg }};
darkGiftNftTakeOff: icon {{ "menu/nft_takeoff", groupCallMembersFg }};
darkGiftNftResell: icon {{ "menu/tag_sell", groupCallMembersFg }};
darkGiftNftUnlist: icon {{ "menu/tag_remove", groupCallMembersFg }};
darkGiftHide: icon {{ "menu/stealth", groupCallMembersFg }};
darkGiftShow: icon {{ "menu/show_in_chat", groupCallMembersFg }};
darkGiftPin: icon {{ "menu/pin", groupCallMembersFg }};
darkGiftUnpin: icon {{ "menu/unpin", groupCallMembersFg }};
darkGiftOffer: icon {{ "menu/earn", groupCallMembersFg }};
darkGiftPalette: TextPalette(defaultTextPalette) {
	linkFg: mediaviewTextLinkFg;
	monoFg: groupCallMembersFg;
	spoilerFg: groupCallMembersFg;
}
darkGiftTable: Table(giveawayGiftCodeTable) {
	headerBg: groupCallMembersBgOver;
	borderFg: mediaviewMenuBgOver;
	smallButton: RoundButton(defaultTableSmallButton) {
		textFg: groupCallMembersFg;
		textFgOver: groupCallMembersFg;
		textBg: groupCallMenuBgRipple;
		textBgOver: groupCallMenuBgRipple;
		ripple: RippleAnimation(defaultRippleAnimation) {
			color: mediaviewMenuBgOver;
		}
	}
	defaultLabel: FlatLabel(defaultTableLabel) {
		textFg: groupCallMembersFg;
		palette: darkGiftPalette;
	}
	defaultValue: FlatLabel(defaultTableValue) {
		textFg: groupCallMembersFg;
		palette: darkGiftPalette;
	}
}
darkGiftTableValueMultiline: FlatLabel(giveawayGiftCodeValueMultiline) {
	textFg: groupCallMembersFg;
	palette: darkGiftPalette;
}
darkGiftTableMessage: FlatLabel(giveawayGiftMessage) {
	textFg: groupCallMembersFg;
	palette: darkGiftPalette;
}
darkGiftBoxClose: IconButton(boxTitleClose) {
	icon: icon {{ "box_button_close", groupCallMemberInactiveIcon }};
	iconOver: icon {{ "box_button_close", groupCallMemberInactiveIcon }};
	ripple: RippleAnimation(defaultRippleAnimation) {
		color: groupCallMembersBgOver;
	}
}
