From 7a5b90ce9aff96fa46f356c8feb66a4a02e8f218 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 27 Jun 2026 01:18:07 +0800
Subject: [PATCH] Fix bottom pinned app grid containers
---
src/Scripts/theme_settings_qa.sh | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/Scripts/theme_settings_qa.sh b/src/Scripts/theme_settings_qa.sh
index 868816d..bbc5896 100755
--- a/src/Scripts/theme_settings_qa.sh
+++ b/src/Scripts/theme_settings_qa.sh
@@ -83,7 +83,14 @@
raise SystemExit(f"AppGridTheme missing edit-mode contrast tokens: {missing_tokens}")
if "private var renderedAppGridTheme: AppGridTheme" not in content_source:
raise SystemExit("ContentView is missing the runtime theme override")
-if "editPhase == .none ? appGridTheme : .defaultLight" not in content_source:
+if not re.search(
+ r"private\s+var\s+renderedAppGridTheme\s*:\s*AppGridTheme\s*\{.*?"
+ r"editPhase\s*==\s*\.none.*?"
+ r"ProEntitlementPolicy\.effectiveTheme\(for:\s*appGridTheme\).*?"
+ r":\s*\.defaultLight",
+ content_source,
+ re.S,
+):
raise SystemExit("edit mode must temporarily render with the default light AppGrid theme")
if "let theme = renderedAppGridTheme" not in content_source:
raise SystemExit("AppGrid background does not use the runtime rendered theme")
--
Gitblit v1.9.3