Loading packages/SystemUI/res/drawable/settingslib_entry_bg_on_end.xml 0 → 100644 +29 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2025 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="?android:attr/colorControlHighlight"> <item> <shape android:shape="rectangle"> <solid android:color="@androidprv:color/materialColorPrimary"/> <corners android:bottomLeftRadius="@dimen/settingslib_switch_bar_radius" android:bottomRightRadius="@dimen/settingslib_switch_bar_radius"/> </shape> </item> </ripple> packages/SystemUI/res/drawable/settingslib_entry_bg_on_middle.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2025 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="?android:attr/colorControlHighlight"> <item> <shape android:shape="rectangle"> <solid android:color="@androidprv:color/materialColorPrimary"/> </shape> </item> </ripple> packages/SystemUI/res/drawable/settingslib_entry_bg_on_start.xml 0 → 100644 +29 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2025 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="?android:attr/colorControlHighlight"> <item> <shape android:shape="rectangle"> <solid android:color="@androidprv:color/materialColorPrimary"/> <corners android:topLeftRadius="@dimen/settingslib_switch_bar_radius" android:topRightRadius="@dimen/settingslib_switch_bar_radius"/> </shape> </item> </ripple> packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/BluetoothDetailsContentManager.kt +18 −1 Original line number Diff line number Diff line Loading @@ -153,6 +153,9 @@ constructor( // UI Components that only exist in tile details view, but not in dialog. private var entryBackgroundActive: Drawable? = null private var entryBackgroundActiveStart: Drawable? = null private var entryBackgroundActiveEnd: Drawable? = null private var entryBackgroundActiveMiddle: Drawable? = null private var entryBackgroundInactive: Drawable? = null private var entryBackgroundInactiveStart: Drawable? = null private var entryBackgroundInactiveEnd: Drawable? = null Loading Loading @@ -206,6 +209,12 @@ constructor( } else { entryBackgroundActive = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on) entryBackgroundActiveStart = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on_start) entryBackgroundActiveEnd = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on_end) entryBackgroundActiveMiddle = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on_middle) entryBackgroundInactive = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_off) entryBackgroundInactiveStart = Loading Loading @@ -482,7 +491,15 @@ constructor( } } else { // Set up background for connected devices background = entryBackgroundActive background = when { lastConnectedDeviceIndex == 0 -> entryBackgroundActive adapterPosition == 0 -> entryBackgroundActiveStart adapterPosition == lastConnectedDeviceIndex -> entryBackgroundActiveEnd else -> entryBackgroundActiveMiddle } } background?.setBounds(child.left, child.top, child.right, child.bottom) background?.draw(c) Loading Loading
packages/SystemUI/res/drawable/settingslib_entry_bg_on_end.xml 0 → 100644 +29 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2025 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="?android:attr/colorControlHighlight"> <item> <shape android:shape="rectangle"> <solid android:color="@androidprv:color/materialColorPrimary"/> <corners android:bottomLeftRadius="@dimen/settingslib_switch_bar_radius" android:bottomRightRadius="@dimen/settingslib_switch_bar_radius"/> </shape> </item> </ripple>
packages/SystemUI/res/drawable/settingslib_entry_bg_on_middle.xml 0 → 100644 +26 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2025 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="?android:attr/colorControlHighlight"> <item> <shape android:shape="rectangle"> <solid android:color="@androidprv:color/materialColorPrimary"/> </shape> </item> </ripple>
packages/SystemUI/res/drawable/settingslib_entry_bg_on_start.xml 0 → 100644 +29 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2025 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <ripple xmlns:android="http://schemas.android.com/apk/res/android" xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" android:color="?android:attr/colorControlHighlight"> <item> <shape android:shape="rectangle"> <solid android:color="@androidprv:color/materialColorPrimary"/> <corners android:topLeftRadius="@dimen/settingslib_switch_bar_radius" android:topRightRadius="@dimen/settingslib_switch_bar_radius"/> </shape> </item> </ripple>
packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/BluetoothDetailsContentManager.kt +18 −1 Original line number Diff line number Diff line Loading @@ -153,6 +153,9 @@ constructor( // UI Components that only exist in tile details view, but not in dialog. private var entryBackgroundActive: Drawable? = null private var entryBackgroundActiveStart: Drawable? = null private var entryBackgroundActiveEnd: Drawable? = null private var entryBackgroundActiveMiddle: Drawable? = null private var entryBackgroundInactive: Drawable? = null private var entryBackgroundInactiveStart: Drawable? = null private var entryBackgroundInactiveEnd: Drawable? = null Loading Loading @@ -206,6 +209,12 @@ constructor( } else { entryBackgroundActive = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on) entryBackgroundActiveStart = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on_start) entryBackgroundActiveEnd = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on_end) entryBackgroundActiveMiddle = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_on_middle) entryBackgroundInactive = contentView.context.getDrawable(R.drawable.settingslib_entry_bg_off) entryBackgroundInactiveStart = Loading Loading @@ -482,7 +491,15 @@ constructor( } } else { // Set up background for connected devices background = entryBackgroundActive background = when { lastConnectedDeviceIndex == 0 -> entryBackgroundActive adapterPosition == 0 -> entryBackgroundActiveStart adapterPosition == lastConnectedDeviceIndex -> entryBackgroundActiveEnd else -> entryBackgroundActiveMiddle } } background?.setBounds(child.left, child.top, child.right, child.bottom) background?.draw(c) Loading