Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60fb9869 authored by Andrey Yepin's avatar Andrey Yepin
Browse files

Update Resolver profile tab colors and spacing.

This also affects MediaProjectionAppSelectorActivity.

Clickable size of the button is increased to 48dp while maintain the
same visual appearance.
Button's text and background colors are updated.

Fix: 390662403
Test: visual verification.
Flag: EXEMPT resouces only
Change-Id: I3e97c0a2fdc7a5ffa1f2441136dc22a9afdfceb0
parent 95c751ca
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 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.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:color="?androidprv:attr/textColorPrimaryInverse" android:state_selected="true"/>
    <item android:color="?androidprv:attr/textColorSecondary"/>
</selector>
+3 −4
Original line number Diff line number Diff line
@@ -13,8 +13,7 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <item android:color="?androidprv:attr/textColorPrimary" android:state_selected="true"/>
    <item android:color="?androidprv:attr/textColorSecondary"/>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:color="@color/materialColorOnPrimary" android:state_selected="true"/>
    <item android:color="@color/materialColorOnSurface"/>
</selector>
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright 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
  ~
  ~      https://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"
    android:drawable="@drawable/resolver_profile_tab_bg"
    android:insetLeft="0dp"
    android:insetRight="0dp"
    android:insetTop="6dp"
    android:insetBottom="6dp" />
+2 −2
Original line number Diff line number Diff line
@@ -29,14 +29,14 @@
            <item android:state_selected="false">
                <shape android:shape="rectangle">
                    <corners android:radius="12dp" />
                    <solid android:color="?androidprv:attr/colorSurface" />
                    <solid android:color="@color/materialColorSurfaceBright" />
                </shape>
            </item>

            <item android:state_selected="true">
                <shape android:shape="rectangle">
                    <corners android:radius="12dp" />
                    <solid android:color="@color/resolver_profile_tab_selected_bg" />
                    <solid android:color="@android:color/materialColorPrimary" />
                </shape>
            </item>
        </selector>
+2 −3
Original line number Diff line number Diff line
@@ -18,11 +18,10 @@
    <Button
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="0dp"
        android:layout_height="36dp"
        android:layout_height="48dp"
        android:layout_weight="1"
        android:layout_marginVertical="6dp"
        android:layout_marginHorizontal="@dimen/resolver_profile_tab_margin"
        android:background="@drawable/resolver_profile_tab_bg"
        android:background="@drawable/inset_resolver_profile_tab_bg"
        android:textColor="@color/resolver_profile_tab_text"
        android:textSize="@dimen/resolver_tab_text_size"
        android:textAppearance="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle"