Implements new layout for widget search promo panel and introduces better handling of activity recreations and configuration changes to redraw the widget search promo panel with correct theme (day/night) and proper position. Other notable enhancements: - Tweak tablet margins to better frame the onboarding cards on foldable devices after initial review with the design team. - Fix post-FRE intent and delay activity to avoid a glitch on foldable devices by following the same strategy applied upstream. - Accessibility: include content descriptions for widget search promo panel images. - Nala: include new drawables from Nala tokens. - Append new source android-widget for all searches made from the widget. - Implement tests to verify new source android-widget.
29 lines
1.0 KiB
XML
29 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
-->
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item android:state_enabled="false">
|
|
<shape android:shape="rectangle">
|
|
<solid android:color="@android:color/transparent" />
|
|
<corners android:radius="48dp" />
|
|
</shape>
|
|
</item>
|
|
|
|
<item android:state_pressed="true">
|
|
<shape android:shape="rectangle">
|
|
<solid android:color="@color/button_background_10" />
|
|
<corners android:radius="48dp" />
|
|
</shape>
|
|
</item>
|
|
|
|
<item>
|
|
<shape android:shape="rectangle">
|
|
<solid android:color="@android:color/transparent" />
|
|
<corners android:radius="48dp" />
|
|
</shape>
|
|
</item>
|
|
</selector>
|