Feedback on 2.24.0-beta.1 from #90, #376 and #71. floret-kit is pinned to its main after floret-kit#24, which carries the shared parts. - Transparent background: switching to or from it now shows right away on Date, Countdown, Week strip, Quick add, Upcoming and Today (and the Month and day grid). Their backings always set a fill, so a reapplied rendering can't keep the old one. - App language: changing it in Settings redraws every widget, which now render in the app language. Below Android 13 the choice is mirrored for the widget process, since AppCompat only applies it inside an activity. - Picker previews: Countdown and Week strip previews inflate on Android 14 and below (they used View/Space, which RemoteViews refuses). - Month widget: days outside the month take a 40% lighter shade, in the widget and its XML preview. - Add button: the filled header action is 44dp instead of 36dp wide (floret-kit). - Tinted background: the tonal header and weekday pills had the same tone as the fill and disappeared; they now use inversePrimary there (floret-kit). Not in the issues, found while testing. - Dimmed past events (Month and day, Today, Agenda): the fill fades to 30% and the text to 65% instead of both to 40%, so the title stays readable. - Widget picker: names drop the Calendula prefix, and each widget gets its own description instead of repeating its name (#71). The config screen stalling until touched (#90, item 2) is not addressed: it didn't reproduce on an Android 12 emulator. Closes #376 Closes #71 Co-authored-by: Jean-Luc Makiola <business@jeanlucmakiola.de> Reviewed-on: https://codeberg.org/jlmakiola/calendula/pulls/449
50 lines
2.0 KiB
XML
50 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Static mock shown in the widget picker on Android 14 and below
|
|
(android:previewLayout); 15+ shows the generated preview instead. -->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/preview_widget_bg"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:padding="12dp"
|
|
tools:ignore="HardcodedText,NestedWeights,DisableBaselineAlignment,SmallSp,TooManyViews,UselessLeaf,UselessParent">
|
|
|
|
<FrameLayout
|
|
android:layout_width="4dp"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/preview_stripe"
|
|
android:backgroundTint="@color/widget_preview_event_blue" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="@string/settings_past_events_sample_morning"
|
|
android:textColor="@color/widget_preview_on_surface"
|
|
android:textSize="13sp" />
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="in 2 h"
|
|
android:textColor="@color/widget_preview_primary"
|
|
android:textSize="22sp"
|
|
android:textStyle="bold" />
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:text="9:30"
|
|
android:textColor="@color/widget_preview_on_surface"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|