fix(mobile): retire les doubles tirets des commentaires du values-night XML
All checks were successful
CI / lint (push) Successful in 2m48s
CI / build (push) Successful in 2m52s
CI / intent-service-test (push) Successful in 4m37s
CI / e2e (push) Successful in 10m8s
CI / test (push) Successful in 17m18s
CI / build-android (push) Has been skipped

`:app:mergeReleaseResources` (job CI `build-android`, main uniquement)
échoue : AAPT interdit la chaîne « -- » à l'intérieur d'un commentaire XML,
et `res/values-night/colors.xml` (issue #104, PR #120) citait les tokens
`_theme.scss` avec leur préfixe de custom-property CSS (`--color-*`) dans
ses commentaires.

Commentaires réécrits sans aucun « -- » (tokens nommés « color-x »), même
convention que `res/values/colors.xml`. Valeurs et éléments `<color>`
inchangés. Non vérifiable en local (pas de JDK 21 sur cette machine) ; le
job `build-android` du prochain run sur `main` valide.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Nicolas 2026-09-08 07:33:32 +02:00
parent 22119adf07
commit e9040f93f4

View file

@ -1,30 +1,30 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
Dark-mode overrides for the native colour resources in Dark-mode overrides for the native colour resources in
../values/colors.xml. Without this file, `AppTheme.NoActionBar`'s ../values/colors.xml. Without this file, AppTheme.NoActionBar's DayNight
`DayNight` parent still resolved `@color/colorPrimaryDark` / parent still resolved @color/colorPrimaryDark / @color/colorBackground to
`@color/colorBackground` to their light values under a dark system their light values under a dark system setting: the status-bar band and
setting: the status-bar band and the pre-WebView window (cold-start the pre-WebView window (cold-start flash + splash ground) stayed on the
flash + splash ground) stayed on the light "porcelaine" palette while light "porcelaine" palette while the rest of the phone, and the app's own
the rest of the phone — and the app's own WebView content — went dark WebView content, went dark (issue #104).
(issue #104).
Keep the hex values in sync with the dark-mode colour tokens in Keep the hex values in sync with the dark-mode colour tokens in
apps/web/src/styles/_theme.scss (the `@media (prefers-color-scheme: dark)` apps/web/src/styles/_theme.scss (the prefers-color-scheme: dark block).
block). Note: XML comments here must not contain a double hyphen, so the theme
tokens are named "color-x", not with their CSS custom-property prefix.
--> -->
<resources> <resources>
<!-- token --color-primary (dark). --> <!-- token color-primary (dark). -->
<color name="colorPrimary">#5FAE7E</color> <color name="colorPrimary">#5FAE7E</color>
<!-- Status-bar band + pre-WebView window in dark mode: the dark <!-- Status-bar band + pre-WebView window in dark mode: the dark
--color-background, so the band is seamless with the dark app color-background, so the band is seamless with the dark app below
below it rather than a stripe of light green. `windowLightStatusBar` it rather than a stripe of light green. windowLightStatusBar stays
stays `false` (light icons) — correct against this near-black just false (light icons), correct against this near-black just as it is
as it is against the light-mode dark-basil. --> against the light-mode dark-basil. -->
<color name="colorPrimaryDark">#14181A</color> <color name="colorPrimaryDark">#14181A</color>
<!-- token --color-accent (dark). --> <!-- token color-accent (dark). -->
<color name="colorAccent">#EA7A48</color> <color name="colorAccent">#EA7A48</color>
<!-- token --color-background (dark) — backs the splash / the window <!-- token color-background (dark), backs the splash and the window
while the WebView is still blank. --> while the WebView is still blank. -->
<color name="colorBackground">#14181A</color> <color name="colorBackground">#14181A</color>
</resources> </resources>