mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-11-04 08:56:59 +01:00
storedPalette() reads and resolves the theme file without building the engine, so onCreate can set the window background and system-bar icon polarity before anything draws. Previously the background was a hex literal in themes.xml and the bar icons were pinned dark, which meant every cold start flashed one flavour's colour and Latte drew white icons on a near-white page. Adds the Material scheme mapping, type ramp and shape tokens the palette feeds, plus unit tests for both.
24 lines
1.2 KiB
XML
24 lines
1.2 KiB
XML
<resources>
|
|
<!--
|
|
The window before Compose owns it.
|
|
|
|
Everything about the *look* is decided by the stored palette and applied
|
|
in MainActivity.dressWindow: the background colour here is only the one
|
|
the shipped default resolves to, so that a first-ever launch — before
|
|
there is a theme file to read — starts on the right colour rather than on
|
|
the platform's white. The bar polarity is likewise set from the palette;
|
|
what is left here is the dark reading, which is right for four of the five
|
|
flavours and is corrected in the same frame for the fifth.
|
|
|
|
A hex literal from one specific flavour used to live here, and it was the
|
|
reason every cold start flashed Catppuccin Mocha's base regardless of what
|
|
the viewer had chosen.
|
|
-->
|
|
<style name="Theme.ProtonStream" parent="android:style/Theme.Material.NoActionBar">
|
|
<item name="android:fontFamily">sans</item>
|
|
<item name="android:windowLightStatusBar">false</item>
|
|
<item name="android:windowLightNavigationBar">false</item>
|
|
<item name="android:windowBackground">@color/window_background</item>
|
|
</style>
|
|
</resources>
|