Add an interface size setting (0.5x to 2x)

Settings > Appearance > Interface size scales every dimension, text, icon
and dialog on this device. The app lays out in a smaller or larger viewport
and paints it scaled to the window, so hit testing and layout stay
consistent; the value is saved per device and applies when the slider is
released.
This commit is contained in:
2026-11-09 12:56:42 +00:00
parent 701fb98ef0
commit bb2adcc182
9 changed files with 402 additions and 3 deletions
+3
View File
@@ -1,4 +1,5 @@
import '../core/session/server_session.dart';
import '../ui/scale/ui_scale.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
@@ -58,6 +59,7 @@ Future<void> runPipelinesApp({
// The device's chosen font loads beside the session; a slow download does
// not hold the first frame, and applies when it lands.
final animationSpeed = AnimationSpeedController.instance.restore();
final uiScale = UiScaleController.instance.restore();
final quickSwitchAnimation = QuickSwitchAnimationController.instance
.restore();
final font = AppFontController.instance.restore(wait: appFontStartupWait);
@@ -65,6 +67,7 @@ Future<void> runPipelinesApp({
await ServerSession.load();
await font;
await animationSpeed;
await uiScale;
await quickSwitchAnimation;
final server = await resolveLaunchServer(
base: base,