From 7d218d780eab5fedc4ad8834418952b9fb5999b9 Mon Sep 17 00:00:00 2001
From: gmasil <54176035+gmasil@users.noreply.github.com>
Date: Tue, 19 Dec 2023 07:57:46 +0100
Subject: [PATCH] increase visibility of video duration in thumbnails
---
app/src/main/res/drawable/darkened_rounded_background.xml | 5 +++++
app/src/main/res/layout/video_item_grid.xml | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 app/src/main/res/drawable/darkened_rounded_background.xml
diff --git a/app/src/main/res/drawable/darkened_rounded_background.xml b/app/src/main/res/drawable/darkened_rounded_background.xml
new file mode 100644
index 000000000..fb279cd13
--- /dev/null
+++ b/app/src/main/res/drawable/darkened_rounded_background.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/video_item_grid.xml b/app/src/main/res/layout/video_item_grid.xml
index c9cff3354..0cf042aae 100644
--- a/app/src/main/res/layout/video_item_grid.xml
+++ b/app/src/main/res/layout/video_item_grid.xml
@@ -41,7 +41,7 @@
android:layout_height="wrap_content"
android:layout_alignTop="@+id/play_portrait_outline"
android:layout_alignBottom="@+id/play_portrait_outline"
- android:layout_marginTop="@dimen/small_margin"
+ android:layout_marginTop="@dimen/tiny_margin"
android:layout_toEndOf="@id/play_portrait_outline"
android:ellipsize="end"
android:gravity="end"
@@ -51,6 +51,9 @@
android:textColor="@android:color/white"
android:textSize="@dimen/normal_text_size"
android:visibility="gone"
+ android:background="@drawable/darkened_rounded_background"
+ android:paddingTop="@dimen/one_dp"
+ android:paddingHorizontal="@dimen/small_margin"
tools:text="02:34" />