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

Commit 137437e1 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Update colors of the create dir dialog in DocumentsUI.

Change-Id: I3c7d452999eb0d18c87a2e767cfc69b0cb1c4928
parent 42e07954
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@
        <item name="android:windowNoTitle">true</item>

        <item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item>
        <item name="android:alertDialogTheme">@android:style/Theme.Material.Light.Dialog.Alert</item>
    </style>

    <style name="DocumentsNonDialogTheme" parent="@android:style/Theme.Material.DayNight.DarkActionBar">
@@ -58,6 +59,10 @@
        <item name="android:background">@color/material_grey_600</item>
    </style>

    <style name="AlertDialogTheme" parent="@android:style/Theme.Material.Light.Dialog.Alert">
        <item name="android:colorAccent">@color/material_blue_700</item>
    </style>

    <style name="StandaloneTheme" parent="@android:style/Theme.Material.DayNight.DarkActionBar">
        <item name="android:actionBarWidgetTheme">@null</item>

@@ -73,6 +78,7 @@
        <item name="android:windowNoTitle">true</item>

        <item name="android:windowSoftInputMode">stateUnspecified|adjustUnspecified</item>
        <item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
    </style>

</resources>
+1 −5
Original line number Diff line number Diff line
@@ -60,11 +60,7 @@ public class CreateDirectoryFragment extends DialogFragment {
        final Context context = getActivity();
        final ContentResolver resolver = context.getContentResolver();

        // We need to specify android.R.style.Theme_DeviceDefault_Dialog explicitly,
        // because the application theme 'DialogWhenReallyLarge' has
        // fixed window size properties for large screen devices.
        final AlertDialog.Builder builder = new AlertDialog.Builder(
                context, AlertDialog.THEME_DEVICE_DEFAULT_LIGHT);
        final AlertDialog.Builder builder = new AlertDialog.Builder(context);
        final LayoutInflater dialogInflater = LayoutInflater.from(builder.getContext());

        final View view = dialogInflater.inflate(R.layout.dialog_create_dir, null, false);