mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow 50% interface scale from command line.
This commit is contained in:
@@ -530,9 +530,10 @@ void Launcher::processArguments() {
|
|||||||
|
|
||||||
const auto scaleKey = parseResult.value("-scale", {});
|
const auto scaleKey = parseResult.value("-scale", {});
|
||||||
if (scaleKey.size() > 0) {
|
if (scaleKey.size() > 0) {
|
||||||
|
using namespace style;
|
||||||
const auto value = scaleKey[0].toInt();
|
const auto value = scaleKey[0].toInt();
|
||||||
gConfigScale = ((value < 75) || (value > 300))
|
gConfigScale = ((value < kScaleMin) || (value > kScaleMax))
|
||||||
? style::kScaleAuto
|
? kScaleAuto
|
||||||
: value;
|
: value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Submodule Telegram/lib_ui updated: a5766cb1f6...746eb80300
Reference in New Issue
Block a user