Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(slideshow-widget): remove default title and subtitle text

Prateek Sunal43f3d4a5feb0
diff --git a/mobile/android/app/src/main/res/layout/slideshow_layout.xml b/mobile/android/app/src/main/res/layout/slideshow_layout.xml
index 3a11633cf6..8a238296cf 100644
--- a/mobile/android/app/src/main/res/layout/slideshow_layout.xml
+++ b/mobile/android/app/src/main/res/layout/slideshow_layout.xml
@@ -31,7 +31,7 @@
android:id="@+id/widget_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Where is the title?"
+ android:text=""
android:textColor="@android:color/white"
android:textSize="14sp"
android:textStyle="bold"
@@ -44,7 +44,7 @@
android:id="@+id/widget_subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="Where is the subtitle?"
+ android:text=""
android:textColor="@android:color/white"
android:textSize="12sp"
android:maxLines="1"
diff --git a/mobile/ios/SlideshowWidget/SlideshowWidget.swift b/mobile/ios/SlideshowWidget/SlideshowWidget.swift
index 0f9ce959fe..d23bd28955 100644
--- a/mobile/ios/SlideshowWidget/SlideshowWidget.swift
+++ b/mobile/ios/SlideshowWidget/SlideshowWidget.swift
@@ -117,13 +117,13 @@ struct SlideshowWidgetEntryView: View {
)
.overlay(
VStack(alignment: .leading, spacing: 2) {
- Text(entry.title ?? "Where is the title").font(
+ Text(entry.title ?? "").font(
.custom("Inter", size: 14, relativeTo: .caption)
) // Custom with fallback
.bold()
.foregroundStyle(.white)
.shadow(radius: 20)
- Text(entry.subTitle ?? "Where is the sub title")
+ Text(entry.subTitle ?? "")
.font(.custom("Inter", size: 12, relativeTo: .caption2))
.foregroundStyle(.white)
.shadow(radius: 20)