AppDetailsFragment: Add missing icons for size and update tags

Also use normal assist chip style instead of elevated, looks better

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-12-18 22:33:51 +07:00
parent b93bf688ae
commit 5df88b7f2f
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M160,880Q127,880 103.5,856.5Q80,833 80,800L80,160Q80,127 103.5,103.5Q127,80 160,80L480,80L720,320L720,490L640,490L640,360L440,360L440,160L160,160Q160,160 160,160Q160,160 160,160L160,800Q160,800 160,800Q160,800 160,800L600,800L600,880L160,880ZM160,800L160,490L160,490L160,360L160,160L160,160Q160,160 160,160Q160,160 160,160L160,800Q160,800 160,800Q160,800 160,800ZM200,760Q204,711 230,670Q256,629 298,605L260,537Q260,536 264,522Q269,520 273.5,520Q278,520 280,525L319,595Q339,587 359,582.5Q379,578 400,578Q421,578 441,582.5Q461,587 481,595L520,525Q520,525 535,521Q540,523 541,528Q542,533 540,537L502,605Q544,629 570,670Q596,711 600,760L200,760ZM310,700Q318,700 324,694Q330,688 330,680Q330,672 324,666Q318,660 310,660Q302,660 296,666Q290,672 290,680Q290,688 296,694Q302,700 310,700ZM490,700Q498,700 504,694Q510,688 510,680Q510,672 504,666Q498,660 490,660Q482,660 476,666Q470,672 470,680Q470,688 476,694Q482,700 490,700ZM800,880L640,720L696,663L760,726L760,560L840,560L840,726L904,663L960,720L800,880Z"/>
</vector>

View File

@@ -68,6 +68,7 @@
style="@style/Chip.Tag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:chipIcon="@drawable/ic_apk_install"
tools:text="25 MB" />
<com.google.android.material.chip.Chip
@@ -75,6 +76,7 @@
style="@style/Chip.Tag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:chipIcon="@drawable/ic_updates"
tools:text="Jan 21 2020" />
</com.google.android.material.chip.ChipGroup>

View File

@@ -54,7 +54,7 @@
<item name="chipStrokeColor">?attr/colorControlHighlight</item>
</style>
<style name="Chip.Tag" parent="@style/Widget.Material3.Chip.Assist.Elevated">
<style name="Chip.Tag" parent="@style/Widget.Material3.Chip.Assist">
<item name="android:clickable">false</item>
<item name="android:textAppearance">@style/TextAppearance.Aurora.Line2</item>
<item name="chipBackgroundColor">?attr/colorControlHighlight</item>