Skip to content

Commit

Permalink
Merge branch 'LawnchairLauncher:15-dev' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Jan 8, 2025
2 parents 7182679 + 7a4d119 commit fe274db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class PreferenceManager2 private constructor(private val context: Context) :
key = stringPreferencesKey(name = "app_drawer_bg_color"),
parse = ColorOption::fromString,
save = ColorOption::toString,
onSet = { reloadHelper.reloadGrid() },
onSet = { reloadHelper.recreate() },
defaultValue = ColorOption.fromString(context.getString(R.string.config_default_app_drawer_bg_color)),
)

Expand Down
3 changes: 2 additions & 1 deletion lawnchair/src/app/lawnchair/views/LawnchairScrimView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class LawnchairScrimView(context: Context, attrs: AttributeSet?) : ScrimView(con
override fun updateSysUiColors() {
val threshold = STATUS_BAR_COLOR_FORCE_UPDATE_THRESHOLD
val forceChange = visibility == VISIBLE &&
alpha > threshold && Color.alpha(mBackgroundColor) / (255f * drawerOpacity) > threshold
alpha > threshold &&
Color.alpha(mBackgroundColor) / (255f * drawerOpacity) > threshold
with(systemUiController) {
if (forceChange) {
updateUiState(SystemUiController.UI_STATE_SCRIM_VIEW, !isScrimDark)
Expand Down

0 comments on commit fe274db

Please sign in to comment.