From 1ec08b1dedff313e385767edb0c2b815b6dd56f3 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Sat, 22 Aug 2026 22:08:47 +0800
Subject: [PATCH] fix: improve app note placeholder contrast

---
 C1.source/Scripts/app_note_bubble_input_qa.sh |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/C1.source/Scripts/app_note_bubble_input_qa.sh b/C1.source/Scripts/app_note_bubble_input_qa.sh
index 043552c..e070588 100755
--- a/C1.source/Scripts/app_note_bubble_input_qa.sh
+++ b/C1.source/Scripts/app_note_bubble_input_qa.sh
@@ -43,6 +43,18 @@
     "App note bubble editor must use a native NSTextField subclass",
 )
 require(
+    r"placeholderAttributes\s*:\s*\[NSAttributedString\.Key\s*:\s*Any\](?P<body>.*?)NSColor\.white\.withAlphaComponent\s*\(\s*0\.48\s*\)",
+    support,
+    "App note bubble placeholder must use an explicit readable-but-secondary white alpha color",
+)
+require(
+    r"placeholderAttributedString\s*=\s*NSAttributedString\s*\((?P<body>.*?)attributes\s*:\s*Self\.placeholderAttributes",
+    support,
+    "App note bubble must apply the explicit placeholder color through placeholderAttributedString",
+)
+if "field.placeholderString = placeholder" in support:
+    fail("App note bubble must not rely on the system default placeholderString color")
+require(
     r"AppBubbleNoteTextField\s*\((?P<body>.*?)text\s*:\s*\$draftNote(?P<body2>.*?)isFocused\s*:\s*noteFocused(?P<body3>.*?)onCommit\s*:\s*onCommit(?P<body4>.*?)onCancel\s*:\s*onCancel",
     support,
     "AppNameBubble must route draft text, focus, submit, and cancel through the native note editor",

--
Gitblit v1.9.3