Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10305947 authored by Cassy Chun-Crogan's avatar Cassy Chun-Crogan
Browse files

[DocsUI M3] Add drag hovered state for grid folders

Add the drag hovered state which matches the colours of
the hovered state. This state is for when an item is dragged
over a folder.

See bug for demo.

Bug: 355569425
Test: m DocumentsUIGoogle && manual inspection
Flag: com.android.documentsui.flags.use_material3
Change-Id: I3d58b499468316d5dea207f1f9ac1e6bba7c2b49
parent d5a416b4
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -81,6 +81,24 @@
                    </item>
                </layer-list>
            </item>
            <item
                android:state_drag_hovered="true"
                android:state_selected="true">
                <layer-list>
                    <item>
                        <shape>
                            <corners android:radius="@dimen/grid_item_nameplate_radius" />
                            <solid android:color="?attr/colorPrimaryContainer" />
                        </shape>
                    </item>
                    <item>
                        <shape android:tint="?attr/colorOnPrimaryContainer">
                            <corners android:radius="@dimen/grid_item_nameplate_radius" />
                            <solid android:color="@color/overlay_hover_color_percentage" />
                        </shape>
                    </item>
                </layer-list>
            </item>
            <item
                android:state_hovered="true"
                android:state_selected="true">
@@ -139,6 +157,12 @@
                        android:color="?attr/colorSecondary" />
                </shape>
            </item>
            <item android:state_drag_hovered="true">
                <shape android:tint="?attr/colorOnSurface">
                    <corners android:radius="@dimen/grid_item_nameplate_radius" />
                    <solid android:color="@color/overlay_hover_color_percentage" />
                </shape>
            </item>
            <item android:state_hovered="true">
                <shape android:tint="?attr/colorOnSurface">
                    <corners android:radius="@dimen/grid_item_nameplate_radius" />