From 8e987d9bfb9c69daf306c52d84d8ea480eb4d73a Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 16 Jun 2015 13:52:10 -0700 Subject: Finish storage wizard theming. Storage wizard screens now have updated assets from UX, and various assets are tinted consistently. We're using our own navigation bar and wholesale replacing the layout from upstream. Fix text colors in night mode. Tell SystemUI when we're finished with the wizard flow. Bug: 21830731 Change-Id: Ic8d09cc152bfb4dcc6089b5c61d28cbdd4be3ee9 --- res/color/storage_wizard_button.xml | 22 ++++++ res/color/storage_wizard_button_red.xml | 22 ++++++ res/drawable-hdpi/bg_internal_storage_header.png | Bin 0 -> 38885 bytes res/drawable-hdpi/bg_portable_storage_header.png | Bin 0 -> 38232 bytes res/drawable-hdpi/bg_tile.png | Bin 0 -> 6397 bytes res/drawable-mdpi/bg_internal_storage_header.png | Bin 0 -> 19121 bytes res/drawable-mdpi/bg_portable_storage_header.png | Bin 0 -> 18813 bytes res/drawable-mdpi/bg_tile.png | Bin 0 -> 3191 bytes res/drawable-xhdpi/bg_internal_storage_header.png | Bin 0 -> 61765 bytes res/drawable-xhdpi/bg_portable_storage_header.png | Bin 0 -> 60763 bytes res/drawable-xhdpi/bg_tile.png | Bin 0 -> 10041 bytes res/drawable-xxhdpi/bg_internal_storage_header.png | Bin 0 -> 120799 bytes res/drawable-xxhdpi/bg_portable_storage_header.png | Bin 0 -> 118776 bytes res/drawable-xxhdpi/bg_tile.png | Bin 0 -> 17946 bytes .../bg_internal_storage_header.png | Bin 0 -> 187831 bytes .../bg_portable_storage_header.png | Bin 0 -> 184627 bytes res/drawable-xxxhdpi/bg_tile.png | Bin 0 -> 24733 bytes res/layout/preference_storage_action.xml | 1 + res/layout/storage_summary.xml | 2 +- res/layout/storage_wizard_generic.xml | 4 +- res/layout/storage_wizard_init.xml | 6 +- res/layout/storage_wizard_migrate.xml | 4 +- res/layout/storage_wizard_navigation.xml | 52 ++++++++++++++ res/layout/storage_wizard_progress.xml | 4 +- res/layout/storage_wizard_ready.xml | 4 +- res/values/styles.xml | 4 ++ .../deviceinfo/StorageVolumePreference.java | 1 - .../settings/deviceinfo/StorageWizardBase.java | 79 +++++++++++++++------ .../deviceinfo/StorageWizardFormatConfirm.java | 3 +- .../deviceinfo/StorageWizardFormatProgress.java | 1 + .../settings/deviceinfo/StorageWizardInit.java | 3 + .../settings/deviceinfo/StorageWizardMigrate.java | 5 +- .../deviceinfo/StorageWizardMigrateConfirm.java | 1 + .../deviceinfo/StorageWizardMigrateProgress.java | 10 ++- .../deviceinfo/StorageWizardMoveConfirm.java | 1 + .../deviceinfo/StorageWizardMoveProgress.java | 1 + .../settings/deviceinfo/StorageWizardReady.java | 3 +- 37 files changed, 186 insertions(+), 47 deletions(-) create mode 100644 res/color/storage_wizard_button.xml create mode 100644 res/color/storage_wizard_button_red.xml create mode 100644 res/drawable-hdpi/bg_internal_storage_header.png create mode 100644 res/drawable-hdpi/bg_portable_storage_header.png create mode 100644 res/drawable-hdpi/bg_tile.png create mode 100644 res/drawable-mdpi/bg_internal_storage_header.png create mode 100644 res/drawable-mdpi/bg_portable_storage_header.png create mode 100644 res/drawable-mdpi/bg_tile.png create mode 100644 res/drawable-xhdpi/bg_internal_storage_header.png create mode 100644 res/drawable-xhdpi/bg_portable_storage_header.png create mode 100644 res/drawable-xhdpi/bg_tile.png create mode 100644 res/drawable-xxhdpi/bg_internal_storage_header.png create mode 100644 res/drawable-xxhdpi/bg_portable_storage_header.png create mode 100644 res/drawable-xxhdpi/bg_tile.png create mode 100644 res/drawable-xxxhdpi/bg_internal_storage_header.png create mode 100644 res/drawable-xxxhdpi/bg_portable_storage_header.png create mode 100644 res/drawable-xxxhdpi/bg_tile.png create mode 100644 res/layout/storage_wizard_navigation.xml diff --git a/res/color/storage_wizard_button.xml b/res/color/storage_wizard_button.xml new file mode 100644 index 000000000..38c7d523e --- /dev/null +++ b/res/color/storage_wizard_button.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/res/color/storage_wizard_button_red.xml b/res/color/storage_wizard_button_red.xml new file mode 100644 index 000000000..9e9a90845 --- /dev/null +++ b/res/color/storage_wizard_button_red.xml @@ -0,0 +1,22 @@ + + + + + + + diff --git a/res/drawable-hdpi/bg_internal_storage_header.png b/res/drawable-hdpi/bg_internal_storage_header.png new file mode 100644 index 000000000..ccb595159 Binary files /dev/null and b/res/drawable-hdpi/bg_internal_storage_header.png differ diff --git a/res/drawable-hdpi/bg_portable_storage_header.png b/res/drawable-hdpi/bg_portable_storage_header.png new file mode 100644 index 000000000..fa640f08f Binary files /dev/null and b/res/drawable-hdpi/bg_portable_storage_header.png differ diff --git a/res/drawable-hdpi/bg_tile.png b/res/drawable-hdpi/bg_tile.png new file mode 100644 index 000000000..0680c57f5 Binary files /dev/null and b/res/drawable-hdpi/bg_tile.png differ diff --git a/res/drawable-mdpi/bg_internal_storage_header.png b/res/drawable-mdpi/bg_internal_storage_header.png new file mode 100644 index 000000000..a4f263d9b Binary files /dev/null and b/res/drawable-mdpi/bg_internal_storage_header.png differ diff --git a/res/drawable-mdpi/bg_portable_storage_header.png b/res/drawable-mdpi/bg_portable_storage_header.png new file mode 100644 index 000000000..9b21825aa Binary files /dev/null and b/res/drawable-mdpi/bg_portable_storage_header.png differ diff --git a/res/drawable-mdpi/bg_tile.png b/res/drawable-mdpi/bg_tile.png new file mode 100644 index 000000000..bd361f0f4 Binary files /dev/null and b/res/drawable-mdpi/bg_tile.png differ diff --git a/res/drawable-xhdpi/bg_internal_storage_header.png b/res/drawable-xhdpi/bg_internal_storage_header.png new file mode 100644 index 000000000..289b31cbf Binary files /dev/null and b/res/drawable-xhdpi/bg_internal_storage_header.png differ diff --git a/res/drawable-xhdpi/bg_portable_storage_header.png b/res/drawable-xhdpi/bg_portable_storage_header.png new file mode 100644 index 000000000..76154ff8c Binary files /dev/null and b/res/drawable-xhdpi/bg_portable_storage_header.png differ diff --git a/res/drawable-xhdpi/bg_tile.png b/res/drawable-xhdpi/bg_tile.png new file mode 100644 index 000000000..dc5b24c31 Binary files /dev/null and b/res/drawable-xhdpi/bg_tile.png differ diff --git a/res/drawable-xxhdpi/bg_internal_storage_header.png b/res/drawable-xxhdpi/bg_internal_storage_header.png new file mode 100644 index 000000000..ed01721c1 Binary files /dev/null and b/res/drawable-xxhdpi/bg_internal_storage_header.png differ diff --git a/res/drawable-xxhdpi/bg_portable_storage_header.png b/res/drawable-xxhdpi/bg_portable_storage_header.png new file mode 100644 index 000000000..df6b38e83 Binary files /dev/null and b/res/drawable-xxhdpi/bg_portable_storage_header.png differ diff --git a/res/drawable-xxhdpi/bg_tile.png b/res/drawable-xxhdpi/bg_tile.png new file mode 100644 index 000000000..bf28300ab Binary files /dev/null and b/res/drawable-xxhdpi/bg_tile.png differ diff --git a/res/drawable-xxxhdpi/bg_internal_storage_header.png b/res/drawable-xxxhdpi/bg_internal_storage_header.png new file mode 100644 index 000000000..26cae965e Binary files /dev/null and b/res/drawable-xxxhdpi/bg_internal_storage_header.png differ diff --git a/res/drawable-xxxhdpi/bg_portable_storage_header.png b/res/drawable-xxxhdpi/bg_portable_storage_header.png new file mode 100644 index 000000000..78003f820 Binary files /dev/null and b/res/drawable-xxxhdpi/bg_portable_storage_header.png differ diff --git a/res/drawable-xxxhdpi/bg_tile.png b/res/drawable-xxxhdpi/bg_tile.png new file mode 100644 index 000000000..7d221707c Binary files /dev/null and b/res/drawable-xxxhdpi/bg_tile.png differ diff --git a/res/layout/preference_storage_action.xml b/res/layout/preference_storage_action.xml index 19d776324..5a378713a 100644 --- a/res/layout/preference_storage_action.xml +++ b/res/layout/preference_storage_action.xml @@ -30,6 +30,7 @@ android:layout_gravity="center" android:gravity="center" android:src="@drawable/ic_eject_24dp" + android:tint="?android:attr/textColorSecondary" android:background="?android:attr/selectableItemBackground" /> diff --git a/res/layout/storage_summary.xml b/res/layout/storage_summary.xml index cd63671b1..96a0ceedc 100644 --- a/res/layout/storage_summary.xml +++ b/res/layout/storage_summary.xml @@ -44,7 +44,7 @@ android:layout_height="wrap_content" android:textAlignment="viewStart" android:textAppearance="@android:style/TextAppearance.Material.Body1" - android:textColor="#8a000000" + android:textColor="?android:attr/textColorSecondaryNoDisable" android:maxLines="10" /> + app:suwBackgroundTile="@drawable/bg_tile"> - - + app:suwBackgroundTile="@drawable/bg_tile"> + app:suwBackgroundTile="@drawable/bg_tile"> + + + + +