Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5427b9a7 authored by Alan Viverette's avatar Alan Viverette
Browse files

Update new TimePicker widget to match Settings theme

BUG: 11218747
Change-Id: I093e16df14832502af0ac28e19e3ad672a51e1d6
parent 9b435f29
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@
        <!-- Redefine the ActionBar style for contentInsetStart -->
        <item name="android:actionBarStyle">@style/Theme.ActionBar</item>

        <!-- For all Alert Dialogs -->
        <item name="android:alertDialogTheme">@style/Theme.AlertDialog</item>

        <!-- LockPatternView colors -->
@@ -104,6 +105,9 @@
        <item name="@*android:successColor">@color/lock_pattern_view_success_color</item>
        <item name="@*android:errorColor">@color/lock_pattern_view_error_color</item>

        <!-- For the TimePicker -->
        <item name="@android:timePickerDialogTheme">@style/Theme.TimePicker</item>
        <item name="@android:timePickerStyle">@style/Theme.TimePickerStyle</item>
    </style>

    <style name="Theme.SubSettings" parent="Theme.Settings">
@@ -180,4 +184,20 @@
        <item name="dashboardBackgroundColor">@android:color/transparent</item>
    </style>

    <style name="Theme.TimePicker" parent="@*android:style/Theme.Material.Light.Dialog.TimePicker">
        <!-- Used by the ActionBar -->
        <item name="android:colorPrimary">@color/theme_primary</item>
        <!-- Used by the StatusBar -->
        <item name="android:colorPrimaryDark">@color/theme_primary_dark</item>
        <!-- Used by controls, e.g. CheckBox, ProgressBar, etc. -->
        <item name="android:colorAccent">@color/theme_accent</item>

        <!-- Redefine the ActionBar style for contentInsetStart -->
        <item name="android:actionBarStyle">@style/Theme.ActionBar</item>
    </style>

    <style name="Theme.TimePickerStyle" parent="@*android:style/Widget.Material.Light.TimePicker">
        <item name="@android:numbersBackgroundColor">@android:color/white</item>
    </style>

</resources>