0
0
mirror of https://github.com/ponces/treble_aosp.git synced 2025-05-08 15:27:35 +00:00
Files
treble_aosp/patches/personal/platform_frameworks_base/0003-monet-Use-Style.SPRITZ-by-default.patch
2025-03-28 14:12:11 +00:00

41 lines
1.8 KiB
Diff

From 5fc85cce67f9d17099dda3c79ddbeae8a825a45d Mon Sep 17 00:00:00 2001
From: Alberto Ponces <ponces26@gmail.com>
Date: Sun, 26 Feb 2023 22:13:35 +0000
Subject: [PATCH 3/8] 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 28cf78f67..1ab5a3f4b 100644
--- a/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
+++ b/packages/SystemUI/src/com/android/systemui/theme/ThemeOverlayController.java
@@ -150,7 +150,7 @@ public class ThemeOverlayController implements CoreStartable, Dumpable {
// Theme variant: Vibrant, Tonal, Expressive, etc
@VisibleForTesting
@Style.Type
- protected int mThemeStyle = Style.TONAL_SPOT;
+ protected int mThemeStyle = Style.SPRITZ;
// Accent colors overlay
private FabricatedOverlay mSecondaryOverlay;
// Neutral system colors overlay
@@ -846,11 +846,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