mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
For any view files applying the WidgetConatinerTheme via widgetsTheme they were incorrectly inheriting themes and skipping the AppTheme provided but only in light mode. In dark mode the WidgetContainerTheme.Dark was correctly inheriting the theme. To avoid a risky theme update for all widgetsThemes we just modify the color accessor to use @color instead of ?attr as these colors should not be attributes AFAIKT Bug: b/289305591 Test: Follow repro steps on the bug for smartspace Change-Id: I26cc3239763f8eac3dfe5f094c6757692f46d1bc
35 lines
1.3 KiB
XML
35 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 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.
|
|
-->
|
|
|
|
<inset
|
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<ripple
|
|
android:color="?android:attr/colorControlHighlight">
|
|
<item>
|
|
<shape android:shape="rectangle">
|
|
<corners
|
|
android:topLeftRadius="12dp"
|
|
android:topRightRadius="12dp"
|
|
android:bottomLeftRadius="4dp"
|
|
android:bottomRightRadius="4dp" />
|
|
<solid android:color="@color/material_color_surface_container_highest"/>
|
|
<stroke
|
|
android:width="2dp"
|
|
android:color="@color/button_bg"/>
|
|
</shape>
|
|
</item>
|
|
</ripple>
|
|
</inset> |