ui: abstract out theme attributes to reduce overlap
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
9ace8dd928
commit
8e9b2c6f05
@ -1,29 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
|
<style name="AppTheme" parent="WireGuardTheme">
|
||||||
<item name="colorPrimary">@color/primary_color</item>
|
|
||||||
<item name="colorOnPrimary">@color/color_control_normal</item>
|
|
||||||
<item name="colorPrimaryDark">@color/primary_color</item>
|
|
||||||
<item name="colorPrimaryVariant">@color/primary_light_color</item>
|
|
||||||
<item name="colorSecondary">@color/secondary_color</item>
|
|
||||||
<item name="colorOnSecondary">@color/secondary_text_color</item>
|
|
||||||
<item name="colorSurface">@color/primary_color</item>
|
|
||||||
<item name="colorOnSurface">@color/color_control_normal</item>
|
|
||||||
<item name="colorBackground">@color/primary_color</item>
|
|
||||||
<item name="colorControlNormal">@color/color_control_normal</item>
|
|
||||||
<item name="colorMultiselectActiveBackground">@color/list_multiselect_background</item>
|
|
||||||
<item name="elevationOverlayColor">@color/primary_light_color</item>
|
|
||||||
<item name="elevationOverlayEnabled">true</item>
|
|
||||||
<item name="android:colorBackground">@color/primary_color</item>
|
|
||||||
<item name="android:navigationBarColor">@color/navigation_bar_color</item>
|
<item name="android:navigationBarColor">@color/navigation_bar_color</item>
|
||||||
<item name="android:statusBarColor">@color/status_bar_color</item>
|
|
||||||
<item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
|
<item name="android:windowLightNavigationBar">@bool/light_navigation_bar</item>
|
||||||
<item name="android:windowLightStatusBar">@bool/light_status_bar</item>
|
<item name="android:windowLightStatusBar">@bool/light_status_bar</item>
|
||||||
<item name="android:windowBackground">@color/primary_color</item>
|
|
||||||
<item name="alertDialogTheme">@style/AppTheme.Dialog</item>
|
|
||||||
<item name="materialAlertDialogTheme">@style/AppTheme.Dialog</item>
|
|
||||||
<item name="textInputStyle">@style/TextInputLayoutBase</item>
|
|
||||||
<item name="materialCardViewStyle">@style/AppTheme.MaterialCardView</item>
|
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
|
<style name="WireGuardTheme" parent="Theme.MaterialComponents.DayNight">
|
||||||
<item name="colorPrimary">@color/primary_color</item>
|
<item name="colorPrimary">@color/primary_color</item>
|
||||||
<item name="colorOnPrimary">@color/color_control_normal</item>
|
<item name="colorOnPrimary">@color/color_control_normal</item>
|
||||||
<item name="colorPrimaryDark">@color/primary_color</item>
|
<item name="colorPrimaryDark">@color/primary_color</item>
|
||||||
@ -23,6 +23,8 @@
|
|||||||
<item name="materialCardViewStyle">@style/AppTheme.MaterialCardView</item>
|
<item name="materialCardViewStyle">@style/AppTheme.MaterialCardView</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="AppTheme" parent="WireGuardTheme" />
|
||||||
|
|
||||||
<style name="AppTheme.MaterialCardView" parent="Widget.MaterialComponents.CardView">
|
<style name="AppTheme.MaterialCardView" parent="Widget.MaterialComponents.CardView">
|
||||||
<item name="cornerRadius">4dp</item>
|
<item name="cornerRadius">4dp</item>
|
||||||
<item name="cardElevation">4dp</item>
|
<item name="cardElevation">4dp</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user