Global actions visuals - color and ordering changes.
Test: Manual, with light & dark themes Bug: 72404596 Change-Id: I739035d8a2824af801e2a5a1bbb8541594d43267
This commit is contained in:
@@ -2513,9 +2513,8 @@
|
||||
<item>restart</item>
|
||||
<item>lockdown</item>
|
||||
<item>logout</item>
|
||||
<item>screenshot</item>
|
||||
<item>bugreport</item>
|
||||
<item>users</item>
|
||||
<item>screenshot</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Number of milliseconds to hold a wake lock to ensure that drawing is fully
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<solid android:color="?android:attr/colorPrimary" />
|
||||
<solid android:color="?android:attr/colorBackgroundFloating" />
|
||||
<corners
|
||||
android:bottomLeftRadius="@dimen/corner_size"
|
||||
android:topLeftRadius="@dimen/corner_size"
|
||||
|
||||
@@ -33,7 +33,9 @@
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="center"
|
||||
android:scaleType="center"/>
|
||||
android:scaleType="center"
|
||||
android:alpha="?android:attr/primaryContentAlpha"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@*android:id/message"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
android:layout_gravity="top|right"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:padding="12dp"
|
||||
android:translationZ="8dp" />
|
||||
android:padding="16dp"
|
||||
android:translationZ="9dp" />
|
||||
|
||||
</com.android.systemui.HardwareUiLayout>
|
||||
|
||||
@@ -882,7 +882,7 @@
|
||||
burn-in on AOD -->
|
||||
<dimen name="burn_in_prevention_offset_y">50dp</dimen>
|
||||
|
||||
<dimen name="corner_size">16dp</dimen>
|
||||
<dimen name="corner_size">8dp</dimen>
|
||||
<dimen name="top_padding">0dp</dimen>
|
||||
<dimen name="bottom_padding">48dp</dimen>
|
||||
<dimen name="edge_margin">16dp</dimen>
|
||||
|
||||
@@ -61,7 +61,7 @@ public class HardwareBgDrawable extends LayerDrawable {
|
||||
: R.drawable.rounded_bg_bottom).mutate(),
|
||||
};
|
||||
}
|
||||
layers[1].setTint(Utils.getColorAttr(context, android.R.attr.colorPrimaryDark));
|
||||
layers[1].setTint(Utils.getColorAttr(context, android.R.attr.colorPrimary));
|
||||
return layers;
|
||||
}
|
||||
|
||||
|
||||
@@ -877,9 +877,8 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener,
|
||||
public View getView(int position, View convertView, ViewGroup parent) {
|
||||
Action action = getItem(position);
|
||||
View view = action.create(mContext, convertView, parent, LayoutInflater.from(mContext));
|
||||
// Power off, restart, logout (if present) and lockdown (if present) should be in white
|
||||
// background. Set the division based on which buttons are currently being displayed.
|
||||
if (position == 2 + (mHasLogoutButton ? 1 : 0) + (mHasLockdownButton ? 1 : 0)) {
|
||||
// Everything but screenshot, the last item, gets white background.
|
||||
if (position == getCount() - 1) {
|
||||
HardwareUiLayout.get(parent).setDivisionView(view);
|
||||
}
|
||||
return view;
|
||||
|
||||
Reference in New Issue
Block a user