Skip to content

armgit / ente

Public Imported from GitHub
0

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

Improve UI of widget's empty state

ashilkn6f02df19c645
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()
}