summaryrefslogtreecommitdiff
path: root/server/lib/core/ui_utils.dart
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2026-11-19 08:53:51 +0100
committerJoel Klinghed <the_jk@spawned.biz>2026-11-19 08:53:51 +0100
commitb884441ba0d10bdd3559748507a0991888f66194 (patch)
tree074321d353c1153e8d95191eecf5a61b2eec1096 /server/lib/core/ui_utils.dart
parentd64cf3514e5ff1ddb1c7f3ddac9a769db3e7dde0 (diff)
Phase 6: settings, saves, localization parity (M6)
Diffstat (limited to 'server/lib/core/ui_utils.dart')
-rw-r--r--server/lib/core/ui_utils.dart12
1 files changed, 0 insertions, 12 deletions
diff --git a/server/lib/core/ui_utils.dart b/server/lib/core/ui_utils.dart
deleted file mode 100644
index f6900d8..0000000
--- a/server/lib/core/ui_utils.dart
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'package:x_haven_server/core/service_locator.dart';
-
-import 'enums.dart';
-import 'settings.dart';
-
-/// Minimal port of the reference app's `ui_utils.dart` for the headless
-/// engine: only [reducePowerEnabled], which `line_builder` consults.
-/// The rest of the reference file is pure widget styling (Phase 3+).
-bool reducePowerEnabled({Settings? settings}) {
- final resolved = settings ?? getIt<Settings>();
- return resolved.powerMode == PowerMode.reducePower;
-}