From fd3f907f3d7d007afce5759a19cc5677c1a460e1 Mon Sep 17 00:00:00 2001 From: Suphon Thanakornpakapong Date: Mon, 16 May 2022 09:49:04 +0700 Subject: [PATCH 1/3] Make widget size slider white --- app/src/main/res/layout/widgets_page.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/widgets_page.xml b/app/src/main/res/layout/widgets_page.xml index 2b75512e5e..50b968f699 100755 --- a/app/src/main/res/layout/widgets_page.xml +++ b/app/src/main/res/layout/widgets_page.xml @@ -94,7 +94,9 @@ android:layout_marginLeft="8dp" android:layout_marginRight="8dp" android:layout_toLeftOf="@id/max_label" - android:layout_toEndOf="@id/min_label" /> + android:layout_toEndOf="@id/min_label" + android:thumbTint="@android:color/white" + android:progressTint="@android:color/white" /> Date: Mon, 16 May 2022 10:00:17 +0700 Subject: [PATCH 2/3] Fix widget size seekbar position --- .../features/launcher/LauncherActivity.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java index 7d5b99b7a3..76e3206d18 100755 --- a/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +++ b/app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java @@ -3280,9 +3280,8 @@ public class LauncherActivity extends AppCompatActivity implements }); AnimatorSet set = new AnimatorSet(); - set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.Y, - mDeviceProfile.availableHeightPx, - mDeviceProfile.availableHeightPx - Utilities.pxFromDp(48, this))); + set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.TRANSLATION_Y, + Utilities.pxFromDp(48, this), 0)); set.setDuration(200); set.setInterpolator(new LinearInterpolator()); set.addListener(new AnimatorListenerAdapter() { @@ -3366,8 +3365,8 @@ public class LauncherActivity extends AppCompatActivity implements currentAnimator.cancel(); } AnimatorSet set = new AnimatorSet(); - set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.Y, - mDeviceProfile.availableHeightPx)); + set.play(ObjectAnimator.ofFloat(widgetResizeContainer, View.TRANSLATION_Y, + Utilities.pxFromDp(48, this))); set.setDuration(200); set.setInterpolator(new LinearInterpolator()); set.addListener(new AnimatorListenerAdapter() { -- GitLab From c13b2b6345aec9a0e12ef57181840d5df15f0aca Mon Sep 17 00:00:00 2001 From: Suphon Thanakornpakapong Date: Mon, 16 May 2022 14:57:07 +0700 Subject: [PATCH 3/3] Use the correct accent color for widget size slider --- app/src/main/res/layout/widgets_page.xml | 4 ++-- app/src/main/res/values/colors.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/widgets_page.xml b/app/src/main/res/layout/widgets_page.xml index 50b968f699..d894ac4a83 100755 --- a/app/src/main/res/layout/widgets_page.xml +++ b/app/src/main/res/layout/widgets_page.xml @@ -95,8 +95,8 @@ android:layout_marginRight="8dp" android:layout_toLeftOf="@id/max_label" android:layout_toEndOf="@id/min_label" - android:thumbTint="@android:color/white" - android:progressTint="@android:color/white" /> + android:thumbTint="@color/accent_color" + android:progressTint="@color/accent_color" /> #4dcbcbcb #26ffffff + #0086FF -- GitLab