Commit a5e331cc authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

[Chrome Home] Change button style in accessibility tab switcher

Enabled with Chrome Home flag:
+ Add space to match 72dp left padding for 'remove close tab' text
+ Change 'remove closed tab' text to 14sp Med google 500

Bug: 753473
Change-Id: Ie4352cd271a70126876aeb156e9d5840cb209d13
Reviewed-on: https://chromium-review.googlesource.com/685264Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#504494}
parent bf05f2bd
......@@ -77,6 +77,12 @@
android:layout_height="match_parent"
android:visibility="invisible">
<Space
android:id="@+id/undo_start_space"
android:layout_width="24dp"
android:layout_height="match_parent"
android:visibility="gone" />
<Button
android:id="@+id/undo_button"
android:layout_height="match_parent"
......
......@@ -246,6 +246,10 @@ public class AccessibilityTabModelListItem extends FrameLayout implements OnClic
mUndoContents = (LinearLayout) findViewById(R.id.undo_contents);
mUndoButton = (Button) findViewById(R.id.undo_button);
if (FeatureUtilities.isChromeHomeEnabled()) {
findViewById(R.id.undo_start_space).setVisibility(View.VISIBLE);
ApiCompatibilityUtils.setTextAppearance(mUndoButton, R.style.BlueButtonText2);
}
setClickable(true);
setFocusable(true);
......
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