From ec9c48532f535f3045bb70017fe9211d10d8887d Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Thu, 23 Feb 2023 14:19:34 -0500 Subject: Update styling for channel half sheet Test: view panel Fixes: 240259331 Change-Id: Ib80729c7a7b802f6dcad2ec09361666e6cb12c65 --- packages/SystemUI/res/layout/notif_half_shelf.xml | 9 ++++++--- packages/SystemUI/res/layout/notif_half_shelf_row.xml | 3 +++ .../statusbar/notification/row/ChannelEditorDialogController.kt | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/SystemUI/res/layout/notif_half_shelf.xml b/packages/SystemUI/res/layout/notif_half_shelf.xml index 8ba1ff38fd63..37b8ae0f40c4 100644 --- a/packages/SystemUI/res/layout/notif_half_shelf.xml +++ b/packages/SystemUI/res/layout/notif_half_shelf.xml @@ -76,7 +76,10 @@ android:layout_height="48dp" android:layout_width="wrap_content" android:layout_gravity="center_vertical" - android:padding="8dp" /> + android:padding="8dp" + android:track="@drawable/settingslib_track_selector" + android:thumb="@drawable/settingslib_thumb_selector" + android:theme="@style/MainSwitch.Settingslib"/> @@ -101,7 +104,7 @@ android:minWidth="@dimen/notification_importance_toggle_size" android:minHeight="@dimen/notification_importance_toggle_size" android:maxWidth="200dp" - style="@style/TextAppearance.NotificationInfo.Button"/> + style="@style/Widget.Dialog.Button"/> + style="@style/Widget.Dialog.Button"/> diff --git a/packages/SystemUI/res/layout/notif_half_shelf_row.xml b/packages/SystemUI/res/layout/notif_half_shelf_row.xml index d03cd7e87a2d..190f9994b1dc 100644 --- a/packages/SystemUI/res/layout/notif_half_shelf_row.xml +++ b/packages/SystemUI/res/layout/notif_half_shelf_row.xml @@ -85,6 +85,9 @@ android:layout_width="wrap_content" android:layout_gravity="center_vertical" android:padding="8dp" + android:track="@drawable/settingslib_track_selector" + android:thumb="@drawable/settingslib_thumb_selector" + android:theme="@style/MainSwitch.Settingslib" /> diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt index f0b221dd4726..0de3246e01fa 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ChannelEditorDialogController.kt @@ -344,7 +344,7 @@ class ChannelEditorDialogController @Inject constructor( or WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) } -class ChannelEditorDialog(context: Context) : Dialog(context) { +class ChannelEditorDialog(context: Context, theme: Int) : Dialog(context, theme) { fun updateDoneButtonText(hasChanges: Boolean) { findViewById(R.id.done_button)?.setText( if (hasChanges) @@ -361,7 +361,7 @@ class ChannelEditorDialog(context: Context) : Dialog(context) { } fun build(): ChannelEditorDialog { - return ChannelEditorDialog(context) + return ChannelEditorDialog(context, R.style.Theme_SystemUI_Dialog) } } } -- cgit v1.2.3-59-g8ed1b