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:
@@ -16,6 +16,7 @@ import '../features/onboarding/onboarding_flow.dart';
|
||||
import '../features/settings/server_connections.dart';
|
||||
import '../features/settings/saved_servers_section.dart';
|
||||
import '../features/settings/settings_store.dart';
|
||||
import '../ui/scale/ui_scale.dart';
|
||||
import '../ui/theme/app_font_controller.dart';
|
||||
import '../ui/theme/app_theme.dart';
|
||||
import 'pipelines_app.dart';
|
||||
@@ -369,12 +370,16 @@ class _PipelinesRootState extends State<PipelinesRoot> {
|
||||
builder: (context, _) => _cupertino
|
||||
? CupertinoApp(
|
||||
title: 'Pipelines',
|
||||
builder: (context, child) =>
|
||||
UiScaleHost(child: child ?? const SizedBox.shrink()),
|
||||
theme: appCupertinoThemeWith(fontFamily: fonts.family),
|
||||
debugShowCheckedModeBanner: false,
|
||||
home: flow,
|
||||
)
|
||||
: MaterialApp(
|
||||
title: 'Pipelines',
|
||||
builder: (context, child) =>
|
||||
UiScaleHost(child: child ?? const SizedBox.shrink()),
|
||||
theme: appLightTheme(fontFamily: fonts.family),
|
||||
darkTheme: appDarkTheme(fontFamily: fonts.family),
|
||||
debugShowCheckedModeBanner: false,
|
||||
|
||||
Reference in New Issue
Block a user