OSDN Git Service

Sharesheet - Dark theme tweaks
authorMatt Pietal <mpietal@google.com>
Mon, 22 Apr 2019 15:05:22 +0000 (11:05 -0400)
committerMatt Pietal <mpietal@google.com>
Mon, 22 Apr 2019 17:19:14 +0000 (13:19 -0400)
Also align background scrim for light theme with sysui

Bug: 129980117
Test: Visual inspection
Change-Id: Ia3514c9e295a35cb08f5e6ffccd5121cb220630a

core/res/res/drawable/ic_content_copy_gm2.xml
core/res/res/layout/chooser_grid.xml
core/res/res/values/themes_device_defaults.xml

index 940da94..ee58738 100644 (file)
@@ -20,6 +20,6 @@
     android:viewportWidth="24"
     android:viewportHeight="24">
   <path
-      android:fillColor="#F999"
+      android:fillColor="?android:attr/textColorSecondary"
       android:pathData="M18,21L4,21L4,7L2,7v14c0,1.1 0.9,2 2,2h14v-2zM21,17L21,3c0,-1.1 -0.9,-2 -2,-2L8,1c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h11c1.1,0 2,-0.9 2,-2zM19,17L8,17L8,3h11v14z"/>
 </vector>
index 138e24e..4d5e262 100644 (file)
@@ -28,6 +28,7 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_alwaysShow="true"
+        android:elevation="1dp"
         android:background="@drawable/bottomsheet_background">
 
         <ImageView
@@ -66,6 +67,7 @@
         android:listSelector="@color/transparent"
         android:divider="@null"
         android:scrollIndicators="top"
+        android:elevation="1dp"
         android:nestedScrollingEnabled="true"/>
 
     <TextView android:id="@+id/empty"
@@ -76,6 +78,7 @@
               android:text="@string/noApplications"
               android:padding="@dimen/chooser_edge_margin_normal"
               android:gravity="center"
+              android:elevation="1dp"
               android:visibility="gone"/>
 
 </com.android.internal.widget.ResolverDrawerLayout>
index 03fb1fc..0ed9860 100644 (file)
@@ -802,6 +802,8 @@ easier.
         <item name="textAppearanceListItemSmall">@style/TextAppearance.DeviceDefault.ListItem</item>
         <item name="textAppearanceListItemSecondary">@style/TextAppearance.DeviceDefault.ListItemSecondary</item>
 
+        <item name="backgroundDimAmount">0.7</item>
+
         <!-- Button styles -->
         <item name="buttonCornerRadius">@dimen/config_buttonCornerRadius</item>
         <item name="buttonStyle">@style/Widget.DeviceDefault.Light.Button</item>