Allow resizing of custom clock widgets

This commit is contained in:
MM20
2024-04-19 22:01:40 +02:00
parent 64002c9f38
commit 38c048ec03
6 changed files with 481 additions and 204 deletions
@@ -843,6 +843,7 @@
<string name="widget_config_appwidget_background">Background card</string>
<string name="widget_config_appwidget_configure">Configure widget</string>
<string name="widget_config_appwidget_resize_hint">Drag to resize</string>
<string name="widget_config_appwidget_resize">Resize</string>
<string name="widget_config_weather_integration_settings">Weather integration settings</string>
<string name="widget_config_calendar_no_calendars">No calendars found</string>
<string name="widget_pick_widget">Pick widget</string>
@@ -239,7 +239,11 @@ sealed interface ClockWidgetStyle {
@Serializable
@SerialName("custom")
data class Custom(val widgetId: Int? = null) : ClockWidgetStyle
data class Custom(
val widgetId: Int? = null,
val width: Int? = null,
val height: Int = 200,
) : ClockWidgetStyle
}
@Serializable