From 6f02df19c64569fe316436fc60bb87fd01a16b88 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Tue, 27 May 2025 12:31:59 +0530 Subject: [PATCH] Improve UI of widget's empty state --- .../android/app/src/main/res/layout/albums_widget_layout.xml | 4 ++-- .../android/app/src/main/res/layout/memory_widget_layout.xml | 4 ++-- .../android/app/src/main/res/layout/people_widget_layout.xml | 4 ++-- mobile/ios/EnteAlbumWidget/EnteAlbumWidget.swift | 5 +++-- mobile/ios/EnteMemoryWidget/EnteMemoryWidget.swift | 5 +++-- mobile/ios/EntePeopleWidget/EntePeopleWidget.swift | 5 +++-- 6 files changed, 15 insertions(+), 12 deletions(-) diff --git a/mobile/android/app/src/main/res/layout/albums_widget_layout.xml b/mobile/android/app/src/main/res/layout/albums_widget_layout.xml index a24d08014d..aa63ca753f 100644 --- a/mobile/android/app/src/main/res/layout/albums_widget_layout.xml +++ b/mobile/android/app/src/main/res/layout/albums_widget_layout.xml @@ -72,8 +72,8 @@ android:id="@+id/widget_placeholder_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="Go to Settings->General to customise the widget" - android:textSize="14sp" + android:text="Go to Settings -> General to customise the widget" + android:textSize="12sp" android:gravity="center_horizontal" android:textColor="@color/widget_text_color" android:paddingStart="8dp" diff --git a/mobile/android/app/src/main/res/layout/memory_widget_layout.xml b/mobile/android/app/src/main/res/layout/memory_widget_layout.xml index 7f831b1f94..71a7b44089 100644 --- a/mobile/android/app/src/main/res/layout/memory_widget_layout.xml +++ b/mobile/android/app/src/main/res/layout/memory_widget_layout.xml @@ -72,8 +72,8 @@ android:id="@+id/widget_placeholder_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="Go to Settings->General to customise the widget" - android:textSize="14sp" + android:text="Go to Settings -> General to customise the widget" + android:textSize="12sp" android:gravity="center_horizontal" android:textColor="@color/widget_text_color" android:paddingStart="8dp" diff --git a/mobile/android/app/src/main/res/layout/people_widget_layout.xml b/mobile/android/app/src/main/res/layout/people_widget_layout.xml index 1f5e1f17be..92256bddb7 100644 --- a/mobile/android/app/src/main/res/layout/people_widget_layout.xml +++ b/mobile/android/app/src/main/res/layout/people_widget_layout.xml @@ -72,8 +72,8 @@ android:id="@+id/widget_placeholder_text" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="Go to Settings->General to customise the widget" - android:textSize="14sp" + android:text="Go to Settings -> General to customise the widget" + android:textSize="12sp" android:gravity="center_horizontal" android:textColor="@color/widget_text_color" android:paddingStart="8dp" diff --git a/mobile/ios/EnteAlbumWidget/EnteAlbumWidget.swift b/mobile/ios/EnteAlbumWidget/EnteAlbumWidget.swift index efc1b600c4..0a4f9d6e76 100644 --- a/mobile/ios/EnteAlbumWidget/EnteAlbumWidget.swift +++ b/mobile/ios/EnteAlbumWidget/EnteAlbumWidget.swift @@ -192,11 +192,12 @@ struct EnteAlbumWidgetEntryView: View { .aspectRatio(contentMode: .fit) .padding(8) - Text("Go to Settings->General to customise the widget") - .font(.custom("Inter", size: 14, relativeTo: .caption)) + Text("Go to Settings -> General to customise the widget") + .font(.custom("Inter", size: 12, relativeTo: .caption)) .foregroundStyle(.white) // Tint-aware color .multilineTextAlignment(.center) .padding(.bottom, 12) + .padding(.horizontal, 8) .backwardWidgetAccentable(true) Spacer() } diff --git a/mobile/ios/EnteMemoryWidget/EnteMemoryWidget.swift b/mobile/ios/EnteMemoryWidget/EnteMemoryWidget.swift index 6888e53da7..4382deab9b 100644 --- a/mobile/ios/EnteMemoryWidget/EnteMemoryWidget.swift +++ b/mobile/ios/EnteMemoryWidget/EnteMemoryWidget.swift @@ -190,11 +190,12 @@ struct EnteMemoryWidgetEntryView: View { .aspectRatio(contentMode: .fit) .padding(8) - Text("Go to Settings->General to customise the widget") - .font(.custom("Inter", size: 14, relativeTo: .caption)) + Text("Go to Settings -> General to customise the widget") + .font(.custom("Inter", size: 12, relativeTo: .caption)) .foregroundStyle(.white) // Tint-aware color .multilineTextAlignment(.center) .padding(.bottom, 12) + .padding(.horizontal, 8) .backwardWidgetAccentable(true) Spacer() } diff --git a/mobile/ios/EntePeopleWidget/EntePeopleWidget.swift b/mobile/ios/EntePeopleWidget/EntePeopleWidget.swift index 719b97be7c..951c75767f 100644 --- a/mobile/ios/EntePeopleWidget/EntePeopleWidget.swift +++ b/mobile/ios/EntePeopleWidget/EntePeopleWidget.swift @@ -192,11 +192,12 @@ struct EntePeopleWidgetEntryView: View { .aspectRatio(contentMode: .fit) .padding(8) - Text("Go to Settings->General to customise the widget") - .font(.custom("Inter", size: 14, relativeTo: .caption)) + Text("Go to Settings -> General to customise the widget") + .font(.custom("Inter", size: 12, relativeTo: .caption)) .foregroundStyle(.white) // Tint-aware color .multilineTextAlignment(.center) .padding(.bottom, 12) + .padding(.horizontal, 8) .backwardWidgetAccentable(true) Spacer() }