Switch to material components themes

pull/757/head
Alex Baker 6 years ago
parent 02d09b0181
commit 09165ad306

@ -21,7 +21,7 @@
<androidx.appcompat.widget.AppCompatSpinner
android:id="@+id/frequency"
style="Widget.AppCompat.Spinner"
style="Widget.MaterialComponents.Spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
@ -119,7 +119,7 @@
<Spinner
android:id="@+id/repeat_until"
style="Widget.AppCompat.Spinner"
style="Widget.MaterialComponents.Spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/keyline_first"

@ -8,5 +8,5 @@
android:elevation="@dimen/elevation_toolbar"
app:popupTheme="@style/popup_overlay"
app:theme="?attr/overlay_theme"
app:toolbarStyle="@style/Widget.AppCompat.Toolbar"
app:toolbarStyle="@style/Widget.MaterialComponents.Toolbar"
tools:ignore="UnusedAttribute"/>

@ -1,4 +1,9 @@
<resources>
<style name="DayNight" parent="Theme.MaterialComponents.NoActionBar"/>
<style name="DayNightDialog" parent="Theme.MaterialComponents.Dialog"/>
<style name="DayNightAlert" parent="Theme.MaterialComponents.Dialog.Alert"/>
<style name="popup_overlay" parent="ThemeOverlay.AppCompat"/>
</resources>

@ -2,14 +2,14 @@
<!-- ========================================================== General -->
<style name="popup_overlay" parent="ThemeOverlay.AppCompat.Light"/>
<style name="popup_overlay" parent="ThemeOverlay.MaterialComponents.Light"/>
<style name="SpinnerNoPadding" parent="Widget.AppCompat.TextView.SpinnerItem">
<item name="android:paddingLeft">0dp</item>
<item name="android:paddingRight">0dp</item>
</style>
<style name="TranslucentDialog" parent="Theme.AppCompat.Light.Dialog">
<style name="TranslucentDialog" parent="Theme.MaterialComponents.Light.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
@ -48,11 +48,11 @@
<item name="fab_text">@color/black_87</item>
</style>
<style name="WhiteToolbarOverlay" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<style name="WhiteToolbarOverlay" parent="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
<item name="colorControlNormal">@color/white_100</item>
</style>
<style name="BlackToolbarOverlay" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<style name="BlackToolbarOverlay" parent="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar">
<item name="colorControlNormal">@color/black_87</item>
</style>

@ -1,7 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="TasksBase" parent="Theme.AppCompat.DayNight.NoActionBar">
<style name="DayNight" parent="Theme.MaterialComponents.Light.NoActionBar" />
<style name="DayNightDialog" parent="Theme.MaterialComponents.Light.Dialog" />
<style name="DayNightAlert" parent="Theme.MaterialComponents.Light.Dialog.Alert" />
<style name="TasksBase" parent="DayNight">
<item name="android:windowBackground">@null</item>
<item name="windowActionModeOverlay">true</item>
<item name="asWindowBackground">@color/window_background</item>
@ -27,14 +33,14 @@
<style name="Tasks" parent="TasksBase"/>
<style name="TasksDialogAlert" parent="@style/Theme.AppCompat.DayNight.Dialog.Alert">
<style name="TasksDialogAlert" parent="DayNightAlert">
<item name="android:windowBackground">@color/dialog_background</item>
<item name="colorAccent">?attr/colorAccentDialog</item>
<item name="asTextColor">@color/text_primary</item>
<item name="icon_tint">@color/icon_tint</item>
</style>
<style name="TasksDialog" parent="@style/Theme.AppCompat.DayNight.Dialog">
<style name="TasksDialog" parent="DayNightDialog">
<item name="android:windowBackground">@color/dialog_background</item>
<item name="colorAccent">?attr/colorAccentDialog</item>
<item name="asTextColor">@color/text_primary</item>

Loading…
Cancel
Save