Removed uppercase from some phrases in export.

This commit is contained in:
23rd 2023-09-07 01:36:14 +03:00
parent fd79973509
commit d4ad5d9f13

View file

@ -296,6 +296,7 @@ rpl::producer<> ProgressWidget::doneClicks() const {
} }
void ProgressWidget::setupBottomButton(not_null<Ui::RoundButton*> button) { void ProgressWidget::setupBottomButton(not_null<Ui::RoundButton*> button) {
button->setTextTransform(Ui::RoundButton::TextTransform::NoTransform);
button->show(); button->show();
sizeValue( sizeValue(
@ -361,7 +362,7 @@ void ProgressWidget::showDone() {
tr::lng_export_done(), tr::lng_export_done(),
st::exportDoneButton); st::exportDoneButton);
const auto desired = std::min( const auto desired = std::min(
st::exportDoneButton.font->width(tr::lng_export_done(tr::now).toUpper()) st::exportDoneButton.font->width(tr::lng_export_done(tr::now))
+ st::exportDoneButton.height + st::exportDoneButton.height
- st::exportDoneButton.font->height, - st::exportDoneButton.font->height,
st::exportPanelSize.width() - 2 * st::exportCancelBottom); st::exportPanelSize.width() - 2 * st::exportCancelBottom);