The accent is selectable in Settings → Display: Dynamic Red (default), Volcano Orange, Holborn Blue, Racing Green, Camden Grey, Monument Silver, Arctic White and Black Pearl. White, silver and black cannot be an accent on the black screen as they are, so they become light greys and a pearl blue-grey. The accent palette is now theme attributes (attrs_accent.xml) with one overlay per paint (accents.xml), applied before the activity inflates; layouts, colour lists, drawables and the views that draw in code use them, including the red tints that were hard-coded. A change recreates the activity on the same page. Android 9 crashes on gradients with theme colours, so the battery card is built from layers. Logs → "Look for the car colour" lists the head unit's system properties that mention colour, paint or car model, to find out whether the paint colour can be read from the car. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QLJfZQZeAKAwSqViTmLzki
14 lines
648 B
XML
14 lines
648 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- The accent palette, a theme attribute each so it can follow the chosen MG4 paint colour
|
|
(values/accents.xml, AccentColor.java). Layouts, colour lists and drawables use ?attr/… for
|
|
these; the fixed neutrals stay in colors.xml. -->
|
|
<resources>
|
|
<attr name="evAccent" format="color" />
|
|
<attr name="evOnAccent" format="color" />
|
|
<attr name="evAccentLight" format="color" />
|
|
<attr name="evAccentDeep" format="color" />
|
|
<attr name="evAccentSurface" format="color" />
|
|
<attr name="evAccentStroke" format="color" />
|
|
<attr name="evAccentTrack" format="color" />
|
|
</resources>
|