Widget theme fix #225

This commit is contained in:
Zakhar Timoshenko
2022-09-14 18:47:06 +03:00
committed by Koitharu
parent 3f6a103915
commit a0e69428e4
4 changed files with 14 additions and 6 deletions

View File

@@ -6,4 +6,4 @@
android:layout_width="@dimen/widget_cover_width"
android:layout_height="@dimen/widget_cover_height"
android:scaleType="centerCrop"
tools:ignore="ContentDescription" />
tools:ignore="ContentDescription" />

View File

@@ -23,7 +23,8 @@
android:layout_width="@dimen/widget_cover_width"
android:layout_height="@dimen/widget_cover_height"
android:scaleType="centerCrop"
tools:ignore="ContentDescription" />
tools:ignore="ContentDescription"
tools:src="@sample/covers" />
<TextView
android:id="@+id/textView_title"
@@ -32,8 +33,10 @@
android:elegantTextHeight="false"
android:ellipsize="end"
android:lines="2"
android:textColor="?android:attr/textColorPrimary" />
android:padding="2dp"
android:textColor="?android:attr/textColorPrimary"
tools:text="@sample/titles" />
</LinearLayout>
</FrameLayout>
</FrameLayout>

View File

@@ -41,4 +41,9 @@
<item name="android:textColorHighlightInverse">@color/m3_dynamic_highlighted_text</item>
<item name="android:textColorAlertDialogListItem">@color/m3_dynamic_dark_default_color_primary_text</item>
</style>
</resources>
<style name="Theme.Kotatsu.AppWidgetContainer" parent="@android:style/Theme.DeviceDefault.DayNight">
<item name="android:colorBackground">@android:color/system_accent1_900</item>
<item name="android:panelColorBackground">@android:color/system_accent1_800</item>
</style>
</resources>

View File

@@ -47,4 +47,4 @@
<item name="android:panelColorBackground">@android:color/system_accent1_100</item>
</style>
</resources>
</resources>