2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Option to set custom interface scales

This commit is contained in:
RadRussianRus
2019-10-07 04:44:41 +03:00
parent aea5ca9013
commit 70229dcb65
5 changed files with 47 additions and 3 deletions

View File

@@ -137,7 +137,9 @@ void SetupInterfaceScale(
icon ? st::settingsScalePadding : st::settingsBigScalePadding);
static const auto ScaleValues = [&] {
auto values = (cIntRetinaFactor() > 1)
auto values = HasCustomScales()
? cInterfaceScales()
: (cIntRetinaFactor() > 1)
? std::vector<int>{ 100, 110, 120, 130, 140, 150 }
: std::vector<int>{ 100, 125, 150, 200, 250, 300 };
if (cConfigScale() == style::kScaleAuto) {