From 8f3a8539cb132b139736d1e8e61ce472330b2f6b Mon Sep 17 00:00:00 2001 From: Josia Pietsch Date: Sun, 25 May 2025 03:10:17 +0200 Subject: [PATCH 1/3] explain background settings (#144) --- docs/settings.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/settings.md b/docs/settings.md index eb780fc..3a46a7b 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -30,6 +30,15 @@ Set the font used within the app settings. This setting does not affect the date ### Background (app list and setting) +Defines which background should be used in app drawers, settings, etc. +to increase legibility. +* `Transparent` does not change the wallpaper. +* `Dim` dims the wallpaper. +* `Blur` tries to blur the wallpaper. This is not possible on all devices. Some older devices don't support the operation. Also blur can be temporarily unavailable when the device is in power saving mode. In these case, `Dim` is used as a fallback. +* `Solid` sets the background to a solid color (depending on the color theme). For the light theme only this option is available. + +On the home screen and on widget panels the wallpaper is always shown unmodified. + **type:** `dropdown` **type:** `Transparent`,`Dim`,`Blur`,`Solid` From d33f250a5642d33554dbe65e02f4b7e1aea4a64f Mon Sep 17 00:00:00 2001 From: Luke Wass Date: Mon, 26 May 2025 06:26:13 -0500 Subject: [PATCH 2/3] fix cardView shadow clipping (#188) * fix cardView shadow clipping * decrease margin above cardView --- app/src/main/res/layout/list_widgets_row.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout/list_widgets_row.xml b/app/src/main/res/layout/list_widgets_row.xml index 94eb068..b828169 100644 --- a/app/src/main/res/layout/list_widgets_row.xml +++ b/app/src/main/res/layout/list_widgets_row.xml @@ -6,7 +6,6 @@ android:id="@+id/list_apps_row_container" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="15sp" android:layout_marginHorizontal="30sp"> Date: Mon, 26 May 2025 14:34:42 +0200 Subject: [PATCH 3/3] delete appwidgethost when resetting settings --- .../de/jrpie/android/launcher/preferences/Preferences.kt | 5 ++--- .../main/java/de/jrpie/android/launcher/widgets/Widgets.kt | 5 ----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/de/jrpie/android/launcher/preferences/Preferences.kt b/app/src/main/java/de/jrpie/android/launcher/preferences/Preferences.kt index e5877f5..a4b1f43 100644 --- a/app/src/main/java/de/jrpie/android/launcher/preferences/Preferences.kt +++ b/app/src/main/java/de/jrpie/android/launcher/preferences/Preferences.kt @@ -2,7 +2,6 @@ package de.jrpie.android.launcher.preferences import android.content.Context import android.util.Log -import de.jrpie.android.launcher.Application import de.jrpie.android.launcher.BuildConfig import de.jrpie.android.launcher.actions.Action import de.jrpie.android.launcher.apps.AbstractAppInfo @@ -21,8 +20,8 @@ import de.jrpie.android.launcher.widgets.ClockWidget import de.jrpie.android.launcher.widgets.DebugInfoWidget import de.jrpie.android.launcher.widgets.WidgetPanel import de.jrpie.android.launcher.widgets.WidgetPosition -import de.jrpie.android.launcher.widgets.deleteAllWidgets import de.jrpie.android.launcher.widgets.generateInternalId +import de.jrpie.android.launcher.widgets.getAppWidgetHost /* Current version of the structure of preferences. * Increase when breaking changes are introduced and write an appropriate case in @@ -92,7 +91,7 @@ fun resetPreferences(context: Context) { Log.i(TAG, "Resetting preferences") LauncherPreferences.clear() LauncherPreferences.internal().versionCode(PREFERENCE_VERSION) - deleteAllWidgets(context) + context.getAppWidgetHost().deleteHost() LauncherPreferences.widgets().widgets( setOf( diff --git a/app/src/main/java/de/jrpie/android/launcher/widgets/Widgets.kt b/app/src/main/java/de/jrpie/android/launcher/widgets/Widgets.kt index 593f3b3..37a77a7 100644 --- a/app/src/main/java/de/jrpie/android/launcher/widgets/Widgets.kt +++ b/app/src/main/java/de/jrpie/android/launcher/widgets/Widgets.kt @@ -15,11 +15,6 @@ import de.jrpie.android.launcher.Application import de.jrpie.android.launcher.preferences.LauncherPreferences import kotlin.math.min -fun deleteAllWidgets(context: Context) { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { - context.getAppWidgetHost().appWidgetIds.forEach { AppWidget(it).delete(context) } - } -} /** * Tries to bind [providerInfo] to the id [id].