Compare commits

...

4 commits

Author SHA1 Message Date
15d36eeff4
delete appwidgethost when resetting settings
Some checks failed
Android CI / build (push) Has been cancelled
2025-05-26 14:34:42 +02:00
3c2efe04de
Merge branch 'master' of https://github.com/jrpie/launcher 2025-05-26 14:33:04 +02:00
Luke Wass
d33f250a56
fix cardView shadow clipping (#188)
* fix cardView shadow clipping

* decrease margin above cardView
2025-05-26 13:26:13 +02:00
8f3a8539cb
explain background settings (#144) 2025-05-25 03:10:17 +02:00
4 changed files with 12 additions and 9 deletions

View file

@ -2,7 +2,6 @@ package de.jrpie.android.launcher.preferences
import android.content.Context import android.content.Context
import android.util.Log import android.util.Log
import de.jrpie.android.launcher.Application
import de.jrpie.android.launcher.BuildConfig import de.jrpie.android.launcher.BuildConfig
import de.jrpie.android.launcher.actions.Action import de.jrpie.android.launcher.actions.Action
import de.jrpie.android.launcher.apps.AbstractAppInfo 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.DebugInfoWidget
import de.jrpie.android.launcher.widgets.WidgetPanel import de.jrpie.android.launcher.widgets.WidgetPanel
import de.jrpie.android.launcher.widgets.WidgetPosition 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.generateInternalId
import de.jrpie.android.launcher.widgets.getAppWidgetHost
/* Current version of the structure of preferences. /* Current version of the structure of preferences.
* Increase when breaking changes are introduced and write an appropriate case in * 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") Log.i(TAG, "Resetting preferences")
LauncherPreferences.clear() LauncherPreferences.clear()
LauncherPreferences.internal().versionCode(PREFERENCE_VERSION) LauncherPreferences.internal().versionCode(PREFERENCE_VERSION)
deleteAllWidgets(context) context.getAppWidgetHost().deleteHost()
LauncherPreferences.widgets().widgets( LauncherPreferences.widgets().widgets(
setOf( setOf(

View file

@ -15,11 +15,6 @@ import de.jrpie.android.launcher.Application
import de.jrpie.android.launcher.preferences.LauncherPreferences import de.jrpie.android.launcher.preferences.LauncherPreferences
import kotlin.math.min 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]. * Tries to bind [providerInfo] to the id [id].

View file

@ -6,7 +6,6 @@
android:id="@+id/list_apps_row_container" android:id="@+id/list_apps_row_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="15sp"
android:layout_marginHorizontal="30sp"> android:layout_marginHorizontal="30sp">
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
@ -15,6 +14,7 @@
app:cardBackgroundColor="?cardBackgroundColor" app:cardBackgroundColor="?cardBackgroundColor"
app:cardElevation="8dp" app:cardElevation="8dp"
app:cardCornerRadius="12dp" app:cardCornerRadius="12dp"
app:cardUseCompatPadding="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"

View file

@ -30,6 +30,15 @@ Set the font used within the app settings. This setting does not affect the date
### Background (app list and setting) ### 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:**&nbsp;`dropdown` **type:**&nbsp;`dropdown`
**type:**&nbsp;`Transparent`,`Dim`,`Blur`,`Solid` **type:**&nbsp;`Transparent`,`Dim`,`Blur`,`Solid`