Merge branch 'worktree-agent-a34c5b595a9afef6e'

This commit is contained in:
2026-11-26 02:25:52 +00:00
27 changed files with 1141 additions and 145 deletions
@@ -77,6 +77,30 @@ void main() {
expect(saved().containsKey('font_size'), isFalse);
});
testWidgets('the colour palette is chosen in Settings, saved and '
'restored', (tester) async {
await pump(tester);
expect(find.text('Colours'), findsOneWidget);
await tester.tap(find.byType(DropdownMenu<TerminalPalette>));
await tester.pumpAndSettle();
for (final palette in TerminalPalette.values) {
expect(find.text(palette.label), findsWidgets);
}
await tester.tap(find.text('Calm').last);
await tester.pumpAndSettle();
expect(layout.palette, TerminalPalette.calm);
expect(saved()['palette'], 'calm');
final restored = TerminalLayout(store: store);
await restored.restore();
expect(restored.palette, TerminalPalette.calm);
});
test('an unknown saved palette restores the theme colours', () async {
store.saved = jsonEncode({'palette': 'nonesuch'});
await layout.restore();
expect(layout.palette, TerminalPalette.theme);
});
testWidgets('a zoom from the keyboard shows in the menu at once', (
tester,
) async {