diff --git a/AGENTS.md b/AGENTS.md index d441d2e..c0a61f0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -102,8 +102,9 @@ Gotchas learned the hard way: .combine)` (or a Button/control) to be queryable. - List/Form section headers render uppercased unless `.textCase(nil)` — tests assert exact header strings. -- Inside tinted Button rows, hierarchical `.primary`/`.secondary` foreground - styles resolve to the tint; use concrete `Color.primary`/`Color.secondary`. +- Inside tinted Button rows, hierarchical `.primary`/`.secondary`/`.tertiary` + foreground styles resolve to the tint (e.g. blue chevrons); use concrete + `Color.primary`/`Color.secondary`/`Color(.tertiaryLabel)`. - The unblock confirmation dialog is queried via `app.sheets.buttons[...]` (a bare `buttons["Unblock"]` is ambiguous with the row label). diff --git a/OpenAppLock/Views/Rules/NewRuleSheet.swift b/OpenAppLock/Views/Rules/NewRuleSheet.swift index 9feaee4..8ae1481 100644 --- a/OpenAppLock/Views/Rules/NewRuleSheet.swift +++ b/OpenAppLock/Views/Rules/NewRuleSheet.swift @@ -80,7 +80,7 @@ struct NewRuleSheet: View { Spacer() Image(systemName: "chevron.right") .font(.caption.weight(.semibold)) - .foregroundStyle(.tertiary) + .foregroundStyle(Color(.tertiaryLabel)) } } .accessibilityIdentifier("ruleKind-\(kind.rawValue)") diff --git a/OpenAppLock/Views/Rules/RuleEditorView.swift b/OpenAppLock/Views/Rules/RuleEditorView.swift index dba03c8..7d1da12 100644 --- a/OpenAppLock/Views/Rules/RuleEditorView.swift +++ b/OpenAppLock/Views/Rules/RuleEditorView.swift @@ -216,7 +216,7 @@ struct RuleEditorView: View { .foregroundStyle(Color.secondary) Image(systemName: "chevron.right") .font(.caption.weight(.semibold)) - .foregroundStyle(.tertiary) + .foregroundStyle(Color(.tertiaryLabel)) } } .accessibilityIdentifier("selectedAppsRow")