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

Commit b84b3e6d authored by Andrew Sapperstein's avatar Andrew Sapperstein
Browse files

Add some themes to let Settings use DeviceDefault.

There were a couple of material themes without the equivalent
DeviceDefault variants.

Also added a new theme overlay that styles something like the
dark action bar but also overrides the accent color.

BUG: 28625050
Change-Id: I2c119a22cb99169a0fed293046fba25d516c7e73
parent cac2dd8c
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -733,6 +733,20 @@ easier.
        <item name="colorAccent">@color/accent_device_default_light</item>
    </style>

    <style name="Theme.DeviceDefault.Settings.DialogWhenLarge" parent="Theme.Material.Settings.DialogWhenLarge">
        <!-- Color palette -->
        <item name="colorPrimary">@color/primary_device_default_settings</item>
        <item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
        <item name="colorAccent">@color/accent_device_default_light</item>
    </style>

    <style name="Theme.DeviceDefault.Settings.Dialog.Alert" parent="Theme.Material.Settings.Dialog.Alert">
        <!-- Color palette -->
        <item name="colorPrimary">@color/primary_device_default_settings</item>
        <item name="colorPrimaryDark">@color/primary_dark_device_default_settings</item>
        <item name="colorAccent">@color/accent_device_default_light</item>
    </style>

    <!-- Theme used for the intent picker activity. -->
    <style name="Theme.DeviceDefault.Resolver" parent="Theme.Material.Light">
        <item name="windowIsTranslucent">true</item>
@@ -764,4 +778,8 @@ easier.
        <item name="colorAccent">@color/accent_device_default_light</item>
    </style>

    <style name="ThemeOverlay.DeviceDefault.Dark.ActionBar.Accent" parent="ThemeOverlay.Material.Dark.ActionBar">
        <item name="colorAccent">@color/accent_device_default_dark</item>
    </style>

</resources>