From a006b15397f8a792befbc4ca32dab012a63b0b7a Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 11 Sep 2022 06:27:18 +0300 Subject: [PATCH] [Defaults] Do not share phone by default when adding contact --- Telegram/SourceFiles/boxes/peers/edit_contact_box.cpp | 2 +- Telegram/SourceFiles/ui/chat/chat.style | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_contact_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_contact_box.cpp index 0aa24c79e..23fbd29d5 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_contact_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_contact_box.cpp @@ -267,7 +267,7 @@ void Controller::setupSharePhoneNumber() { object_ptr( _box, tr::lng_contact_share_phone(tr::now), - true, + false, st::defaultBoxCheckbox), st::addContactWarningMargin); _box->addRow( diff --git a/Telegram/SourceFiles/ui/chat/chat.style b/Telegram/SourceFiles/ui/chat/chat.style index 8f6b9e148..f2f2f5734 100644 --- a/Telegram/SourceFiles/ui/chat/chat.style +++ b/Telegram/SourceFiles/ui/chat/chat.style @@ -418,6 +418,10 @@ historyComposeButton: FlatButton { color: historyComposeButtonBgRipple; } } +historyComposeButtonLabel: FlatLabel(defaultFlatLabel) { + textFg: windowActiveTextFg; + style: semiboldTextStyle; +} historyUnblock: FlatButton(historyComposeButton) { color: attentionButtonFg; overColor: attentionButtonFgOver;