Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Say in AGENTS.md and ARCHITECTURE.md how switches and colors now work

Țugui Dragoș52afe371baec
diff --git a/AGENTS.md b/AGENTS.md
index bb39b0ff..66fe9228 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -187,9 +187,15 @@ Peel runs on macOS 26 and later, and the two versions are treated differently in
screen reads as macOS, with system type, `Form` and `Section`, and native controls. Icons are SF Symbols, and the
logo comes only from `Logo/`, but for the face at the head of the sidebar, which draws the logo's shape in code so
it can move (`Face` in `PeelFace.swift`): a change to the logo's shape changes those numbers too.
-- Everything can be used without a pointer. A switch whose label is hidden carries an
- `accessibilityRepresentation` that VoiceOver, Voice Control, and Switch Control can press, and every control is at
- least 20 by 20 points. Text takes the system's styles by role, so it follows the system's text size.
+- Everything can be used without a pointer. VoiceOver, Voice Control, and Switch Control can press every switch,
+ named by its row's title: on macOS 27 a row's switch is `RowSwitch`, whose label is empty rather than hidden,
+ since a hidden label leaves AppKit's own switch outside the accessibility tree; on macOS 26 a switch whose label is
+ hidden carries an `accessibilityRepresentation`. Every control is at least 20 by 20 points, and text takes the
+ system's styles by role, so it follows the system's text size.
+- **Words take no color of their own** outside Home, the menu bar panel, and About: orange, green, red, blue, or the
+ accent color read under the 4.5:1 text needs on a light background. The color goes on a symbol beside the words,
+ which keep the style of the text around them: `StatusLabel` for a warning or a state, a `Badge`'s `tint`, and a
+ note's `caution`.
- Rows of a long list stay cheap to build. A checkbox in a row is `NativeCheckbox` beside the item, with
`checkboxTitleLine()` on the first line of its title and `checkboxTitle()` on the title, rather than a checkbox
`Toggle` whose label is the row; Duplicates' rows keep their `Toggle`, where the AppKit checkbox costs as much. A
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 73da91a3..a0e67266 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -203,7 +203,8 @@ macOS asks the user to approve it once. It talks to the app over XPC.
- **Concurrency.** The app target runs on the main actor by default. Heavy work lives in PeelCore and is marked
`@concurrent`, so it runs off the main actor.
- **Two looks.** Home, the menu bar panel, and About use Peel's own look, a paper sheet with stickers. Every
- other page reads as macOS: system type, forms, native controls, and Liquid Glass only on floating controls.
+ other page reads as macOS: system type, forms, native controls, color on symbols rather than on words, and Liquid
+ Glass only on floating controls.
- **Languages.** Every string a person reads is in the string catalogs in `Localization/`, translated into 17
languages. The key is the English, so changing a sentence means translating it again; the tests fail until
every language has it. PeelCore never translates: it returns plain English, and the app turns known