Improve UI of widget's empty state

This commit is contained in:
ashilkn
2025-05-27 12:31:59 +05:30
parent c8efc1a590
commit 6f02df19c6
6 changed files with 15 additions and 12 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

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

View File

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

View File

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