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
40 lines
2.4 KiB
XML
40 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<!-- User-requested OLED theme. MainActivity fixes night mode for system widgets too. -->
|
|
<style name="Theme.EVABRPUploader" parent="Theme.Material3.DayNight.NoActionBar">
|
|
<!-- Dynamic Red; MainActivity lays the chosen accent over these (values/accents.xml). -->
|
|
<item name="evAccent">#E0424C</item>
|
|
<item name="evOnAccent">#1A0B0C</item>
|
|
<item name="evAccentLight">#FF9A9E</item>
|
|
<item name="evAccentDeep">#3A1215</item>
|
|
<item name="evAccentSurface">#2A1416</item>
|
|
<item name="evAccentStroke">#80703A3D</item>
|
|
<item name="evAccentTrack">#5E3436</item>
|
|
<item name="colorPrimary">?attr/evAccent</item>
|
|
<item name="colorSecondary">?attr/evAccentLight</item>
|
|
<item name="colorControlActivated">?attr/evAccentLight</item>
|
|
<item name="android:fontFamily">sans-serif</item>
|
|
<item name="android:windowLightStatusBar">false</item>
|
|
<item name="android:windowLightNavigationBar">false</item>
|
|
<item name="android:navigationBarColor">@color/ev_background</item>
|
|
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
|
|
<item name="colorOnPrimary">?attr/evOnAccent</item>
|
|
<item name="colorSurface">@color/ev_surface</item>
|
|
<item name="colorSurfaceContainer">@color/ev_surface_raised</item>
|
|
<item name="android:colorBackground">@color/ev_background</item>
|
|
<item name="android:windowBackground">@color/ev_background</item>
|
|
<item name="colorError">@color/ev_error</item>
|
|
<item name="android:statusBarColor">@color/ev_background</item>
|
|
<!-- Material3's "on surface" is a grey-mauve that is comfortable indoors and
|
|
too weak in full sun: a hard contrast is imposed instead. -->
|
|
<item name="colorOnSurface">@color/ev_text_primary</item>
|
|
<item name="colorOnSurfaceVariant">@color/ev_text_secondary</item>
|
|
<item name="colorOnBackground">@color/ev_text_primary</item>
|
|
<item name="colorOutline">@color/ev_outline</item>
|
|
<item name="android:textColorPrimary">@color/ev_text_primary</item>
|
|
<item name="android:textColorSecondary">@color/ev_text_secondary</item>
|
|
<item name="materialAlertDialogTheme">@style/ThemeOverlay.EV.Dialog</item>
|
|
</style>
|
|
</resources>
|