mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 07:53:15 +00:00
APIレベル27以上でシステムナビゲーションのアイコン色を適切に変更できるようにした
This commit is contained in:
parent
defc051436
commit
def799bbe6
35
shared/ui/src/main/res/values-night-v27/themes.xml
Normal file
35
shared/ui/src/main/res/values-night-v27/themes.xml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="Base.Theme.Lacerta" parent="Theme.Material3.DayNight.NoActionBar">
|
||||||
|
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorOnPrimary">@color/colorOnPrimary</item>
|
||||||
|
<item name="colorSecondary">@color/colorSecondary</item>
|
||||||
|
<item name="colorOnSecondary">@color/colorOnSecondary</item>
|
||||||
|
<item name="colorSurface">@color/colorSurface</item>
|
||||||
|
<item name="colorOnSurface">@color/colorOnSurface</item>
|
||||||
|
<item name="colorSurfaceVariant">@color/colorSurfaceVariant</item>
|
||||||
|
<item name="colorOnSurfaceVariant">@color/colorOnSurfaceVariant</item>
|
||||||
|
<item name="colorSurfaceInverse">@color/colorSurfaceInverse</item>
|
||||||
|
<item name="colorOnSurfaceInverse">@color/colorOnSurfaceInverse</item>
|
||||||
|
<item name="colorPrimaryInverse">@color/colorPrimaryInverse</item>
|
||||||
|
<item name="colorPrimaryContainer">@color/colorPrimaryContainer</item>
|
||||||
|
<item name="colorOnPrimaryContainer">@color/colorOnPrimaryContainer</item>
|
||||||
|
<item name="colorSecondaryContainer">@color/colorSecondaryContainer</item>
|
||||||
|
<item name="colorOnSecondaryContainer">@color/colorOnSecondaryContainer</item>
|
||||||
|
<item name="colorTertiary">@color/colorTertiary</item>
|
||||||
|
<item name="colorOnTertiary">@color/colorOnTertiary</item>
|
||||||
|
<item name="colorTertiaryContainer">@color/colorTertiaryContainer</item>
|
||||||
|
<item name="colorOnTertiaryContainer">@color/colorOnTertiaryContainer</item>
|
||||||
|
<item name="colorError">@color/colorError</item>
|
||||||
|
<item name="colorOnError">@color/colorOnError</item>
|
||||||
|
<item name="colorErrorContainer">@color/colorErrorContainer</item>
|
||||||
|
<item name="colorOnErrorContainer">@color/colorOnErrorContainer</item>
|
||||||
|
<item name="colorOutline">@color/colorOutline</item>
|
||||||
|
<item name="colorOnBackground">@color/colorOnBackground</item>
|
||||||
|
|
||||||
|
<item name="android:windowLightNavigationBar">false</item>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
</resources>
|
35
shared/ui/src/main/res/values-v27/themes.xml
Normal file
35
shared/ui/src/main/res/values-v27/themes.xml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="Base.Theme.Lacerta" parent="Theme.Material3.DayNight.NoActionBar">
|
||||||
|
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorOnPrimary">@color/colorOnPrimary</item>
|
||||||
|
<item name="colorSecondary">@color/colorSecondary</item>
|
||||||
|
<item name="colorOnSecondary">@color/colorOnSecondary</item>
|
||||||
|
<item name="colorSurface">@color/colorSurface</item>
|
||||||
|
<item name="colorOnSurface">@color/colorOnSurface</item>
|
||||||
|
<item name="colorSurfaceVariant">@color/colorSurfaceVariant</item>
|
||||||
|
<item name="colorOnSurfaceVariant">@color/colorOnSurfaceVariant</item>
|
||||||
|
<item name="colorSurfaceInverse">@color/colorSurfaceInverse</item>
|
||||||
|
<item name="colorOnSurfaceInverse">@color/colorOnSurfaceInverse</item>
|
||||||
|
<item name="colorPrimaryInverse">@color/colorPrimaryInverse</item>
|
||||||
|
<item name="colorPrimaryContainer">@color/colorPrimaryContainer</item>
|
||||||
|
<item name="colorOnPrimaryContainer">@color/colorOnPrimaryContainer</item>
|
||||||
|
<item name="colorSecondaryContainer">@color/colorSecondaryContainer</item>
|
||||||
|
<item name="colorOnSecondaryContainer">@color/colorOnSecondaryContainer</item>
|
||||||
|
<item name="colorTertiary">@color/colorTertiary</item>
|
||||||
|
<item name="colorOnTertiary">@color/colorOnTertiary</item>
|
||||||
|
<item name="colorTertiaryContainer">@color/colorTertiaryContainer</item>
|
||||||
|
<item name="colorOnTertiaryContainer">@color/colorOnTertiaryContainer</item>
|
||||||
|
<item name="colorError">@color/colorError</item>
|
||||||
|
<item name="colorOnError">@color/colorOnError</item>
|
||||||
|
<item name="colorErrorContainer">@color/colorErrorContainer</item>
|
||||||
|
<item name="colorOnErrorContainer">@color/colorOnErrorContainer</item>
|
||||||
|
<item name="colorOutline">@color/colorOutline</item>
|
||||||
|
<item name="colorOnBackground">@color/colorOnBackground</item>
|
||||||
|
|
||||||
|
<item name="android:windowLightNavigationBar">true</item>
|
||||||
|
|
||||||
|
</style>
|
||||||
|
</resources>
|
|
@ -28,6 +28,7 @@
|
||||||
<item name="colorOutline">@color/colorOutline</item>
|
<item name="colorOutline">@color/colorOutline</item>
|
||||||
<item name="colorOnBackground">@color/colorOnBackground</item>
|
<item name="colorOnBackground">@color/colorOnBackground</item>
|
||||||
|
|
||||||
|
<item name="android:windowLightNavigationBar">true</item>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user