mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-21 07:38:00 +00:00
Fix auto media download settings box layout.
This commit is contained in:
parent
c79561e97f
commit
f5a405e6f1
@ -264,7 +264,7 @@ AutoDownloadBox::AutoDownloadBox(QWidget *parent)
|
||||
, _gifPrivate(this, lang(lng_media_auto_private_chats), !(cAutoDownloadGif() & dbiadNoPrivate), st::defaultBoxCheckbox)
|
||||
, _gifGroups(this, lang(lng_media_auto_groups), !(cAutoDownloadGif() & dbiadNoGroups), st::defaultBoxCheckbox)
|
||||
, _gifPlay(this, lang(lng_media_auto_play), cAutoPlayGif(), st::defaultBoxCheckbox)
|
||||
, _sectionHeight(st::boxTitleHeight + 2 * (st::defaultBoxCheckbox.height + st::setLittleSkip)) {
|
||||
, _sectionHeight(st::boxTitleHeight + 2 * (st::defaultCheck.diameter + st::setLittleSkip)) {
|
||||
}
|
||||
|
||||
void AutoDownloadBox::prepare() {
|
||||
|
@ -145,7 +145,7 @@ int EditPrivacyBox::countDefaultHeight(int newWidth) {
|
||||
if (!_controller->hasOption(option)) {
|
||||
return 0;
|
||||
}
|
||||
return st::editPrivacyOptionMargin.top() + st::defaultBoxCheckbox.height + st::editPrivacyOptionMargin.bottom();
|
||||
return st::editPrivacyOptionMargin.top() + st::defaultCheck.diameter + st::editPrivacyOptionMargin.bottom();
|
||||
};
|
||||
auto labelHeight = [this, newWidth](const QString &text, const style::FlatLabel &st, style::margins padding) {
|
||||
if (text.isEmpty()) {
|
||||
|
@ -397,7 +397,7 @@ void Checkbox::onStateChanged(State was, StateChangeSource source) {
|
||||
}
|
||||
|
||||
int Checkbox::resizeGetHeight(int newWidth) {
|
||||
return _st.height ? _st.height : _check->getSize().height();
|
||||
return _check->getSize().height();
|
||||
}
|
||||
|
||||
QImage Checkbox::prepareRippleMask() const {
|
||||
|
@ -135,7 +135,6 @@ Checkbox {
|
||||
textFg: color;
|
||||
|
||||
width: pixels;
|
||||
height: pixels;
|
||||
margin: margins;
|
||||
|
||||
textPosition: point;
|
||||
|
Loading…
Reference in New Issue
Block a user