Skip to content

Commit

Permalink
[Refactor] Add dark theme previews for widgets
Browse files Browse the repository at this point in the history
Signed-off-by: Muntashir Al-Islam <[email protected]>
  • Loading branch information
MuntashirAkon committed Dec 29, 2024
1 parent 9cb6148 commit 33e547b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/drawable-nodpi/app_widget_preview_screen_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion app/src/main/res/layout/app_widget_clear_cache.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!-- SPDX-License-Identifier: GPL-3.0-or-later -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
style="@style/Widget.AppTheme.AppWidget"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_gravity="center"
android:background="@drawable/app_widget_background"
android:theme="@style/AppTheme.AppWidgetContainer.IconOnly">

Expand All @@ -14,5 +16,7 @@
android:layout_centerVertical="true"
android:contentDescription="@string/clear_app_cache"
android:scaleType="fitCenter"
android:src="@drawable/ic_clear_cache" />
android:src="@drawable/ic_clear_cache"
android:tint="?android:attr/textColorSecondary"
tools:ignore="UseAppTint" />
</RelativeLayout>

0 comments on commit 33e547b

Please sign in to comment.