Loading res/drawable/search_bar_selected_background.xml 0 → 100644 +20 −0 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2019 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" android:color="?android:attr/colorControlHighlight"> <item android:drawable="@color/search_bar_background"/> </ripple> res/layout/search_bar.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -28,7 +28,7 @@ android:layout_width="match_parent" android:layout_width="match_parent" android:layout_height="@dimen/search_bar_height" android:layout_height="@dimen/search_bar_height" android:layout_marginStart="-2dp" android:layout_marginStart="-2dp" android:background="?android:attr/selectableItemBackground" android:background="@drawable/search_bar_selected_background" android:contentInsetStartWithNavigation="@dimen/search_bar_content_inset" android:contentInsetStartWithNavigation="@dimen/search_bar_content_inset" android:navigationIcon="@drawable/ic_homepage_search"> android:navigationIcon="@drawable/ic_homepage_search"> <TextView <TextView Loading res/values-night/colors.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -24,5 +24,6 @@ <color name="homepage_status_bar_color">#cc000000</color> <color name="homepage_status_bar_color">#cc000000</color> <color name="homepage_card_dismissal_background">@*android:color/material_grey_900</color> <color name="homepage_card_dismissal_background">@*android:color/material_grey_900</color> <color name="contextual_card_background">@*android:color/material_grey_900</color> <color name="contextual_card_background">@*android:color/material_grey_900</color> <color name="search_bar_background">@*android:color/material_grey_800</color> </resources> </resources> res/values/colors.xml +3 −0 Original line number Original line Diff line number Diff line Loading @@ -140,4 +140,7 @@ <color name="qr_background_color">#b3ffffff</color> <!-- 70% white transparency --> <color name="qr_background_color">#b3ffffff</color> <!-- 70% white transparency --> <!-- End of QR code scanner colors --> <!-- End of QR code scanner colors --> <!-- Search bar background color --> <color name="search_bar_background">@android:color/white</color> </resources> </resources> No newline at end of file Loading
res/drawable/search_bar_selected_background.xml 0 → 100644 +20 −0 Original line number Original line Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2019 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" android:color="?android:attr/colorControlHighlight"> <item android:drawable="@color/search_bar_background"/> </ripple>
res/layout/search_bar.xml +1 −1 Original line number Original line Diff line number Diff line Loading @@ -28,7 +28,7 @@ android:layout_width="match_parent" android:layout_width="match_parent" android:layout_height="@dimen/search_bar_height" android:layout_height="@dimen/search_bar_height" android:layout_marginStart="-2dp" android:layout_marginStart="-2dp" android:background="?android:attr/selectableItemBackground" android:background="@drawable/search_bar_selected_background" android:contentInsetStartWithNavigation="@dimen/search_bar_content_inset" android:contentInsetStartWithNavigation="@dimen/search_bar_content_inset" android:navigationIcon="@drawable/ic_homepage_search"> android:navigationIcon="@drawable/ic_homepage_search"> <TextView <TextView Loading
res/values-night/colors.xml +1 −0 Original line number Original line Diff line number Diff line Loading @@ -24,5 +24,6 @@ <color name="homepage_status_bar_color">#cc000000</color> <color name="homepage_status_bar_color">#cc000000</color> <color name="homepage_card_dismissal_background">@*android:color/material_grey_900</color> <color name="homepage_card_dismissal_background">@*android:color/material_grey_900</color> <color name="contextual_card_background">@*android:color/material_grey_900</color> <color name="contextual_card_background">@*android:color/material_grey_900</color> <color name="search_bar_background">@*android:color/material_grey_800</color> </resources> </resources>
res/values/colors.xml +3 −0 Original line number Original line Diff line number Diff line Loading @@ -140,4 +140,7 @@ <color name="qr_background_color">#b3ffffff</color> <!-- 70% white transparency --> <color name="qr_background_color">#b3ffffff</color> <!-- 70% white transparency --> <!-- End of QR code scanner colors --> <!-- End of QR code scanner colors --> <!-- Search bar background color --> <color name="search_bar_background">@android:color/white</color> </resources> </resources> No newline at end of file