mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45: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", {});
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user