From a579abf6168f44fdbe1c929fa3e6cf15dedafcdb Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Tue, 17 Jun 2025 12:14:50 -0700 Subject: [PATCH 1/5] Create theming system for Golden Scenes (Resolves #16) --- .../source/_includes/components/navMain.jinja | 17 - .../source/_includes/layouts/docs_page.jinja | 6 +- lib/src/scenes/film_strip.dart | 7 +- lib/src/scenes/gallery.dart | 127 +++---- lib/src/scenes/golden_scene.dart | 350 +++++++++++++++--- lib/src/scenes/single_shot.dart | 59 ++- test_goldens/flutter/app_bar/app_bar.png | Bin 0 -> 1360 bytes .../flutter/app_bar/app_bar_test.dart | 40 ++ .../flutter/buttons/buttons_test.dart | 16 +- test_goldens/flutter_test_config.dart | 13 + .../regular_goldens/blocky_font_no_icons.png | Bin 0 -> 762 bytes .../blocky_font_no_icons_test.dart | 26 ++ test_goldens/scene_types/gallery_test.dart | 10 +- .../scene_types/single_shot_scene.png | Bin 4233 -> 4115 bytes .../scene_types/single_shot_test.dart | 11 +- test_goldens/theming/brightness_test.dart | 25 ++ .../theming/scoped-theme_group-scope.png | Bin 0 -> 3261 bytes .../theming/scoped-theme_test-scope.png | Bin 0 -> 3522 bytes test_goldens/theming/scoped_theme_test.dart | 134 +++++++ 19 files changed, 625 insertions(+), 216 deletions(-) create mode 100644 test_goldens/flutter/app_bar/app_bar.png create mode 100644 test_goldens/flutter/app_bar/app_bar_test.dart create mode 100644 test_goldens/flutter_test_config.dart create mode 100644 test_goldens/regular_goldens/blocky_font_no_icons.png create mode 100644 test_goldens/regular_goldens/blocky_font_no_icons_test.dart create mode 100644 test_goldens/theming/brightness_test.dart create mode 100644 test_goldens/theming/scoped-theme_group-scope.png create mode 100644 test_goldens/theming/scoped-theme_test-scope.png create mode 100644 test_goldens/theming/scoped_theme_test.dart diff --git a/doc/website/source/_includes/components/navMain.jinja b/doc/website/source/_includes/components/navMain.jinja index 127f67e..5b8825a 100644 --- a/doc/website/source/_includes/components/navMain.jinja +++ b/doc/website/source/_includes/components/navMain.jinja @@ -1,21 +1,4 @@