themes.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | The one res/ file that could not be omitted. |
| 4 | |
| 5 | The plan assumed `@android:style/Theme.DeviceDefault.DayNight.NoActionBar` |
| 6 | exists so the manifest could point at a framework theme and res/ could stay |
| 7 | empty. It does not: the framework has `Theme.DeviceDefault.DayNight` (API 29+) |
| 8 | and it has `Theme.DeviceDefault.NoActionBar`, but there is no combination of the |
| 9 | two, and `Theme.DeviceDefault` on its own is the dark variant rather than a |
| 10 | day/night one. |
| 11 | |
| 12 | So this file is the minimum needed for the ~150 ms pre-first-frame window to |
| 13 | follow the system light/dark setting *and* not flash an action bar. Six lines, |
| 14 | and no values-night/ counterpart — DayNight already handles that. Everything |
| 15 | else about the app's appearance is Compose. |
| 16 | --> |
| 17 | <resources> |
| 18 | <style name="Theme.OpenTracker" parent="@android:style/Theme.DeviceDefault.DayNight"> |
| 19 | <item name="android:windowActionBar">false</item> |
| 20 | <item name="android:windowNoTitle">true</item> |
| 21 | </style> |
| 22 | </resources> |
| 23 |