1
0
mirror of https://github.com/ponces/treble_aosp.git synced 2024-11-28 01:14:52 +00:00
treble_aosp/patches/personal/platform_frameworks_base/0003-monet-Use-Style.SPRITZ-by-default.patch

41 lines
1.8 KiB
Diff

From 927bb5d5daa4ae48011f9701abb2bbd3b05007a9 Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Sun, 26 Feb 2023 22:13:35 +0000
Subject: [PATCH 03/10] monet: Use Style.SPRITZ by default
Change-Id: Ia44ba56c8daa07033b290de89bb300bda9d39d86
---
.../com/android/systemui/theme/ThemeOverlayController.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
index 44c684c3..4869ec42 100644
--- a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
+++ b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
@@ -153,7 +153,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
private float mContrast = 0;
// Theme variant: Vibrant, Tonal, Expressive, etc
@VisibleForTesting
- protected Style mThemeStyle = Style.TONAL_SPOT;
+ protected Style mThemeStyle = Style.SPRITZ;
// Accent colors overlay
private FabricatedOverlay mSecondaryOverlay;
// Neutral system colors overlay
@@ -862,11 +862,11 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
style = Style.valueOf(
object.getString(ThemeOverlayApplier.OVERLAY_CATEGORY_THEME_STYLE));
if (!validStyles.contains(style)) {
- style = Style.TONAL_SPOT;
+ style = Style.SPRITZ;
}
} catch (JSONException | IllegalArgumentException e) {
Log.i(TAG, "Failed to parse THEME_CUSTOMIZATION_OVERLAY_PACKAGES.", e);
- style = Style.TONAL_SPOT;
+ style = Style.SPRITZ;
}
}
return style;
--
2.34.1