mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Allow 50% interface scale from command line.
This commit is contained in:
parent
7658d1da3c
commit
47709884dd
2 changed files with 4 additions and 3 deletions
|
@ -530,9 +530,10 @@ void Launcher::processArguments() {
|
|||
|
||||
const auto scaleKey = parseResult.value("-scale", {});
|
||||
if (scaleKey.size() > 0) {
|
||||
using namespace style;
|
||||
const auto value = scaleKey[0].toInt();
|
||||
gConfigScale = ((value < 75) || (value > 300))
|
||||
? style::kScaleAuto
|
||||
gConfigScale = ((value < kScaleMin) || (value > kScaleMax))
|
||||
? kScaleAuto
|
||||
: value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a5766cb1f6bfcd208814b0b71322128ecb47039a
|
||||
Subproject commit 746eb80300f788e1c340f8d5b363a9eac94f7499
|
Loading…
Add table
Reference in a new issue