| | |
| | | "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", |