Commit 8d1651ed authored by Theresa's avatar Theresa Committed by Commit Bot

[Modern] Use dark primary color for ManageSpaceActivity

Use the old dark action bar color and status bar color for the
ManageSpaceActivity. On some versions of Android, a white icon is shown
in the ManageSpaceActivity task in Android recents. When the primary
activity color is white, this causes the icon to disappear.

BUG=871193

Change-Id: I6e5bd0c2fe59b64d20367b22254683a8998744c7
Reviewed-on: https://chromium-review.googlesource.com/1163830Reviewed-by: default avatarBecky Zhou <huayinz@chromium.org>
Commit-Queue: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581042}
parent b024d241
......@@ -548,7 +548,7 @@ by a child template that "extends" this file.
android:exported="false">
</activity>
<activity android:name="org.chromium.chrome.browser.preferences.website.ManageSpaceActivity"
android:theme="@style/PreferencesTheme"
android:theme="@style/ManageSpaceTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc|screenLayout|smallestScreenSize"
android:label="@string/storage_management_activity_label"
android:exported="false">
......
......@@ -255,6 +255,16 @@
</style>
<!-- Manage Space Activity -->
<style name="ManageSpaceTheme" parent="PreferencesTheme">
<!-- Action bar color. This is intentionally a dark color. See crbug.com/871193. -->
<item name="colorPrimary">@color/dark_action_bar_color</item>
<!-- Status bar color -->
<item name="colorPrimaryDark">@color/dark_status_bar_color</item>
<item name="actionBarStyle">@style/ManageSpaceActionBarModern</item>
</style>
<style name="ManageSpaceActionBarModern" parent="PreferenceActionBarModern">
<item name="titleTextStyle">@style/WhiteHeadline1</item>
</style>
<style name="ManageSpaceActivityButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
......
......@@ -27,6 +27,7 @@
<!-- Other common colors -->
<color name="dark_action_bar_color">#263238</color>
<color name="dark_status_bar_color">#161E21</color>
<color name="modal_dialog_scrim_color">#7F000000</color>
<!-- Modern color palette -->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment