1
0
Fork 0

For #8641 - Update addon text selector to use attr colors

master
ekager 2020-02-27 11:11:49 -08:00 committed by Emily Kager
parent c6cd105b28
commit 63ddff533d
5 changed files with 11 additions and 11 deletions

View File

@ -13,7 +13,6 @@ import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import androidx.navigation.findNavController
import kotlinx.android.synthetic.main.fragment_installed_add_on_details.*
import kotlinx.android.synthetic.main.fragment_installed_add_on_details.view.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi

View File

@ -3,6 +3,6 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:color="?android:attr/textColorPrimary" />
<item android:state_checked="false" android:color="@color/photonGrey40" />
<item android:state_enabled="false" android:color="@color/photonGrey40" />
<item android:color="?primaryText" />
</selector>

View File

@ -39,13 +39,13 @@
android:layout_height="wrap_content"
android:layout_below="@+id/enable_switch"
android:background="?android:attr/selectableItemBackground"
android:drawablePadding="10dp"
android:drawablePadding="12dp"
android:padding="16dp"
android:text="@string/mozac_feature_addons_settings"
android:textColor="@drawable/addon_textview_selector"
android:textSize="18sp"
app:drawableStartCompat="@drawable/mozac_ic_preferences"
app:drawableTint="?android:attr/textColorPrimary" />
app:drawableTint="?primaryText" />
<TextView
android:id="@+id/details"
@ -53,13 +53,13 @@
android:layout_height="wrap_content"
android:layout_below="@+id/settings"
android:background="?android:attr/selectableItemBackground"
android:drawablePadding="6dp"
android:drawablePadding="12dp"
android:padding="16dp"
android:text="@string/mozac_feature_addons_details"
android:textColor="@drawable/addon_textview_selector"
android:textSize="18sp"
app:drawableStartCompat="@drawable/mozac_ic_information"
app:drawableTint="?android:attr/textColorPrimary" />
app:drawableTint="?primaryText" />
<TextView
android:id="@+id/permissions"
@ -67,7 +67,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/details"
android:background="?android:attr/selectableItemBackground"
android:drawablePadding="6dp"
android:drawablePadding="12dp"
android:padding="16dp"
android:text="@string/mozac_feature_addons_permissions"
android:textColor="@drawable/addon_textview_selector"
@ -81,7 +81,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/permissions"
android:layout_margin="12dp"
android:text="@string/mozac_feature_addons_remove"/>
android:text="@string/mozac_feature_addons_remove" />
</RelativeLayout>
</ScrollView>
</FrameLayout>

View File

@ -41,7 +41,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:importantForAccessibility="no"
android:src="@drawable/mozac_ic_lock"
app:srcCompat="@drawable/mozac_ic_lock"
android:paddingEnd="8dp"/>
<LinearLayout
android:layout_width="match_parent"

View File

@ -5,6 +5,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="100dp"
android:layout_height="50dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="@drawable/rounded_white_corners"
android:orientation="horizontal">
@ -19,6 +20,6 @@
android:layout_width="50dp"
android:layout_height="50dp"
android:padding="10dp"
android:src="@drawable/ic_microphone_widget"
app:srcCompat="@drawable/ic_microphone_widget"
android:scaleType="centerInside" />
</LinearLayout>