The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Give Wallpaper its own Customize Harness tab (#208)
Dee13b07e9e5a56
diff --git a/desktop/design/review/wallpaper-tab.png b/desktop/design/review/wallpaper-tab.pngnew file mode 100644index 000000000..07b84696bBinary files /dev/null and b/desktop/design/review/wallpaper-tab.png differdiff --git a/desktop/design/wallpapers.md b/desktop/design/wallpapers.mdindex b913e029f..a092e7cf9 100644--- a/desktop/design/wallpapers.md+++ b/desktop/design/wallpapers.md@@ -1,6 +1,6 @@# New-tab wallpapers-Blank remains the default and uses the selected tab's workspace color. The optional artwork appears only on empty welcome/new-tab pages. The welcome text and wallpaper stay mounted at their original position while the New Harness and Open Harness panels overlay the page.+Blank remains the default and uses the selected tab's workspace color. Choose artwork under Customize Harness → Wallpaper. It appears only on empty welcome/new-tab pages. The welcome text and wallpaper stay mounted at their original position while the New Harness and Open Harness panels overlay the page.The four images below were created with the built-in image generation tool. The PNG outputs were copied into the app without retouching. They are bundled locally; changing wallpaper does not make a network request. The center is deliberately quiet so the terminal-font welcome message remains readable.diff --git a/desktop/lib/settings/sections/appearance_section.dart b/desktop/lib/settings/sections/appearance_section.dartindex 47482247c..6ae4370b4 100644--- a/desktop/lib/settings/sections/appearance_section.dart+++ b/desktop/lib/settings/sections/appearance_section.dart@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';import '../../shared/theme/app_theme.dart' as grid;import '../appearance/palette_section.dart';-import '../appearance/wallpaper_section.dart';import '../../shared/theme/appearance_prefs_store.dart';/// Customize Harness ▸ Appearance: how the app looks on this Mac.@@ -21,9 +20,7 @@ class AppearanceSection extends StatelessWidget {child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- const PaletteSection(),- const SizedBox(height: 24),- WallpaperSection(store: store),+ PaletteSection(store: store),// Room under the last card so a scrolled-to-bottom pane does not end// flush against the window edge.const SizedBox(height: 8),diff --git a/desktop/lib/widgets/harness_customize_pane.dart b/desktop/lib/widgets/harness_customize_pane.dartindex 863f4a90d..b7b3a8c1b 100644--- a/desktop/lib/widgets/harness_customize_pane.dart+++ b/desktop/lib/widgets/harness_customize_pane.dart@@ -1,6 +1,7 @@import 'package:flutter/material.dart';import 'package:flutter/services.dart';+import '../settings/appearance/wallpaper_section.dart';import '../settings/sections/appearance_section.dart';import '../settings/sections/terminal_section.dart';import '../shared/theme/app_theme.dart' as grid;@@ -29,7 +30,7 @@ Future<void> showHarnessCustomizePane(BuildContext context) =>),);-/// Appearance and Terminal share the app's existing preference stores.+/// Customization tabs share the app's existing preference stores.class HarnessCustomizePane extends StatelessWidget {const HarnessCustomizePane({super.key, required this.onClose, this.store});final VoidCallback onClose;@@ -46,7 +47,7 @@ class HarnessCustomizePane extends StatelessWidget {child: CallbackShortcuts(bindings: {const SingleActivator(LogicalKeyboardKey.escape): onClose},child: DefaultTabController(- length: 3,+ length: 4,child: Column(crossAxisAlignment: CrossAxisAlignment.stretch,children: [@@ -86,6 +87,10 @@ class HarnessCustomizePane extends StatelessWidget {key: ValueKey('customize-appearance'),text: 'Appearance',),+ Tab(+ key: ValueKey('customize-wallpaper'),+ text: 'Wallpaper',+ ),Tab(key: ValueKey('customize-terminal'), text: 'Terminal'),],),@@ -94,6 +99,10 @@ class HarnessCustomizePane extends StatelessWidget {children: [PromptCustomize(store: store ?? appearancePrefsStore),AppearanceSection(store: store),+ SingleChildScrollView(+ padding: const EdgeInsets.all(20),+ child: WallpaperSection(store: store),+ ),const TerminalSection(),],),diff --git a/desktop/test/harness_customize_test.dart b/desktop/test/harness_customize_test.dartindex 007b45f9d..3b299f686 100644--- a/desktop/test/harness_customize_test.dart+++ b/desktop/test/harness_customize_test.dart@@ -462,7 +462,30 @@ void main() {expect(tester.takeException(), isNull);await _capture(tester, boundary, '${width.toInt()}-appearance');- await tester.tap(find.byKey(const ValueKey('customize-terminal')));+ final wallpaperTab = find.byKey(const ValueKey('customize-wallpaper'));+ await tester.ensureVisible(wallpaperTab);+ await tester.tap(wallpaperTab);+ await tester.pumpAndSettle();+ expect(find.byKey(const ValueKey('wallpaper-plain')), findsOneWidget);+ expect(tester.takeException(), isNull);+ if (Platform.environment['HARNESS_CUSTOMIZE_CAPTURE_DIR'] != null) {+ await tester.runAsync(() async {+ for (final choice in HarnessBackground.gallery) {+ if (choice.asset case final asset?) {+ await precacheImage(+ ResizeImage(AssetImage(asset), width: 360),+ tester.element(wallpaperTab),+ );+ }+ }+ });+ await tester.pumpAndSettle();+ }+ await _capture(tester, boundary, '${width.toInt()}-wallpaper');++ final terminalTab = find.byKey(const ValueKey('customize-terminal'));+ await tester.ensureVisible(terminalTab);+ await tester.tap(terminalTab);await tester.pumpAndSettle();expect(find.byKey(const Key('terminal-font-family-dropdown')),diff --git a/desktop/test/workspace_start_guide_test.dart b/desktop/test/workspace_start_guide_test.dartindex 1861904c7..5cee1e33f 100644--- a/desktop/test/workspace_start_guide_test.dart+++ b/desktop/test/workspace_start_guide_test.dart@@ -475,7 +475,7 @@ void main() {await tester.tap(find.byKey(const ValueKey('welcome-customize')));await tester.pumpAndSettle();expect(find.byType(HarnessCustomizePane), findsOneWidget);- await tester.tap(find.byKey(const ValueKey('customize-appearance')));+ await tester.tap(find.byKey(const ValueKey('customize-wallpaper')));await tester.pumpAndSettle();expect(find.byType(WallpaperSection), findsOneWidget);expectCentered();