2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Added ability to implement platform-dependent zoom controller for IV.

This commit is contained in:
23rd
2024-10-28 15:28:41 +03:00
parent b7ef5325ac
commit c076daa91f
3 changed files with 30 additions and 4 deletions

View File

@@ -1583,8 +1583,13 @@ rpl::producer<int> Settings::ivZoomValue() const {
return _ivZoom.value();
}
void Settings::setIvZoom(int value) {
#ifdef Q_OS_WIN
constexpr auto kMin = 25;
constexpr auto kMax = 500;
#else
constexpr auto kMin = 30;
constexpr auto kMax = 200;
#endif
_ivZoom = std::clamp(value, kMin, kMax);
}