From 7c5cde46e776dbfe362bddab05432963169c8087 Mon Sep 17 00:00:00 2001
From: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
Date: Tue, 21 Jun 2022 08:23:43 +0800
Subject: [PATCH 1/3] Minor string re-arranging, create desc for "wallpaper
depth", and create section "wallpaper" with wallpaper-related settings
---
lawnchair/res/values/strings.xml | 40 ++++++++++++-------
.../ui/preferences/HomeScreenPreferences.kt | 27 +++++++------
2 files changed, 41 insertions(+), 26 deletions(-)
diff --git a/lawnchair/res/values/strings.xml b/lawnchair/res/values/strings.xml
index c9a6dcdbdb..cb7cca8fae 100644
--- a/lawnchair/res/values/strings.xml
+++ b/lawnchair/res/values/strings.xml
@@ -232,6 +232,8 @@
Presearch
Bing
Sesame
+ Always Open Website
+ Open search provider’s website even if their app is installed.
Search Provider
Status Bar
Show Notification Count
@@ -240,7 +242,7 @@
All custom icons will be reset. Do you want to continue?
Taskbar
Enable Taskbar (Experimental)
- No app store or browser installed.
+ No app market or browser installed.
%1$s, %2$s
@@ -255,12 +257,11 @@
Charging
Charged
Battery Low
+ "%1$d%% — Full in %2$s"
Page %1$d of %2$d
At a Glance
What to Show
Fri, Mar 3
- Incompatible System Integration
- Your device is configured to have system gestures (known as Quickstep) provided by %1$s, but this version of %1$s is not compatible with your Android version. To continue using your device, please uninstall %1$s updates or disable %1$s as a system-gesture provider.
Preview
Calendar
@@ -278,6 +279,9 @@
Gregorian
Persian
+ Incompatible System Integration
+ Your device is configured to have system gestures (known as Quickstep) provided by %1$s, but this version of %1$s is not compatible with your Android version. To continue using your device, please uninstall %1$s updates or disable %1$s as a system-gesture provider.
+
Add Fonts
OTF & TTF supported.
Delete
@@ -285,6 +289,7 @@
Home Screen
Home Screen & App Drawer
+
Create Backup
Create
What to Back Up
@@ -298,26 +303,33 @@
Backup restored.
Failed to restore backup.
Invalid backup file.
+
Google
- "%1$d%% — Full in %2$s"
- Wallpaper Depth Effect
- Double Tap
+
+ Wallpaper Depth Effect
+ Zoom in and out of the wallpaper when transitioning between states
+
+ Gestures
+
+
+ Double-Tap
+ Swipe Up
+ Swipe Down
+ Home Button Tap
+ Back Button Tap
+
Do Nothing
Sleep
Open Notification Panel
Open App
Open %1$s
- Pick App
Open App Drawer
Open App Search
Open Search
- Gestures
- Taps and Swipes
- Swipe Up
- Swipe Down
- Home Button Tap
- Back Button Tap
+
+ Pick App
+
%s & %s
App
Website
-
+
\ No newline at end of file
diff --git a/lawnchair/src/app/lawnchair/ui/preferences/HomeScreenPreferences.kt b/lawnchair/src/app/lawnchair/ui/preferences/HomeScreenPreferences.kt
index 05cb7e55a0..6c1b6085fb 100644
--- a/lawnchair/src/app/lawnchair/ui/preferences/HomeScreenPreferences.kt
+++ b/lawnchair/src/app/lawnchair/ui/preferences/HomeScreenPreferences.kt
@@ -59,19 +59,9 @@ fun HomeScreenPreferences() {
label = stringResource(id = R.string.auto_add_shortcuts_label),
enabled = lockHomeScreenAdapter.state.value.not(),
)
- SwitchPreference(
- prefs.wallpaperScrolling.getAdapter(),
- label = stringResource(id = R.string.wallpaper_scrolling_label),
- )
- if (Utilities.ATLEAST_R) {
- SwitchPreference(
- prefs2.wallpaperDepthEffect.getAdapter(),
- label = stringResource(id = R.string.wallpaper_depth_effect),
- )
- }
GestureHandlerPreference(
adapter = prefs2.doubleTapGestureHandler.getAdapter(),
- label = stringResource(id = R.string.gesture_double_tap)
+ label = stringResource(id = R.string.gesture_double_tap),
)
val feedAvailable = OverlayCallbackImpl.minusOneAvailable(LocalContext.current)
SwitchPreference(
@@ -80,6 +70,19 @@ fun HomeScreenPreferences() {
description = if (feedAvailable) null else stringResource(id = R.string.minus_one_unavailable),
enabled = feedAvailable,
)
+ }
+ PreferenceGroup(heading = stringResource(id = R.string.wallpaper)) {
+ SwitchPreference(
+ prefs.wallpaperScrolling.getAdapter(),
+ label = stringResource(id = R.string.wallpaper_scrolling_label),
+ )
+ if (Utilities.ATLEAST_R) {
+ SwitchPreference(
+ prefs2.wallpaperDepthEffect.getAdapter(),
+ label = stringResource(id = R.string.wallpaper_depth_effect_label),
+ description = stringResource(id = R.string.wallpaper_depth_effect_description),
+ )
+ }
SwitchPreference(
adapter = prefs2.showTopShadow.getAdapter(),
label = stringResource(id = R.string.show_sys_ui_scrim),
@@ -156,4 +159,4 @@ fun HomeScreenPreferences() {
)
}
}
-}
+}
\ No newline at end of file
From f096a23e94e6e5684f62961a41607062d2433dec Mon Sep 17 00:00:00 2001
From: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
Date: Tue, 21 Jun 2022 15:59:09 +0800
Subject: [PATCH 2/3] Rename app market to app store
---
lawnchair/res/values/strings.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lawnchair/res/values/strings.xml b/lawnchair/res/values/strings.xml
index cb7cca8fae..0ed55aa46a 100644
--- a/lawnchair/res/values/strings.xml
+++ b/lawnchair/res/values/strings.xml
@@ -242,7 +242,7 @@
All custom icons will be reset. Do you want to continue?
Taskbar
Enable Taskbar (Experimental)
- No app market or browser installed.
+ No app store or browser installed.
%1$s, %2$s
@@ -332,4 +332,4 @@
%s & %s
App
Website
-
\ No newline at end of file
+
From c3bb51133e5ca5938a973132b02087fed4692a41 Mon Sep 17 00:00:00 2001
From: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com>
Date: Tue, 21 Jun 2022 16:19:33 +0800
Subject: [PATCH 3/3] Do requested changes
---
lawnchair/res/values/strings.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lawnchair/res/values/strings.xml b/lawnchair/res/values/strings.xml
index 0ed55aa46a..d16061eb8b 100644
--- a/lawnchair/res/values/strings.xml
+++ b/lawnchair/res/values/strings.xml
@@ -307,12 +307,12 @@
Google
Wallpaper Depth Effect
- Zoom in and out of the wallpaper when transitioning between states
+ Zoom into and out of the wallpaper when transitioning between states.
Gestures
- Double-Tap
+ Double Tap
Swipe Up
Swipe Down
Home Button Tap