Allow 64px as minimal sticker size

This commit is contained in:
Eric Kotato 2020-02-02 08:09:45 +03:00
parent 48201eb173
commit 86fc9d37f2
2 changed files with 3 additions and 3 deletions

View file

@ -153,7 +153,7 @@ bool Manager::readCustomFile() {
const auto settingsStickerHeightIt = settings.constFind(qsl("sticker_height"));
if (settingsStickerHeightIt != settings.constEnd()) {
const auto settingsStickerHeight = (*settingsStickerHeightIt).toInt();
if (settingsStickerHeight >= 128 || settingsStickerHeight <= 256) {
if (settingsStickerHeight >= 64 || settingsStickerHeight <= 256) {
SetStickerHeight(settingsStickerHeight);
}
}

View file

@ -63,8 +63,8 @@ void SetupKotatoChats(not_null<Ui::VerticalLayout*> container) {
};
stickerHeightSlider->resize(st::settingsAudioVolumeSlider.seekSize);
stickerHeightSlider->setPseudoDiscrete(
129,
[](int val) { return val + 128; },
193,
[](int val) { return val + 64; },
StickerHeight(),
updateStickerHeight);
updateStickerHeightLabel(StickerHeight());