From 32d406516b308ad709ef93f13bbc8e5a8fc1ec08 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Fri, 2 Apr 2021 10:22:41 -0700 Subject: [PATCH 1/2] Rename SysUI base theme For historical reasons, the base theme was called QuickSettings. I'm renaming it to SystemUI because QS won't respond to dark theme changes anymore. Test: make Bug: 183953523 Change-Id: I685c1a4c3fb5ffded8e2f44f13a6ba68e9c45686 --- core/res/res/values-night/values.xml | 4 ++-- core/res/res/values/symbols.xml | 2 +- core/res/res/values/themes_device_defaults.xml | 6 ++---- packages/SystemUI/AndroidManifest.xml | 2 +- packages/SystemUI/res/values/styles.xml | 4 ++-- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/core/res/res/values-night/values.xml b/core/res/res/values-night/values.xml index 3fd82b874a842..1571fab66a5bf 100644 --- a/core/res/res/values-night/values.xml +++ b/core/res/res/values-night/values.xml @@ -16,7 +16,7 @@ --> - - - - - - - - diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 0620a5b7e1623..e6fc332fff8f9 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -375,7 +375,7 @@ ?android:attr/textColorSecondary - - - diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java b/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java index 94b99c3d9f2ac..cb58eff650c13 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSFragment.java @@ -132,7 +132,8 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) { inflater = mInjectionInflater.injectable( - inflater.cloneInContext(new ContextThemeWrapper(getContext(), R.style.qs_theme))); + inflater.cloneInContext(new ContextThemeWrapper(getContext(), + R.style.Theme_SystemUI_QuickSettings))); return inflater.inflate(R.layout.qs_panel, container, false); } diff --git a/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java b/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java index dce081f21581a..6f789d3c85412 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java +++ b/packages/SystemUI/src/com/android/systemui/qs/customize/QSCustomizer.java @@ -63,7 +63,7 @@ public class QSCustomizer extends LinearLayout { private boolean mIsShowingNavBackdrop; public QSCustomizer(Context context, AttributeSet attrs) { - super(new ContextThemeWrapper(context, R.style.edit_theme), attrs); + super(new ContextThemeWrapper(context, R.style.Theme_SystemUI_QuickSettings_Edit), attrs); LayoutInflater.from(getContext()).inflate(R.layout.qs_customize_panel_content, this); mClipper = new QSDetailClipper(findViewById(R.id.customize_container));