Skip to content

Commit

Permalink
change viewed mark
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed May 11, 2024
1 parent ea6a35b commit 18f696e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/outline_visibility_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorPrimary"
android:viewportWidth="24"
android:viewportHeight="24">

<path
android:fillColor="@android:color/white"
android:pathData="M12,6c3.79,0 7.17,2.13 8.82,5.5C19.17,14.87 15.79,17 12,17s-7.17,-2.13 -8.82,-5.5C4.83,8.13 8.21,6 12,6m0,-2C7,4 2.73,7.11 1,11.5 2.73,15.89 7,19 12,19s9.27,-3.11 11,-7.5C21.27,7.11 17,4 12,4zM12,9c1.38,0 2.5,1.12 2.5,2.5S13.38,14 12,14s-2.5,-1.12 -2.5,-2.5S10.62,9 12,9m0,-2c-2.48,0 -4.5,2.02 -4.5,4.5S9.52,16 12,16s4.5,-2.02 4.5,-4.5S14.48,7 12,7z" />

</vector>
7 changes: 5 additions & 2 deletions app/src/main/res/layout/torrent_files_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:clipToPadding="false"
android:padding="5dp">

Expand All @@ -26,8 +27,10 @@
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_gravity="center|end"
android:alpha="0.5"
android:layout_marginEnd="5dp"
android:background="@drawable/ic_circle_viewed" />
app:srcCompat="@drawable/outline_visibility_24"
/>
<!-- can't use vectors with ?attr on 4.4 -->
<TextView
android:id="@+id/tvFileSize"
Expand All @@ -37,7 +40,7 @@
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_gravity="bottom|end"
android:layout_marginStart="3dp"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="3dp"
android:textStyle="bold"
Expand Down

0 comments on commit 18f696e

Please sign in to comment.